Azure 命令行接口
az 是 Azure CLI 的入口,管理订阅、资源组、虚拟机、AKS、ACR、Key Vault 等资源。它按 az <group> <command> 组织,支持输出格式和 JMESPath 查询。
az login
az login --use-device-code
az account list --output table
az account set --subscription "My Subscription"
az group list --output table
az vm list --output table
az aks get-credentials --resource-group rg-app --name aks-prod
az acr login --name myregistry
az storage account list --output table
az keyvault secret show --vault-name kv-app --name db-password
az webapp list --output table
az deployment group create -g rg-app -f main.bicep
az config set core.output=table
az account show 和 az account set。--tenant。az version。az group delete 前确认范围。--output json 适合脚本,table 适合人看;解析时不要依赖表格列宽。aws — AWS CLIgcloud — Google Cloud CLIterraform — 声明式管理 Azure 资源