az cloud

管理已註冊的 Azure 雲端。

命令

名稱 Description 類型 狀態
az cloud list

列出已註冊的雲端。

核心 GA
az cloud list-profiles

列出雲端支援的設定檔。

核心 GA
az cloud register

註冊雲端。

核心 GA
az cloud set

設定作用中的雲端。

核心 GA
az cloud show

取得已註冊雲端的詳細資料。

核心 GA
az cloud unregister

取消註冊雲端。

核心 GA
az cloud update

更新雲端的組態。

核心 GA

az cloud list

列出已註冊的雲端。

az cloud list
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cloud list-profiles

列出雲端支援的設定檔。

az cloud list-profiles [--name]
                       [--show-all]

選擇性參數

--name -n

已註冊的雲端名稱。

預設值: AzureCloud
--show-all

顯示 CLI 中支援的所有可用設定檔。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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-resource-manager]
                  [--endpoint-sql-management]
                  [--endpoint-vm-image-alias-doc]
                  [--profile {2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest}]
                  [--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"
  }
}

必要參數

--name -n

已註冊的雲端名稱。

選擇性參數

--cloud-config

JSON 編碼的雲端設定。 使用 @{file} 從檔案載入。

--endpoint-active-directory

Active Directory 登入端點。

--endpoint-active-directory-data-lake-resource-id

Data Lake Services 的 Active Directory 資源識別碼。

--endpoint-active-directory-graph-resource-id

Active Directory 資源識別碼。

--endpoint-active-directory-resource-id

要為其取得 AD 權杖的資源識別碼。

--endpoint-gallery

範本資源庫端點。

--endpoint-management

管理服務端點。

--endpoint-resource-manager

資源管理端點。

--endpoint-sql-management

SQL Server 管理端點。

--endpoint-vm-image-alias-doc

快取常用虛擬機器映射的檔 URI。

--profile

要用於此雲端的設定檔。

接受的值: 2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest
--suffix-acr-login-server-endpoint

Azure Container Registry 登入伺服器尾碼。

--suffix-azure-datalake-analytics-catalog-and-job-endpoint

Data Lake Analytics 作業和目錄服務 dns 尾碼。

--suffix-azure-datalake-store-file-system-endpoint

Data Lake store 檔案系統服務 dns 尾碼。

--suffix-keyvault-dns

金鑰保存庫服務 dns 尾碼。

--suffix-sql-server-hostname

sql server 的 dns 尾碼。

--suffix-storage-endpoint

儲存體帳戶的端點尾碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cloud set

設定作用中的雲端。

az cloud set --name
             [--profile {2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest}]

範例

設定作用中的雲端。 (自動產生)

az cloud set --name MyRegisteredCloud

必要參數

--name -n

已註冊的雲端名稱。

選擇性參數

--profile

要用於此雲端的設定檔。

接受的值: 2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cloud show

取得已註冊雲端的詳細資料。

az cloud show [--name]

選擇性參數

--name -n

已註冊的雲端名稱。

預設值: AzureCloud
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cloud unregister

取消註冊雲端。

az cloud unregister --name

範例

取消註冊雲端。 (自動產生)

az cloud unregister --name MyRegisteredCloud

必要參數

--name -n

已註冊的雲端名稱。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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-resource-manager]
                [--endpoint-sql-management]
                [--endpoint-vm-image-alias-doc]
                [--name]
                [--profile {2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest}]
                [--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 update --profile latest

選擇性參數

--cloud-config

JSON 編碼的雲端設定。 使用 @{file} 從檔案載入。

--endpoint-active-directory

Active Directory 登入端點。

--endpoint-active-directory-data-lake-resource-id

Data Lake Services 的 Active Directory 資源識別碼。

--endpoint-active-directory-graph-resource-id

Active Directory 資源識別碼。

--endpoint-active-directory-resource-id

要為其取得 AD 權杖的資源識別碼。

--endpoint-gallery

範本資源庫端點。

--endpoint-management

管理服務端點。

--endpoint-resource-manager

資源管理端點。

--endpoint-sql-management

SQL Server 管理端點。

--endpoint-vm-image-alias-doc

快取常用虛擬機器映射的檔 URI。

--name -n

已註冊的雲端名稱。

預設值: AzureCloud
--profile

要用於此雲端的設定檔。

接受的值: 2017-03-09-profile, 2018-03-01-hybrid, 2019-03-01-hybrid, 2020-09-01-hybrid, latest
--suffix-acr-login-server-endpoint

Azure Container Registry 登入伺服器尾碼。

--suffix-azure-datalake-analytics-catalog-and-job-endpoint

Data Lake Analytics 作業和目錄服務 dns 尾碼。

--suffix-azure-datalake-store-file-system-endpoint

Data Lake store 檔案系統服務 dns 尾碼。

--suffix-keyvault-dns

金鑰保存庫服務 dns 尾碼。

--suffix-sql-server-hostname

sql server 的 dns 尾碼。

--suffix-storage-endpoint

儲存體帳戶的端點尾碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。