az 命令详解

| 选择喜欢的代码风格  

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

az 命令安装:


-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

execline 命令补充说明:


Azure 命令行接口 (CLI) 是一个跨平台的命令行工具 - az,可连接到 Azure 并对 Azure 资源执行管理命令。 它允许使用交互式命令行提示符或脚本通过终端执行命令。

Azure CLI 语法遵循一种简单的 reference name - command - parameter - parameter value 模式。 例如,在订阅之间进行切换通常是一项常见任务。Azure CLI 的另一种常见用途是管理角色分配。

az 命令语法:


az [group] [command] [arguments] [global parameters]

az 命令选项:


--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 命令实例:


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

az 命令扩展阅读:


 

CommandNotFound ⚡️ 坑否 - 其他频道扩展阅读:




az 命令评论