Azure CLI manages Azure resources from the terminal. It supports scripting, tab completion, structured output queries, and optional container installs.
Overview
Azure CLI is a cross-platform command-line interface for working with Microsoft Azure. It exposes Azure services through az commands, with help text, configurable default output formats, and JMESPath queries to shape results for scripts.
Installation options include platform packages, developer setups, edge builds, pip in a virtual environment, and a preconfigured Docker image. You can try it from Azure Cloud Shell without a local install. The tool documents standard exit codes for automation, such as success, validation failure, and missing resources.
Features aimed at daily use include tab completion for command groups and arguments, az configure for defaults, az feedback for sending comments, and a Visual Studio Code extension for .azcli files with IntelliSense and integrated runs. Telemetry is on by default and can be disabled with az config set core.collecttelemetry=no.
Documentation points to getting-started material, troubleshooting for common install issues, and samples for typical scenarios. The CLI is the open-source client for Azure’s control plane APIs rather than a hosted service you deploy separately.
Key features
- Tab completion for commands
- JMESPath --query output filtering
- Script-friendly exit codes
- az configure default settings
- Prebuilt Docker image
- VS Code extension for azcli files
- Telemetry opt-out setting
- Edge and pip install paths
Use cases
- Automate Azure deployments in shell scripts
- Query resource state in CI pipelines
- Manage subscriptions from a laptop
- Prototype Azure operations interactively
- Run Azure commands inside containers