azure-mgmt-subscription
Microsoft Azure Subscription Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure Subscription Management client library for Python. It wraps the Azure REST API to let you programmatically manage subscriptions—creating, renaming, canceling, and querying their state—from Python code. The library is part of the broader Azure SDK for Python and uses modern credential handling via azure-identity rather than legacy authentication methods.
The package supports Python 3.7 and later, has been tested against current versions, and is actively maintained by Microsoft. It depends on three core Azure libraries (msrest, azure-common, azure-mgmt-core) to handle HTTP communication, credential management, and common Azure SDK patterns. The library includes type annotations for IDE support and integrates with standard Python async patterns where applicable.
Use it for:
- Automate subscription lifecycle management in multi-tenant or enterprise Azure environments.
- Build internal tools to query subscription state, ownership, and billing information programmatically.
- Integrate subscription operations into infrastructure-as-code or deployment automation pipelines.
- Manage subscription aliases and accept ownership transfers via API rather than the Azure portal.
- Monitor and track subscription status changes as part of a larger Azure resource management workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python client library for managing Azure subscriptions, including operations to create, rename, cancel, and query subscription state through the Azure REST API.
Yes. This is the official, actively maintained Microsoft library for subscription management in Azure. It has low install friction, no known vulnerabilities, permissive licensing, and is widely used (top 5000 on PyPI). Install it if you need to manage Azure subscriptions programmatically; it is the standard choice for this task.
Install
azure-mgmt-subscription on PyPI
pip
pip install azure-mgmt-subscriptionuv
uv add azure-mgmt-subscriptionpoetry
poetry add azure-mgmt-subscriptionInstalling azure-mgmt-subscription
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits and no known vulnerabilities. Depends on three stable Azure base libraries (msrest, azure-common, azure-mgmt-core).
License in practice
MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install azure-mgmt-subscription
from azure.mgmt.subscription import SubscriptionClient
from azure.identity import DefaultAzureCredential
credential = DefaultAzureCredential()
client = SubscriptionClient(credential)
subscriptions = client.subscriptions.list()
Requires Azure credentials (via azure-identity or similar) and appropriate Azure permissions to list or manage subscriptions.
Verify before relying
- Whether the package supports async operations beyond what the description excerpt indicates.
- Current state of the three runtime dependencies (msrest, azure-common, azure-mgmt-core) and their maintenance status.
- Whether all operation groups mentioned in the release history (SubscriptionsOperations, TenantsOperations, BillingAccountOperations) are currently available in version 3.1.1.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — msrest, azure-common, azure-mgmt-core |
| Maintenance | actively maintained — 1,438 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,450,237/month — #2,620 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_subscription-3.1.1-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI
azure-mgmt-commerceProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-msiManages Azure Managed Service Identities…
permissive · top 5,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI
azure-mgmt-marketplaceorderingManages Azure Marketplace ordering agreements…
unclear · top 5,000 on PyPI
azure-mgmt-trafficmanagerProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-mgmt-resourcegraphProvides a Python client library to query and…
unclear · top 5,000 on PyPI
azure-mgmt-advisorProvides Python bindings to interact with Azure…
unclear · top 5,000 on PyPI
azure-cognitiveservices-vision-customvisionProvides Python bindings to train and deploy…
permissive · top 15,000 on PyPI