az cloud
管理已注册的 Azure 云。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az cloud list |
列出已注册的云。 |
Core | GA |
az cloud list-profiles |
列出云支持的配置文件。 |
Core | GA |
az cloud register |
注册云。 |
Core | GA |
az cloud set |
设置活动云。 |
Core | GA |
az cloud show |
获取已注册云的详细信息。 |
Core | GA |
az cloud unregister |
注销云。 |
Core | GA |
az cloud update |
更新云的配置。 |
Core | GA |
az cloud list
列出已注册的云。
az cloud list
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud list-profiles
列出云支持的配置文件。
az cloud list-profiles [--name]
[--show-all]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
已注册云的名称。
属性 | 值 |
---|---|
默认值: | AzureCloud |
显示 CLI 中支持的所有可用配置文件。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud register
注册云。
注册云时,仅为其他终结点的自动检测指定资源管理器终结点。
az cloud register --name
[--cloud-config]
[--endpoint-active-directory]
[--endpoint-active-directory-data-lake-resource-id]
[--endpoint-active-directory-graph-resource-id]
[--endpoint-active-directory-resource-id]
[--endpoint-gallery]
[--endpoint-management]
[--endpoint-microsoft-graph-resource-id]
[--endpoint-resource-manager]
[--endpoint-sql-management]
[--endpoint-vm-image-alias-doc]
[--profile {latest}]
[--skip-endpoint-discovery]
[--suffix-acr-login-server-endpoint]
[--suffix-azure-datalake-analytics-catalog-and-job-endpoint]
[--suffix-azure-datalake-store-file-system-endpoint]
[--suffix-keyvault-dns]
[--suffix-sql-server-hostname]
[--suffix-storage-endpoint]
示例
使用配置文件注册云
az cloud register -n MyCloud --cloud-config @"cloud.json"
("cloud.json" supports all the endpoint and suffix options in camel case or the JSON output format from `az cloud show`. See the example content below.)
{
"endpointActiveDirectory": "https://login.microsoftonline.us",
"suffixAcrLoginServerEndpoint": ".azurecr.us"
}
or
{
"endpoints":{
"activeDirectory": "https://login.microsoftonline.us"
},
"suffixes":{
"acrLoginServerEndpoint": ".azurecr.us"
}
}
必需参数
已注册云的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
JSON 编码的云配置。 使用 @{file} 从文件加载。
Active Directory 登录终结点。
Data Lake 服务的 Active Directory 资源 ID。
Active Directory 资源 ID。
要为其获取 AD 令牌的资源 ID。
模板库终结点。
管理服务终结点。
Microsoft Graph 资源 ID。
资源管理终结点。
sql server 管理终结点。
缓存常用虚拟机映像的文档的 URI。
要用于此云的配置文件。 Azure 堆栈配置文件 2017-03-09-profile
2018-03-01-hybrid
2019-03-01-hybrid
已被 2020-09-01-hybrid
弃用并删除。 若要继续使用 Azure Stack,请安装 Azure CLI 2.66.*
(LTS) 版本。 有关更多详细信息,请参阅: https://learn.microsoft.com/en-us/cli/azure/whats-new-overview#important-notice-for-azure-stack-hub-customers
属性 | 值 |
---|---|
接受的值: | latest |
如果指定,将跳过云终结点的自动发现。
属性 | 值 |
---|---|
默认值: | False |
Azure 容器注册表登录服务器后缀。
Data Lake Analytics 作业和目录服务 dns 后缀。
Data Lake store 文件系统服务 dns 后缀。
Key Vault 服务 dns 后缀。
sql server 的 dns 后缀。
存储帐户的终结点后缀。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud set
设置活动云。
az cloud set --name
[--profile {latest}]
示例
设置活动云。 (autogenerated)
az cloud set --name MyRegisteredCloud
必需参数
已注册云的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
要用于此云的配置文件。 Azure 堆栈配置文件 2017-03-09-profile
2018-03-01-hybrid
2019-03-01-hybrid
已被 2020-09-01-hybrid
弃用并删除。 若要继续使用 Azure Stack,请安装 Azure CLI 2.66.*
(LTS) 版本。 有关更多详细信息,请参阅: https://learn.microsoft.com/en-us/cli/azure/whats-new-overview#important-notice-for-azure-stack-hub-customers
属性 | 值 |
---|---|
接受的值: | latest |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud show
获取已注册云的详细信息。
az cloud show [--name]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
已注册云的名称。
属性 | 值 |
---|---|
默认值: | AzureCloud |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud unregister
注销云。
az cloud unregister --name
示例
注销云。 (autogenerated)
az cloud unregister --name MyRegisteredCloud
必需参数
已注册云的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az cloud update
更新云的配置。
az cloud update [--cloud-config]
[--endpoint-active-directory]
[--endpoint-active-directory-data-lake-resource-id]
[--endpoint-active-directory-graph-resource-id]
[--endpoint-active-directory-resource-id]
[--endpoint-gallery]
[--endpoint-management]
[--endpoint-microsoft-graph-resource-id]
[--endpoint-resource-manager]
[--endpoint-sql-management]
[--endpoint-vm-image-alias-doc]
[--name]
[--profile {latest}]
[--skip-endpoint-discovery]
[--suffix-acr-login-server-endpoint]
[--suffix-azure-datalake-analytics-catalog-and-job-endpoint]
[--suffix-azure-datalake-store-file-system-endpoint]
[--suffix-keyvault-dns]
[--suffix-sql-server-hostname]
[--suffix-storage-endpoint]
示例
更新云的配置。 (autogenerated)
az cloud update --profile latest
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
JSON 编码的云配置。 使用 @{file} 从文件加载。
Active Directory 登录终结点。
Data Lake 服务的 Active Directory 资源 ID。
Active Directory 资源 ID。
要为其获取 AD 令牌的资源 ID。
模板库终结点。
管理服务终结点。
Microsoft Graph 资源 ID。
资源管理终结点。
sql server 管理终结点。
缓存常用虚拟机映像的文档的 URI。
已注册云的名称。
属性 | 值 |
---|---|
默认值: | AzureCloud |
要用于此云的配置文件。 Azure 堆栈配置文件 2017-03-09-profile
2018-03-01-hybrid
2019-03-01-hybrid
已被 2020-09-01-hybrid
弃用并删除。 若要继续使用 Azure Stack,请安装 Azure CLI 2.66.*
(LTS) 版本。 有关更多详细信息,请参阅: https://learn.microsoft.com/en-us/cli/azure/whats-new-overview#important-notice-for-azure-stack-hub-customers
属性 | 值 |
---|---|
接受的值: | latest |
如果指定,将跳过云终结点的自动发现。
属性 | 值 |
---|---|
默认值: | False |
Azure 容器注册表登录服务器后缀。
Data Lake Analytics 作业和目录服务 dns 后缀。
Data Lake store 文件系统服务 dns 后缀。
Key Vault 服务 dns 后缀。
sql server 的 dns 后缀。
存储帐户的终结点后缀。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |