共用方式為


az connectedvmware resource-pool

備註

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

資源集區資源。

命令

名稱 Description 類型 狀態
az connectedvmware resource-pool create

建立資源集區資源。

擴充套件 GA
az connectedvmware resource-pool delete

刪除資源集區資源。

擴充套件 GA
az connectedvmware resource-pool list

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

擴充套件 GA
az connectedvmware resource-pool show

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

擴充套件 GA

az connectedvmware resource-pool create

建立資源集區資源。

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

範例

建立資源集區

az connectedvmware resource-pool create --custom-location "custom location name"                --location "location name" --inventory-item "name or id the inventory item"                --name "resource pool 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 resource-pool delete

刪除資源集區資源。

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

範例

刪除資源集區

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

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

az connectedvmware resource-pool list [--resource-group]

範例

擷取資源集區清單

az connectedvmware resource-pool 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 resource-pool show

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

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

範例

取得資源集區的詳細數據

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