skillfed

azure-cli-telemetry

Microsoft Azure CLI Telemetry Package

azure-cli-telemetry v1.1.0 5.4M downloads/30d#2,104 on PyPI4,602
Permissive license MIT Active released

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

uv

uv add azure-cli-telemetry

poetry

poetry add azure-cli-telemetry

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

azure cli telemetryazure telemetry collectioncli usage trackingazure diagnostics uploadapplication insights integrationazure cli metrics
azure-ecosystemtelemetry-backend

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

azureml-telemetry

Collects telemetry data from Python code by…

unclear · top 15,000 on PyPI

applicationinsights

Sends telemetry events, metrics, and traces to…

permissive · top 5,000 on PyPI

azure-monitor-opentelemetry

Bundles OpenTelemetry SDK and Azure Monitor…

permissive · top 5,000 on PyPI

azure-monitor-opentelemetry-exporter

Exports OpenTelemetry traces, metrics, and logs…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-openai-v2

Automatically traces and logs OpenAI API calls…

permissive · top 5,000 on PyPI

azure-cli-core

Provides the core Python library and CLI…

permissive · top 5,000 on PyPI

azure-applicationinsights

Provides a Python client library for querying…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-system-metrics

Collects system performance metrics (CPU,…

permissive · top 5,000 on PyPI

glean-parser

Parses and validates Glean telemetry…

unclear · top 15,000 on PyPI

microsoft-opentelemetry

Provides a unified OpenTelemetry distribution…

permissive · top 15,000 on PyPI