skillfed

azure-mgmt-consumption

Microsoft Azure Consumption Management Client Library for Python

azure-mgmt-consumption v11.0.0 1.9M downloads/30d#3,464 on PyPI5,588
Permissive license MIT Active released

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

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

azure-mgmt-consumption on PyPI

pip

pip install azure-mgmt-consumption

uv

uv add azure-mgmt-consumption

poetry

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 the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — isodate, azure-mgmt-core, typing-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)

Evidence: azure_mgmt_consumption-11.0.0-py3-none-any.whl

Keywords: azure, azure sdk

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

Tags

azure billing api clientazure cost management sdkazure consumption managementazure usage details queryazure budget and reservation api
azure-sdkcloud-billingcost-management

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

azure-mgmt-costmanagement

Provides Python bindings to the Azure Cost…

permissive · top 5,000 on PyPI

azure-mgmt-billing

Provides programmatic access to Azure billing…

permissive · top 5,000 on PyPI

azure-mgmt-managementgroups

Provides a Python client library to manage…

permissive · top 5,000 on PyPI

azure-mgmt-storage

Manages Azure Storage accounts, containers,…

permissive · top 5,000 on PyPI

azure-mgmt-batch

Provides a Python client library for managing…

unclear · top 5,000 on PyPI

azure-mgmt-resource

Provides Python bindings to manage Azure…

permissive · top 1,000 on PyPI

azure-mgmt-resource-subscriptions

Manages Azure subscriptions and related…

permissive · top 15,000 on PyPI

azure-core

Provides shared exceptions, HTTP utilities, and…

unclear · top 1,000 on PyPI

dominodatalab

Provides Python bindings to interact with the…

permissive · top 15,000 on PyPI

excel

This package is a name reservation by Microsoft…

unclear · top 15,000 on PyPI