Share via


az connectedvmware vcenter

注意

此參考是 Azure CLI 的 connectedvmware 擴充功能的一部分 (2.0.67 版或更高版本)。 擴充功能會在您第一次執行 az connectedvmware vcenter 命令時自動安裝。 深入了解擴充功能。

Vcenter 資源。

命令

名稱 Description 類型 狀態
az connectedvmware vcenter connect

建立 vcenter 資源。

擴充 GA
az connectedvmware vcenter delete

刪除 vcenter 資源。

擴充 GA
az connectedvmware vcenter inventory-item

清查專案資源。

擴充 GA
az connectedvmware vcenter inventory-item list

擷取資源群組和 vcenter 名稱所提供的清查專案清單。

擴充 GA
az connectedvmware vcenter inventory-item show

依清查專案名稱或識別碼、資源群組和 vcenter 名稱取得清查專案的詳細資料。

擴充 GA
az connectedvmware vcenter list

擷取指定資源群組的 vcenter 資源清單。

擴充 GA
az connectedvmware vcenter show

依識別碼、資源群組、vcenter 名稱或訂用帳戶取得 vcenter 資源的詳細資料。

擴充 GA

az connectedvmware vcenter connect

建立 vcenter 資源。

az connectedvmware vcenter connect --custom-location
                                   --location
                                   [--fqdn]
                                   [--ids]
                                   [--name]
                                   [--no-wait]
                                   [--password]
                                   [--port]
                                   [--resource-group]
                                   [--subscription]
                                   [--tags]
                                   [--username]

範例

連線至 vcenter

az connectedvmware vcenter connect --custom-location "custom location name"                --fqdn "vcenter fqdn/ip" --username "vcenter user name" --password "vcenter password"                --resource-group "resource group name" --location "location name" --name "vcenter name"

必要參數

--custom-location -c

將管理此資源的自訂位置名稱或識別碼。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

選擇性參數

--fqdn

vCenter 的 FQDN/IP 位址。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

資源的名稱。

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--password

用來連線至 vCenter 的使用者名稱密碼認證。

--port

vCenter 的埠。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

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

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

--username

用來連線至 vCenter 的使用者名稱。

全域參數
--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 connectedvmware vcenter delete

刪除 vcenter 資源。

az connectedvmware vcenter delete [--force]
                                  [--ids]
                                  [--name]
                                  [--no-wait]
                                  [--resource-group]
                                  [--subscription]
                                  [--yes]

範例

刪除 vcenter 資源

az connectedvmware vcenter delete --ids "resource id" --name "vcenter name"                --resource-group "resource group name" --subscription "Name or ID of subscription"

選擇性參數

--force

是否強制刪除。

預設值: False
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

資源的名稱。

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

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

--yes -y

不提示確認。

預設值: 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 connectedvmware vcenter list

擷取指定資源群組的 vcenter 資源清單。

az connectedvmware vcenter list [--resource-group]

範例

擷取 vcenter 資源清單

az connectedvmware vcenter list --resource-group "resource group name"

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--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 connectedvmware vcenter show

依識別碼、資源群組、vcenter 名稱或訂用帳戶取得 vcenter 資源的詳細資料。

az connectedvmware vcenter show [--ids]
                                [--name]
                                [--resource-group]
                                [--subscription]

範例

取得 vcenter 資源的詳細資料

az connectedvmware vcenter show --ids "resource id" --name "vcenter name"                    --resource-group "resource group name" --subscription "Name or ID of subscription"

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

資源的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

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

全域參數
--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 來取得完整偵錯記錄。