共用方式為


az connectedvmware cluster

備註

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

叢集資源。

命令

名稱 Description 類型 狀態
az connectedvmware cluster create

建立叢集資源。

擴充套件 GA
az connectedvmware cluster delete

刪除叢集資源。

擴充套件 GA
az connectedvmware cluster list

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

擴充套件 GA
az connectedvmware cluster show

依標識碼、資源群組、叢集名稱或訂用帳戶取得叢集的詳細數據。

擴充套件 GA

az connectedvmware cluster create

建立叢集資源。

az connectedvmware cluster create --custom-location
                                  --inventory-item
                                  --location
                                  --name
                                  --resource-group
                                  --vcenter
                                  [--no-wait]
                                  [--tags]

範例

建立叢集

az connectedvmware cluster create --custom-location "custom location name"                --location "location name" --inventory-item "name or id the inventory item"                --name "cluster name" --resource-group "resource group name"                --vcenter "name or id of the vcenter"

必要參數

--custom-location -c

將管理此資源的自定義位置名稱或標識碼。

--inventory-item -i

清查項目的名稱或標識碼。

--location -l

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

--name -n

資源的名稱。

--resource-group -g

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

--vcenter -v

管理此資源的 vCenter 名稱或識別碼。

選擇性參數

--no-wait

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

預設值: False
--tags

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

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

刪除叢集資源。

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

範例

刪除叢集

az connectedvmware cluster delete --ids "resource id" --name "cluster 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 cluster list

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

az connectedvmware cluster list [--resource-group]

範例

擷取叢集清單

az connectedvmware cluster 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 cluster show

依標識碼、資源群組、叢集名稱或訂用帳戶取得叢集的詳細數據。

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

範例

取得叢集的詳細數據

az connectedvmware cluster show --ids "resource id" --name "cluster 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。