skillfed

azure-mgmt-costmanagement

Microsoft Azure Costmanagement Management Client Library for Python

azure-mgmt-costmanagement v5.0.0 847.0K downloads/30d#4,912 on PyPI5,588
Permissive license MIT Active released

What it is and what it does

This is the official Microsoft Azure Cost Management client library for Python, part of the broader Azure SDK. It exposes the Azure Cost Management API as Python objects and methods, allowing developers to query costs, create and manage budgets, configure cost allocation rules, generate exports in multiple formats, and retrieve benefit utilization summaries programmatically.

The library requires Python 3.10+ and depends on isodate, azure-mgmt-core, and typing-extensions. Version 5.0.0 introduces breaking changes, including hybrid model types and restructured properties, alongside new operation groups for budgets, settings, cost allocation rules, and benefit utilization reports.

Use it for:

  • Automate cost reporting and analysis by querying Azure spending data programmatically within a billing period or custom timeframe.
  • Create and manage budgets with alerts and notifications to track spending against defined thresholds.
  • Export detailed cost data in multiple formats to data warehouses or analytics platforms for deeper analysis.
  • Retrieve and analyze benefit utilization summaries for reserved instances and savings plans to optimize Azure spending.
  • Implement cost allocation rules to distribute shared costs across departments or cost centers automatically.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings to the Azure Cost Management API, enabling programmatic access to cost analysis, budgets, exports, and benefit utilization data within Azure subscriptions.

Yes. This is the official, actively maintained Azure Cost Management SDK with no known vulnerabilities, low install friction, and permissive MIT licensing. Install it if you need programmatic access to Azure cost data, budgets, or exports. Be aware that version 5.0.0 includes breaking changes requiring migration from earlier versions—review the migration guide before upgrading existing code.

Install

azure-mgmt-costmanagement on PyPI

pip

pip install azure-mgmt-costmanagement

uv

uv add azure-mgmt-costmanagement

poetry

poetry add azure-mgmt-costmanagement

Installing azure-mgmt-costmanagement

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits; part of the official Azure SDK ecosystem backed by Microsoft.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most enterprise and open-source projects.

Quickstart

pip install azure-mgmt-costmanagement

from azure.mgmt.costmanagement import CostManagementClient
from azure.identity import DefaultAzureCredential

client = CostManagementClient(credential=DefaultAzureCredential())

Requires Python 3.10 or later. Azure authentication requires AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET environment variables or alternative credential configuration.

Verify before relying

  • Whether the new hybrid model changes in 5.0.0 require significant refactoring of existing code using earlier versions.
  • Performance characteristics and rate limits when querying large cost datasets or generating detailed reports.
  • Specific cost export formats and compression modes supported beyond CSV and Parquet.

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 — 37 days since the last release
Last repo commit
First released
Downloads 846,979/month — #4,912 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: azure_mgmt_costmanagement-5.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 cost management apiazure billing and cost analysisazure budget managementazure cost exportazure sdk cost managementazure benefit utilizationazure cost allocation rules
azure-sdkcost-managementcloud-billing

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

Provides programmatic access to Azure…

permissive · top 5,000 on PyPI

azure-mgmt-apimanagement

Provides Python client library for managing…

permissive · top 5,000 on PyPI

azure-mgmt-resource

Provides Python bindings to manage Azure…

permissive · top 1,000 on PyPI

azure-mgmt-storage

Manages Azure Storage accounts, containers,…

permissive · top 5,000 on PyPI

azure-mgmt-managementgroups

Provides a Python client library to manage…

permissive · top 5,000 on PyPI

azure-mgmt-web

Provides programmatic management of Azure Web…

permissive · top 5,000 on PyPI

azure-mgmt-servicebus

Manages Azure Service Bus resources…

permissive · top 5,000 on PyPI

azure-mgmt-loganalytics

Provides a Python client library for managing…

permissive · top 5,000 on PyPI

azure-mgmt-billing

Provides programmatic access to Azure billing…

permissive · top 5,000 on PyPI

azure-mgmt-compute

Provides Python bindings to manage Azure…

permissive · top 5,000 on PyPI