--- id: azure-mgmt-consumption version: "11.0.0" license: MIT license_treatment: permissive maintenance: active --- # azure-mgmt-consumption — Microsoft Azure Consumption Management Client Library for Python License: permissive · Maintenance: active · Downloads: 1.9M/mo ## What it is and what it does This is the official Microsoft Azure Consumption Management Client Library, part of the broader Azure SDK for Python. It wraps the Azure Consumption Management REST APIs, allowing developers to programmatically access billing data, usage details, reservations, budgets, and cost summaries for Azure subscriptions. The package depends on isodate for date handling, azure-mgmt-core for common SDK infrastructure, and typing-extensions for type hints. The library is designed for scenarios where you need to integrate Azure cost and consumption data into Python applications—pulling billing history, analyzing usage patterns, managing budgets, or building cost optimization tools. It requires Python 3.10+ and authentication via Microsoft Entra using environment variables. The most recent release (11.0.0, 2026-07-20) added hybrid model support, new properties across many data models, and expanded operation parameters. Use it for: - Retrieve detailed usage and billing records for cost analysis and chargeback in multi-tenant or departmental Azure environments - Build automated budget monitoring and alerting by querying current spend against defined budget thresholds - Analyze reservation utilization and recommendations to optimize Azure commitment purchases - Export consumption data to data warehouses or BI tools for cost trending and forecasting - Integrate Azure billing into internal finance or FinOps platforms for real-time cost visibility ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides programmatic access to Azure Consumption Management APIs for querying billing, usage, reservations, budgets, and cost data within Azure subscriptions. Yes. This is the official, actively maintained Azure SDK for consumption management with no known vulnerabilities, permissive licensing, and low install friction. Install it if you need programmatic access to Azure billing, usage, or cost data from Python. Requires Python 3.10+ and Azure subscription credentials. ## Install pip install azure-mgmt-consumption uv add azure-mgmt-consumption poetry add azure-mgmt-consumption ## Installing azure-mgmt-consumption Before you install: Low install friction with three lightweight runtime dependencies. The package is actively maintained—released 25 days ago with recent commits—and supports current Python versions (3.10+). Part of the official Azure SDK ecosystem. License in practice: Licensed under MIT, a permissive license allowing commercial and private use with minimal restrictions. Quickstart: pip install azure-mgmt-consumption from azure.mgmt.consumption import ConsumptionManagementClient import os sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") client = ConsumptionManagementClient( credential=credential, subscription_id=sub_id ) Requires Python 3.10+, Azure subscription, and environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID configured for authentication. Verify before relying: - Whether authentication setup requires additional packages beyond the three listed runtime dependencies - Performance characteristics when querying large billing datasets or high-volume usage details ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure billing api client, azure cost management sdk, azure consumption management, azure usage details query, azure budget and reservation api, azure-sdk, cloud-billing, cost-management [View on SkillFed](https://skillfed.io/packages/azure-mgmt-consumption) · [View on PyPI](https://pypi.org/project/azure-mgmt-consumption/)