September 28, 2026
A cross-platform command-line tool for managing Azure cloud resources.
通过 Docker 运行指定版本:
```bash
docker run -u $(id -u):$(id -g) -v ${HOME}:/home/az -e HOME=/home/az --rm -it mcr.microsoft.com/azure-cli:<version>
```查看帮助或列出资源:
```bash
az storage -h
az vm list --query "[?provisioningState=='Succeeded'].{ name: name, os: storageProfile.osDisk.osType }"
```Product facts
- Type
- CLI / Terminal
- Category
- Development & Engineering › Cloud Infrastructure
- Pricing
- Open source
- License
- MIT
- Launched
- Sep 28, 2026
- Listed
- Sep 28, 2026
- Website
- github.com
Overview
Azure CLI is a next-generation, cross-platform command-line tool from Microsoft for managing Azure cloud services. It is written in Python and open-sourced under the MIT license.
The tool manages Azure resources via the az command, using the syntax az [ group ] [ subgroup ] [ command ] {parameters}. Use the -h flag to get help for any command.
Key Capabilities
- Tab completion: Supports Tab auto-completion for command groups, commands, and some parameters.
- JMESPath queries: Use the
--queryparameter with JMESPath syntax to customize output, such as filtering VMs by status and extracting specific fields. - Output formatting: Supports json, table, tsv, and other formats. Change the default format with
az configure. - Exit codes: Defines clear exit codes for scripting (0 for success, 1 for general errors, 2 for parsing errors, 3 for missing ARM resources).
- REST API calls: The built-in
az restcommand lets you call REST APIs directly. - Telemetry control: Data collection is enabled by default; disable it with
az config set core.collect_telemetry=no.
Installation
Multiple installation methods are available, including official installers, Docker images, and Edge builds from the dev branch. Edge builds offer MSI, Homebrew Formula, and packages for Ubuntu Bionic/Focal/Jammy and RPM el8.
Editor Integration
With the Azure CLI Tools extension for Visual Studio Code, you get IntelliSense for commands and parameters, code snippets, inline execution in the integrated terminal, side-by-side output, and hover documentation in .azcli files.
Ideal for developers and operations teams who manage Azure resources via the command line locally or in CI/CD pipelines.
Key features
- Cross-platform CLI: A Python-based, multi-platform CLI that manages Azure cloud resources via the az command.
- Tab completion: Supports Tab auto-completion for command groups, commands, and some parameters.
- JMESPath queries: Use the --query parameter with JMESPath syntax to filter and format output.
- Multiple output formats: Supports json, table, tsv, and more. Set defaults with az configure.
- Standardized exit codes: Defines four exit codes (0, 1, 2, 3) for easy status checks in scripts.
- REST API calls: Provides the az rest command to call Azure REST APIs directly.
- Docker support: Offers preconfigured Docker images to run Azure CLI in containers.
- Edge builds: Provides the latest builds from the dev branch in MSI, Homebrew, Deb, RPM, and more.
- VS Code integration: Get IntelliSense, snippets, and inline execution via the Azure CLI Tools extension.
- Telemetry toggle: Data collection is on by default and can be disabled via configuration commands.
Releases
Notify meQ&A
- What is the basic command format of Azure CLI?AI-generated
- The basic format is `az [ group ] [ subgroup ] [ command ] {parameters}`. Add `-h` to view help information, such as `az storage -h` or `az vm create -h`.
- How do I customize the output format of a command?AI-generated
- Azure CLI supports json, table, and tsv output formats. Specify one temporarily with a flag like `--output table`, or change the default format using the `az configure` command.
- How do I check if a command succeeded in a script?AI-generated
- Azure CLI defines specific exit codes: 0 for success; 1 for general errors (e.g., server error status codes or validation failures); 2 for parsing errors; 3 for missing ARM resources (commonly used for existence checks with show commands).
- How do I disable data collection in Azure CLI?AI-generated
- Telemetry collection is enabled by default. Run `az config set core.collect_telemetry=no` to disable it.
- How do I run Azure CLI via Docker?AI-generated
- You can use the officially maintained Docker image. Example command: `docker run -u $(id -u):$(id -g) -v ${HOME}:/home/az -e HOME=/home/az --rm -it mcr.microsoft.com/azure-cli:<version>`.
- How do I get the latest development build of Azure CLI?AI-generated
- Download the Edge builds, which are the latest builds from the dev branch. Official download links are available for MSI, Homebrew Formula, Ubuntu Deb, and RPM el8 formats. Note that on Windows, uninstall the stable version before installing an Edge build.
This product has no owner yet
It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.
Claim this productAlternatives
The product content on this page was translated by AI from the author's original.


