azure-mgmt-cdn
Microsoft Azure Cdn Management Client Library for Python
What it is and what it does
azure-mgmt-cdn is the official Microsoft Azure SDK client library for programmatically managing Azure Content Delivery Network (CDN) resources. It wraps the Azure CDN REST API and exposes operations for creating, updating, and deleting CDN profiles, endpoints, origins, origin groups, custom domains, rules, and WAF policies. The package is maintained as part of the broader Azure SDK for Python and is actively developed.
You use it when you need to automate CDN infrastructure provisioning, configuration, or management from Python—for example, spinning up CDN endpoints, configuring origin groups with load-balancing rules, setting up custom domains with HTTPS, or managing WAF policies. It requires Python 3.10+ and authentication via Microsoft Entra credentials, typically configured through environment variables. Version 14.0.0 introduces hybrid model types and new migration operations for moving classic CDN to Azure Front Door.
Use it for:
- Automate CDN endpoint provisioning and configuration in infrastructure-as-code pipelines.
- Programmatically manage origin groups, load-balancing settings, and health probes for CDN profiles.
- Set up and update custom domains with HTTPS parameters and TLS cipher suite configurations.
- Migrate CDN resources from classic CDN to Azure Front Door using the new migration operations.
- Manage WAF policies and delivery rules attached to CDN endpoints via API.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure CDN resources (profiles, endpoints, origins, domains, rules) via the Azure REST API from Python code.
Yes, if you need to manage Azure CDN resources from Python. The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft client library for this purpose. Version 14.0.0 is production-stable but introduces breaking changes to model structure—review the migration guide if upgrading from earlier versions.
Install
azure-mgmt-cdn on PyPI
pip
pip install azure-mgmt-cdnuv
uv add azure-mgmt-cdnpoetry
poetry add azure-mgmt-cdnInstalling azure-mgmt-cdn
Before you install
Low install friction with a pure-wheel distribution. Active maintenance—released 31 days ago with recent commits. Requires Python 3.10 or later; three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions) are standard Azure SDK components.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install azure-mgmt-cdn
from azure.mgmt.cdn import CdnManagementClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = CdnManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID for authentication.
Verify before relying
- Whether version 14.0.0's hybrid model migration (per breaking changes) impacts existing codebases using earlier versions.
- Scope and stability of the new CDN-to-AFD migration operations added in this release.
- Whether azure-identity is required as a runtime dependency or only as an optional authentication helper.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-mgmt-core, typing-extensions |
| Maintenance | actively maintained — 31 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,349,803/month — #1,750 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_cdn-14.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
azure-mgmt-frontdoorManages Azure Front Door resources—CDN, load…
permissive · top 15,000 on PyPI
azure-mgmt-networkManages Azure network resources (virtual…
permissive · top 5,000 on PyPI
azure-mgmt-servicebusManages Azure Service Bus resources…
permissive · top 5,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-storageManages Azure Storage accounts, containers,…
permissive · top 5,000 on PyPI
azure-mgmt-apimanagementProvides Python client library for managing…
permissive · top 5,000 on PyPI
azure-mgmt-hybridcomputeManages hybrid compute resources in Microsoft…
permissive · top 15,000 on PyPI
azure-mgmt-kustoManages Azure Kusto clusters, databases, and…
permissive · top 15,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI