azure-cli-telemetry
Microsoft Azure CLI Telemetry Package
What it is and what it does
Azure CLI Telemetry is a backend package that collects and uploads usage data and diagnostics from the Azure CLI to Microsoft's Application Insights service. It is not meant to be installed directly by end users but rather as a transitive dependency when installing the Azure CLI itself. The package provides APIs for gathering telemetry events and handles the upload process, with version 1.1.0 switching to immediate upload rather than caching records.
The package has no runtime dependencies and is lightweight, designed to integrate seamlessly into the Azure CLI's operation. It supports Python 3.8, 3.9, and 3.10, and is actively maintained by the Azure team. Since its initial release in 2018, it has evolved to optimize telemetry delivery—most recently removing the caching layer in favor of immediate transmission.
Use it for:
- Automatically collect Azure CLI usage patterns and errors when running Azure CLI commands.
- Send diagnostic data to Microsoft for improving Azure CLI features and identifying common issues.
- Track which Azure CLI commands are most frequently used across user populations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Collects and uploads telemetry data for the Azure CLI, sending usage metrics and diagnostics to Application Insights.
Yes, but only as a transitive dependency of Azure CLI—do not install directly. The package is production-stable, actively maintained, has no external dependencies, and carries no security vulnerabilities. Its MIT license poses no restrictions. Install it only if you are installing Azure CLI itself; attempting to use it standalone will not work as intended.
Install
azure-cli-telemetry on PyPI
pip
pip install azure-cli-telemetryuv
uv add azure-cli-telemetrypoetry
poetry add azure-cli-telemetryInstalling azure-cli-telemetry
Before you install
Low install friction with no runtime dependencies. Actively maintained; last commit 2026-08-14 with production-stable status. Not intended for direct end-user installation—typically pulled in as a transitive dependency of Azure CLI.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe for inclusion in enterprise tooling.
Quickstart
# Typically imported and used internally by Azure CLI, not directly by end users.
# Example (for reference):
from azure.cli.telemetry import telemetry_client
telemetry_client.add_event('event_name', properties={'key': 'value'})
This package is not intended for direct installation by end users; it is a dependency of Azure CLI and is used internally by that tool.
Verify before relying
- Whether telemetry data collection can be disabled or opted out of at runtime.
- What specific data points are collected and sent to Application Insights.
- Whether the package works with Python versions outside the 3.8–3.10 range listed in classifiers.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,419,853/month — #2,104 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_cli_telemetry-1.1.0-py3-none-any.whl
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
azureml-telemetryCollects telemetry data from Python code by…
unclear · top 15,000 on PyPI
applicationinsightsSends telemetry events, metrics, and traces to…
permissive · top 5,000 on PyPI
azure-monitor-opentelemetryBundles OpenTelemetry SDK and Azure Monitor…
permissive · top 5,000 on PyPI
azure-monitor-opentelemetry-exporterExports OpenTelemetry traces, metrics, and logs…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-openai-v2Automatically traces and logs OpenAI API calls…
permissive · top 5,000 on PyPI
azure-cli-coreProvides the core Python library and CLI…
permissive · top 5,000 on PyPI
azure-applicationinsightsProvides a Python client library for querying…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-system-metricsCollects system performance metrics (CPU,…
permissive · top 5,000 on PyPI
glean-parserParses and validates Glean telemetry…
unclear · top 15,000 on PyPI
microsoft-opentelemetryProvides a unified OpenTelemetry distribution…
permissive · top 15,000 on PyPI