A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: az command not not found # 官方 https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt # OS X brew install azure-cli # Raspbian apt-get install azure-cli # Dockerfile dockerfile.run/az
Azure 命令行接口 (CLI) 是一个跨平台的命令行工具 - az
,可连接到 Azure 并对 Azure 资源执行管理命令。 它允许使用交互式命令行提示符或脚本通过终端执行命令。
Azure CLI 语法遵循一种简单的 reference name - command - parameter - parameter value 模式。 例如,在订阅之间进行切换通常是一项常见任务。Azure CLI 的另一种常见用途是管理角色分配。
az [group] [command] [arguments] [global parameters]
--help Show help information. --version Show the version of the Azure CLI. --output {json,jsonc,table,tsv,yaml,yamlc,none} Specify the output format. --query JMESPATH JMESPath query string. See http://jmespath.org/ for more information and examples. --verbose Increase logging verbosity to show all debug logs. --debug Increase logging verbosity to show all debug logs.
az 登录 Azure:
az login
az 管理 Azure 订阅信息:
az account
az 列出所有 Azure 托管磁盘:
az disk list
az 列出所有 Azure 虚拟机:
az vm list
az 管理 Azure Kubernetes 服务:
az aks
az 管理 Azure 网络资源:
az network