skillfed

azure-mgmt-monitor

Microsoft Azure Monitor Client Library for Python

azure-mgmt-monitor v7.0.0 8.8M downloads/30d#1,591 on PyPI5,588
Permissive license MIT License Active released

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

uv

uv add azure-mgmt-monitor

poetry

poetry add azure-mgmt-monitor

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9

Tags

azure monitor management clientazure alerts and metrics apiazure autoscale configurationazure data collection rulesazure monitoring sdk python
azure-sdkcloud-managementinfrastructure-as-code

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

azure-mgmt-commerce

Provides a Python client library for managing…

unclear · top 5,000 on PyPI

azure-mgmt-resource-deployments

Manages Azure resource deployments…

permissive · top 5,000 on PyPI

azure-mgmt-securityinsight

Provides a Python client library for managing…

permissive · top 15,000 on PyPI

azure-mgmt-security

Manages Azure Security Center resources…

permissive · top 5,000 on PyPI

azure-mgmt-resource

Provides Python bindings to manage Azure…

permissive · top 1,000 on PyPI

azure-monitor-querymetrics

Query and retrieve numerical metrics data from…

permissive · top 15,000 on PyPI

azure-mgmt-policyinsights

Provides programmatic access to Azure Policy…

unclear · top 5,000 on PyPI

azure-monitor-query

Executes read-only queries against Azure…

permissive · top 5,000 on PyPI

azure-mgmt-resource-subscriptions

Manages Azure subscriptions and related…

permissive · top 15,000 on PyPI

azure-mgmt-streamanalytics

Provides Python client library for managing…

permissive · top 15,000 on PyPI