az.cli
An interface to execute Azure CLI commands using Python
Decision gist · record as of 2026-08-14
No. While the package works and has low install friction, it is abandoned (last release 2021-03-14, last commit 2022-02-25). It will not receive updates for new Azure CLI versions, Python releases, or security issues. For new projects, use the official Azure SDK for Python instead; for existing code, consider migrating away.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires azure-cli to be installed and az login or service principal authentication to be configured in ~/.azure before use.
- Low install friction with a single runtime dependency (azure-cli).
- However, the package is abandoned—last release was 2021-03-14 and last commit 2022-02-25—so it will not receive updates or security fixes for new Azure CLI versions or Python releases.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
last release 2021-03-14 (1979 days) · last repo commit 2022-02-25 · 22 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 585,025 downloads/mo, #5,887 on PyPI
Alternatives
Verify before relying
pip install az.cli
from az.cli import az
exit_code, result_dict, logs = az("group show -n test")
if exit_code == 0:
print(result_dict)
else:
print(logs)- Whether the package works with Azure CLI versions released after 2022-02-25 or Python versions beyond 3.8.
- Current compatibility with modern azure-cli API changes or breaking changes in the underlying azure.cli.core module.
What it is and what it does
Az.cli is a thin Python wrapper around the Azure CLI that lets you call `az` commands from within Python scripts and get back structured results. Instead of shelling out and parsing text, you import the `az` function, call it with a command string (e.g., `az("group list")`), and receive a named tuple with an exit code, a parsed dictionary of the result, and any error logs. It relies on azure-cli being installed and configured on your system, using the same authentication and config stored in ~/.azure that the CLI itself uses.
The package is straightforward: it wraps the azure.cli.core interface and handles the plumbing of invoking commands and unpacking their output. It's useful for automation scripts, infrastructure-as-code tools, or applications that need to orchestrate Azure resources programmatically without building against the full Azure SDK.
Use it for
- Automate Azure resource provisioning and management from Python scripts without calling subprocess directly.
- Build infrastructure-as-code tools that need to query or modify Azure resources and parse the results as dictionaries.
- Integrate Azure CLI commands into larger Python applications where you want structured output rather than text parsing.
- Write test or validation scripts that verify Azure resource state by running CLI commands and checking the returned data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
While the package works and has low install friction, it is abandoned (last release 2021-03-14, last commit 2022-02-25). It will not receive updates for new Azure CLI versions, Python releases, or security issues. For new projects, use the official Azure SDK for Python instead; for existing code, consider migrating away.
Install
az-cli on PyPI
Before you install
Low install friction with a single runtime dependency (azure-cli). However, the package is abandoned—last release was 2021-03-14 and last commit 2022-02-25—so it will not receive updates or security fixes for new Azure CLI versions or Python releases.
Requires azure-cli to be installed and az login or service principal authentication to be configured in ~/.azure before use.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install az.cli
from az.cli import az
exit_code, result_dict, logs = az("group show -n test")
if exit_code == 0:
print(result_dict)
else:
print(logs)
Verify before relying
- Whether the package works with Azure CLI versions released after 2022-02-25 or Python versions beyond 3.8.
- Current compatibility with modern azure-cli API changes or breaking changes in the underlying azure.cli.core module.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageazure-cli |
| Maintenance | Abandoned 1,979 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 585,025 / month, #5,887 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8 |
Evidence: az.cli-0.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure cli python wrapper”
- az.cliExecutes Azure CLI commands from Python and returns structured…
- azure-cli-coreProvides the core Python library and CLI framework for Microsoft…
- azure-commonProvides shared utilities and common code for Microsoft Azure SDK…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also azure-cli-core · azure-cli · azdev · azure-cli-appservice · azure-cli-acr · azure-cli-sql · knack · azure-mgmt-resource-deploymentscripts · azure-mgmt-domainregistration · azure-storage-blob