--- id: azure-mgmt-subscription version: "3.1.1" license: MIT License license_treatment: permissive maintenance: active --- # azure-mgmt-subscription — Microsoft Azure Subscription Management Client Library for Python License: permissive · Maintenance: active · Downloads: 3.5M/mo ## 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 above — 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 pip install azure-mgmt-subscription uv add azure-mgmt-subscription poetry add azure-mgmt-subscription ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 3.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure subscription management, azure sdk python, manage azure subscriptions, azure subscription client, azure api python, subscription operations azure, azure resource management, azure, cloud-management, subscription-management [View on SkillFed](https://skillfed.io/packages/azure-mgmt-subscription) · [View on PyPI](https://pypi.org/project/azure-mgmt-subscription/)