azure-mgmt-consumption
Microsoft Azure Consumption Management Client Library for Python
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- 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+).
License · maintenance · safety
MIT (permissive) — Licensed under MIT, a permissive license allowing commercial and private use with minimal restrictions.
last release 2026-07-20 (25 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,885,756 downloads/mo, #3,464 on PyPI
Alternatives
Verify before relying
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
)- Whether authentication setup requires additional packages beyond the three listed runtime dependencies
- Performance characteristics when querying large billing datasets or high-volume usage details
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 on this page. Verify before relying on it.
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
azure-mgmt-consumption on PyPI
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.
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.
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
)
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 the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-mgmt-coretyping-extensions |
| Maintenance | Actively maintained 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,885,756 / month, #3,464 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: azure_mgmt_consumption-11.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure consumption management”
- azure-mgmt-consumptionProvides programmatic access to Azure Consumption Management APIs for…
- azure-eventhub-checkpointstoreblobProvides a checkpoint store implementation for Azure Event Hubs…
- azure-mgmt-commerceProvides a Python client library for managing Azure Commerce…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also azure-mgmt-costmanagement · azure-mgmt-billing · azure-mgmt-managementgroups · azure-mgmt-storage · azure-mgmt-batch · azure-mgmt-resource · azure-mgmt-resource-subscriptions · azure-core · dominodatalab · excel