azure-mgmt-monitor
Microsoft Azure Monitor Client Library for Python
What it is and what it does
This is the Microsoft Azure Monitor management library for Python, providing a client interface to create, read, update, and delete Azure Monitor resources. It wraps the Azure Resource Manager API for monitoring, allowing developers to programmatically manage alerts, metrics, autoscaling policies, data collection endpoints and rules, action groups, and related monitoring infrastructure.
The package is part of the official Azure SDK and is maintained by Microsoft. It depends on azure-common and azure-mgmt-core for authentication and base client functionality, plus isodate and typing-extensions for data handling. The library is tested against Python 3.9+ and requires explicit Azure credentials to authenticate requests.
Use it for:
- Automate creation and management of metric alerts and alert rules across multiple Azure resources.
- Configure autoscaling policies and action groups programmatically as part of infrastructure-as-code workflows.
- Set up data collection rules and endpoints for centralized log and metric ingestion into Azure Monitor.
- Query metric definitions, baselines, and activity logs to build custom monitoring dashboards or reports.
- Manage alert rule incidents and activity log alerts in response to operational events.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides programmatic access to Azure Monitor resources—alerts, metrics, autoscaling, data collection rules, and action groups—via the Azure management API.
Yes. This is the official Azure Monitor management SDK—actively maintained, permissively licensed, and low-friction to install. Use it if you need to manage Azure Monitor resources programmatically. The main requirement is correct Azure credential configuration; once set up, the API is straightforward.
Install
azure-mgmt-monitor on PyPI
pip
pip install azure-mgmt-monitoruv
uv add azure-mgmt-monitorpoetry
poetry add azure-mgmt-monitorInstalling azure-mgmt-monitor
Before you install
Low install friction; pure Python wheel. Maintained actively with a recent release (2025-07-28). Requires Python 3.9+.
License in practice
MIT License permits commercial and private use with minimal restrictions; safe for most projects.
Quickstart
pip install azure-mgmt-monitor
from azure.mgmt.monitor import MonitorManagementClient
from azure.common import AzureHttpAuthentication
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = MonitorManagementClient(credential, subscription_id=sub_id)
Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID.
Verify before relying
- Specific performance characteristics or rate limits for large-scale monitoring operations.
- Whether all operation groups listed in 7.0.0 release are fully documented with examples.
- Recommended authentication pattern and credential configuration beyond environment variables.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — isodate, typing-extensions, azure-common, azure-mgmt-core |
| Maintenance | actively maintained — 382 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,837,394/month — #1,591 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_monitor-7.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
azure-mgmt-commerceProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-securityinsightProvides a Python client library for managing…
permissive · top 15,000 on PyPI
azure-mgmt-securityManages Azure Security Center resources…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-monitor-querymetricsQuery and retrieve numerical metrics data from…
permissive · top 15,000 on PyPI
azure-mgmt-policyinsightsProvides programmatic access to Azure Policy…
unclear · top 5,000 on PyPI
azure-monitor-queryExecutes read-only queries against Azure…
permissive · top 5,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI
azure-mgmt-streamanalyticsProvides Python client library for managing…
permissive · top 15,000 on PyPI