--- id: azure-mgmt-commerce version: "6.0.1" license: unclear license_treatment: unclear maintenance: active --- # azure-mgmt-commerce — Microsoft Azure Commerce Management Client Library for Python License: unclear · Maintenance: active · Downloads: 1.7M/mo ## What it is and what it does azure-mgmt-commerce is the official Python client library for interacting with Azure's Commerce Management API. It allows developers to query and retrieve Azure usage aggregation data, billing information, and related metrics programmatically. The library is part of the broader Azure SDK for Python and follows modern Azure SDK patterns, including unified credential handling and type annotations. The package is built on top of azure-mgmt-core and integrates with the Azure authentication system. It requires Python 3.9 or later and is tested against Python 3.10+. The library exposes a UsageManagementClient that can be instantiated with credentials and a subscription ID, providing access to usage data and billing operations. No known security vulnerabilities are recorded. Use it for: - Query Azure usage aggregation data for a subscription to track resource consumption over time. - Retrieve billing and cost information programmatically for cost analysis and reporting. - Integrate Azure usage metrics into internal dashboards or monitoring systems. - Automate billing data collection for multi-subscription Azure environments. - Build custom cost allocation or chargeback tools on top of Azure usage data. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Python client library for managing Azure Commerce resources, enabling programmatic access to Azure usage and billing data through the Azure management API. Yes, if you need programmatic access to Azure usage and billing data. The package is actively maintained, has low install friction, and is the official Microsoft library for this purpose. However, verify the license terms before use in proprietary contexts, as the license treatment is currently unclear in the metadata. ## Install pip install azure-mgmt-commerce uv add azure-mgmt-commerce poetry add azure-mgmt-commerce ## Installing azure-mgmt-commerce Before you install: Low install friction with a pure-wheel distribution. Actively maintained as of 2026-05-15 with recent commits; requires Python 3.9+ and three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions). License in practice: License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the GitHub repository before use in proprietary or restricted contexts. Quickstart: pip install azure-mgmt-commerce from azure.mgmt.commerce import UsageManagementClient from azure.identity import DefaultAzureCredential import os sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") client = UsageManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id) Requires Python 3.9+. Azure authentication credentials must be configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID). Verify before relying: - Specific operations and models available in version 6.0.1 versus beta features in later releases. - Whether additional packages beyond the three runtime dependencies are needed for typical usage patterns. - Actual license terms and compatibility restrictions for commercial use. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure commerce management client, azure usage aggregation api, azure billing data python, azure mgmt sdk python, azure subscription usage tracking, azure-sdk, cloud-management [View on SkillFed](https://skillfed.io/packages/azure-mgmt-commerce) · [View on PyPI](https://pypi.org/project/azure-mgmt-commerce/)