共用方式為


az connectedvmware vcenter inventory-item

備註

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

清查項目資源。

命令

名稱 Description 類型 狀態
az connectedvmware vcenter inventory-item list

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

擴充套件 GA
az connectedvmware vcenter inventory-item show

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

擴充套件 GA

az connectedvmware vcenter inventory-item list

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

az connectedvmware vcenter inventory-item list --resource-group
                                               --vcenter

範例

擷取清查項目清單

az connectedvmware vcenter inventory-item list --resource-group "resource group name"                --vcenter "name of the vcenter"

必要參數

--resource-group -g

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

--vcenter -v

管理此資源的 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 inventory-item show

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

az connectedvmware vcenter inventory-item show --inventory-item
                                               --resource-group
                                               --vcenter

範例

取得清查專案的詳細數據

az connectedvmware vcenter inventory-item show --inventory-item "inventory item name"                --resource-group "resource group name" --vcenter "name of the vcenter"

必要參數

--inventory-item -i

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

--resource-group -g

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

--vcenter -v

管理此資源的 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。