skillfed

azure-mgmt-subscription

Microsoft Azure Subscription Management Client Library for Python

azure-mgmt-subscription v3.1.1 3.5M downloads/30d#2,620 on PyPI5,588
Permissive license MIT License Active released

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-subscription

uv

uv add azure-mgmt-subscription

poetry

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 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

Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

azure subscription managementazure sdk pythonmanage azure subscriptionsazure subscription clientazure api pythonsubscription operations azureazure resource management
azurecloud-managementsubscription-management

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

azure-mgmt-managementpartner

Provides a Python client library for managing…

unclear · top 5,000 on PyPI

azure-mgmt-resource-subscriptions

Manages Azure subscriptions and related…

permissive · top 15,000 on PyPI

azure-mgmt-commerce

Provides a Python client library for managing…

unclear · top 5,000 on PyPI

azure-mgmt-msi

Manages Azure Managed Service Identities…

permissive · top 5,000 on PyPI

azure-mgmt-managedservices

Provides Python client library for managing…

unclear · top 15,000 on PyPI

azure-mgmt-marketplaceordering

Manages Azure Marketplace ordering agreements…

unclear · top 5,000 on PyPI

azure-mgmt-trafficmanager

Provides a Python client library to manage…

permissive · top 5,000 on PyPI

azure-mgmt-resourcegraph

Provides a Python client library to query and…

unclear · top 5,000 on PyPI

azure-mgmt-advisor

Provides Python bindings to interact with Azure…

unclear · top 5,000 on PyPI

azure-cognitiveservices-vision-customvision

Provides Python bindings to train and deploy…

permissive · top 15,000 on PyPI