Azure CLI Commands

Complete Azure CLI commands reference — 100 commands across 7 categories. Quick reference cheat sheet for Windows, Mac & Linux.

The Azure CLI is organised as az followed by a service group and a verb — az vm create, az storage account list — and the table lists the service groups with Microsoft's one-line descriptions. Knowing the group names is most of the battle, because every group answers --help with its subcommands. The notes cover the session setup, the groups everyone uses, and the flags that make output scriptable.

Monitoring & Management (12)

ShortcutAction
az accountManage Azure subscription information
az advisorManage Azure Advisor
az billingManage Azure Billing
az configManage Azure CLI configuration
az consumptionManage consumption of Azure resources
az deploymentManage Azure Resource Manager template deployment
az featureManage resource provider features
az groupManage resource groups and template deployments
az monitorManage the Azure Monitor Service
az providerManage resource providers
az resourceManage Azure resources
az tagTag Management on a resource

Compute & Containers (14)

ShortcutAction
az acrManage private registries with Azure Container
az aksAzure Kubernetes Service
az batchManage Azure Batch
az capacityManage capacity
az containerManage Azure Container Instances
az containerappManage Azure Container Apps
az diskManage Azure Managed Disks
az imageManage custom virtual machine images
az ppgManage Proximity Placement Groups
az restore-pointManage restore point with res
az snapshotManage point-in-time copies of managed disks
az sshkeyManage ssh public key with vm
az vmManage Linux or Windows virtual machines
az vmssManage groupings of virtual machines in an Azure

Identity & Security (8)

ShortcutAction
az adManage Microsoft Entra ID (formerly known as Azure
az identityManage Managed Identity
az keyvaultManage KeyVault keys, secrets, and certificates
az lockManage Azure locks
az managedappManage template solutions provided and maintained
az policyManage resources defined and used by the Azure
az roleManage Azure role-based access control (Azure RBAC)
az securityManage your security posture with Microsoft

Other Services (39)

ShortcutAction
az amsManage Azure Media Services resources
az aroManage Azure Red Hat OpenShift clusters
az bicepBicep CLI command group
az botManage Microsoft Azure Bot Service
az cacheManage CLI objects cached using the --defer argument
az cloudManage registered Azure clouds
az cognitiveservicesManage Azure Cognitive Services accounts
az compute-fleetManage for Azure Compute Fleet
az compute-recommenderManage sku/zone/region recommender info for compute
az configureManage Azure CLI configuration. This command
az connectionCommands to manage Service Connector local connections which allow local environment to connect
az data-boundaryData boundary operations
az databoxedgeManage device with databoxedge
az deployment-scriptsManage deployment scripts at subscription
az disk-accessManage disk access resources
az disk-encryption-setDisk Encryption Set resource
az dmsManage Azure Data Migration Service (classic)
az extensionManage and update CLI extensions
az feedbackSend feedback to the Azure CLI Team
az findI'm an AI robot, my advice is based on our Azure
az interactiveStart interactive mode. Installs the Interactive
az labManage azure devtest labs
az loginLog in to Azure
az logoutLog out to remove access to Azure subscriptions
az managed-cassandraAzure Managed Cassandra
az managedservicesManage the registration assignments and definitions
az mapsManage Azure Maps
az netappfilesManage Azure NetApp Files (ANF) Resources
az private-linkPrivate-link association CLI command group
az resourcemanagementResourcemanagement CLI command group
az restInvoke a custom request
az sfManage and administer Azure Service Fabric clusters
az sigManage shared image gallery
az stackA deployment stack is a native Azure resource type
az surveyTake Azure CLI survey
az termManage marketplace agreement
az tsManage template specs at subscription or resource
az upgradeUpgrade Azure CLI and extensions
az versionShow the versions of Azure CLI modules

App Platform (8)

ShortcutAction
az apimManage Azure API Management services
az appconfigManage App Configurations
az appserviceManage Appservice
az functionappManage function apps. To install the Azure
az logicappManage logic apps
az springManage Azure Spring Apps
az staticwebappManage static apps
az webappManage web apps

Storage & Data (12)

ShortcutAction
az backupManage Azure Backups
az cosmosdbManage Azure Cosmos DB database accounts
az dlsManage Data Lake Store accounts and filesystems
az hdinsightManage HDInsight resources
az mariadbManage Azure Database for MariaDB servers
az mysqlManage Azure Database for MySQL servers
az postgresManage Azure Database for PostgreSQL
az redisManage dedicated Redis caches for your Azure
az searchManage Azure AI Search
az sqlManage Azure SQL Databases and Data Warehouses
az storageManage Azure Cloud Storage resources
az synapseManage and operate Synapse Workspace, Spark Pool

Networking (7)

ShortcutAction
az eventgridManage Azure Event Grid topics, domains, domain
az eventhubsEventhubs
az iotManage Internet of Things (IoT) assets
az networkManage Azure Network resources
az relayManage Azure Relay Service namespaces, WCF relays
az servicebusServicebus
az signalrManage Azure SignalR Service
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

AWS CLI Google Cloud CLI Kubernetes (kubectl) Docker Terraform PowerShell

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Azure CLI documentation — learn.microsoft.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Session and scope

az login opens a browser to authenticate (or --use-device-code on a headless machine), and az account then lists subscriptions and sets the active one with az account set --subscription, which is the step people forget when a resource "does not exist". az config stores defaults such as a resource group and location so they need not be repeated, and az extension installs command groups that ship separately. az interactive starts a shell with completion and inline help for exploring.

The groups you meet first

az group creates and lists resource groups, the container for everything else. az vm, az aks, az webapp, az functionapp and az containerapp are the compute surfaces; az storage, az sql, az cosmosdb and az postgres the data ones; az network holds virtual networks, NSGs and load balancers; az keyvault secrets and certificates. az deployment runs ARM and Bicep templates, with az bicep managing the Bicep compiler. az resource works on any resource by ID when a service has no dedicated group.

Scripting and troubleshooting

Every command accepts --output (json, table, tsv) and --query, a JMESPath expression that picks fields out of the JSON, so az vm list --query "[].name" -o tsv is a plain list of names. az monitor reads metrics and activity logs, az role and az ad handle RBAC and Entra ID objects, az lock protects resources from deletion, and az policy shows what compliance rules apply. az find suggests commands from a description when you cannot remember the group, and az feedback reports a bug with the last command's trace attached.

Frequently asked questions

How do I switch subscriptions?

az account list shows them; az account set --subscription "name or id" makes one active for subsequent commands.

How do I get just one field from a command's output?

Add --query with a JMESPath expression and -o tsv, for example az vm show -g rg -n vm --query "hardwareProfile.vmSize" -o tsv.

How do I find the command for something?

az find "description", or az <group> --help to list a group's subcommands.

Why is a command group missing?

Some groups are extensions. az extension add --name <name> installs them; az extension list shows what is installed.

🤖 Ask AI about Azure CLI shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok