Azure CLI (Command-Line Interface) is Microsoft's cross-platform command-line tool for managing Azure cloud resources from Windows, macOS, and Linux environments. It wraps the Azure REST API, allowing administrators and developers to create, modify, delete, and query resources using concise commands in Bash, PowerShell, or Cmd. Unlike Azure PowerShell (which uses .NET cmdlets), Azure CLI uses a simple, consistent verb-noun syntax (az <group> <subgroup> <command>) that is easier to learn and script across different shells. A key differentiator is its JMESPath query engine, which enables powerful filtering and transformation of JSON output directly in the terminal—critical for building automation scripts that parse complex Azure responses without external tools.
What This Cheat Sheet Covers
This topic spans 31 focused tables and 228 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Installation and Environment
| Method | Example | Description |
|---|---|---|
Download .msi installer from Microsoft Learn | • Graphical installer for Windows • requires administrator privileges • updates via az upgrade. | |
brew install azure-cli | • One-line install via Homebrew • updates with brew upgrade azure-cli. | |
curl -sL | sudo bash | • Script-based installation for Debian/Ubuntu • also supports RPM-based distributions. | |
Launch from Azure Portal toolbar | • Browser-based shell with Azure CLI pre-installed • no local installation needed. |