browse
az/

Azure CLI

Microsoft

Cross-platform command line interface for managing Microsoft Azure cloud resources and services.

Cloud ProvidersJSON
01Agent Notes

Azure CLI defaults to JSON output - no extra flag needed. Uses `az <service> <action>` pattern. Use `--query` with JMESPath for server-side filtering. Most list commands support `--query "[].{name:name, id:id}"` for projection. Use `az account set -s <sub>` for subscription context.


02Global Flags
FlagTypeDescription
--subscriptionstringAzure subscription ID or name
--output/-oenum [json, table, tsv, yaml, jsonc]Output format
--querystringJMESPath query string for filtering output
--verbosebooleanIncrease logging verbosity

03Authentication
Methods
environment-variablesconfig-filemanaged-identityservice-principal
Env vars
AZURE_SUBSCRIPTION_IDAZURE_TENANT_IDAZURE_CLIENT_IDAZURE_CLIENT_SECRET
Config files
~/.azure/
Setupaz login

04Install
brew install azure-cli

05Capabilities
Reference
binaryaz
checkaz version
authenvironment-variables, config-file, managed-identity, service-principal
formatsjson, table, tsv, yaml, jsonc
json flag-o json
version2.84.0