c7n-azure
Cloud Custodian - Azure Support
What it is and what it does
This package extends a policy engine to Azure, letting you write declarative YAML policies that specify which Azure resources to target, how to filter them, and what actions to take—tagging, deletion, remediation, or reporting. It integrates with Azure's management APIs to discover and act on resources at scale.
It's designed for teams managing compliance, cost control, and resource lifecycle across Azure subscriptions. Policies run on-demand, scanning resources and applying consistent governance rules without manual intervention. The plugin depends on 80 Azure SDK packages to access different Azure services.
Use it for:
- Automatically tag all untagged virtual machines or storage accounts for cost allocation and compliance tracking.
- Enforce compliance by finding and reporting resources that violate security policies.
- Remediate drift by stopping unused compute resources or deleting orphaned disks to reduce cloud spend.
- Audit resource creation and modification across subscriptions and log policy execution for compliance reports.
- Enforce naming conventions and resource group organization across Azure deployments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
An Azure plugin for Cloud Custodian that automates policy-driven governance and compliance across Azure resources through declarative YAML policies.
Yes. The package is actively maintained, has no known vulnerabilities, and solves a real problem—scaling governance across Azure. Install it if you need policy-driven compliance, cost control, or resource lifecycle automation. The 80 Azure SDK dependencies are a one-time cost reflecting genuine breadth of Azure service coverage.
Install
c7n-azure on PyPI
pip
pip install c7n-azureuv
uv add c7n-azurepoetry
poetry add c7n-azureInstalling c7n-azure
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a recent release 78 days ago and ongoing commits. Requires 80 Azure SDK dependencies, which is substantial but reflects the breadth of Azure services it can govern.
License in practice
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions; you must retain license notices.
Quickstart
pip install c7n-azure
Create custodian.yml:
policies:
- name: tag-vms
resource: azure.vm
actions:
- type: tag
tag: Environment
value: Production
custodian run --output-dir=. custodian.yml
Requires Azure authentication (Azure CLI login or environment variables) and Python 3.9.2 or later.
Verify before relying
- Whether the 80 Azure SDK dependencies are all required at runtime or some are optional based on resource types.
- Performance characteristics and scalability limits when running policies against large Azure environments.
- Whether policies can be scheduled automatically or if orchestration requires external tooling.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.9.2) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 80 — adal, applicationinsights, apscheduler, azure-cosmos, azure-cosmosdb-table, azure-functions, azure-graphrbac, azure-identity, azure-keyvault-certificates, azure-keyvault-keys, azure-keyvault-secrets, azure-keyvault, azure-mgmt-advisor, azure-mgmt-apimanagement, azure-mgmt-appconfiguration, azure-mgmt-applicationinsights, azure-mgmt-appplatform, azure-mgmt-authorization, azure-mgmt-automation, azure-mgmt-batch, azure-mgmt-cdn, azure-mgmt-cognitiveservices, azure-mgmt-compute, azure-mgmt-containerinstance, azure-mgmt-containerregistry, azure-mgmt-containerservice, azure-mgmt-cosmosdb, azure-mgmt-costmanagement, azure-mgmt-databricks, azure-mgmt-datafactory |
| Maintenance | actively maintained — 78 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,450/month — #13,863 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: c7n_azure-0.7.50-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
c7nCloud Custodian is a rules engine that enforces…
permissive · top 5,000 on PyPI
c7n-orgRuns Cloud Custodian policies in parallel…
permissive · top 5,000 on PyPI
c7n-mailerA message relay service that subscribes to SQS…
permissive · top 15,000 on PyPI
pulumi-policyDefines and enforces policy rules on cloud…
permissive · top 15,000 on PyPI
custodianCustodian is a just-in-time job management…
permissive · top 15,000 on PyPI
azure-mgmt-coreProvides ARM-specific extensions to Azure Core…
permissive · top 1,000 on PyPI
pulumi-azurePulumi provider for Azure Classic that lets you…
permissive · top 15,000 on PyPI
agent_governance_toolkitUnified installer that bundles policy…
permissive · top 15,000 on PyPI
azure-mgmt-policyinsightsProvides programmatic access to Azure Policy…
unclear · top 5,000 on PyPI
pulumi-azure-nativeProvides Python bindings to create and manage…
permissive · top 15,000 on PyPI