az connectedvmware datastore

注意

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

資料存放區資源。

命令

名稱 Description 類型 狀態
az connectedvmware datastore create

建立資料存放區資源。

擴充 GA
az connectedvmware datastore delete

刪除資料存放區資源。

擴充 GA
az connectedvmware datastore list

擷取指定資源群組的資料存放區清單。

擴充 GA
az connectedvmware datastore show

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

擴充 GA

az connectedvmware datastore create

建立資料存放區資源。

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

範例

建立資料存放區

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

刪除資料存放區資源。

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

範例

刪除資料存放區

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

擷取指定資源群組的資料存放區清單。

az connectedvmware datastore list [--resource-group]

範例

擷取資料存放區清單

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

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

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

範例

取得資料存放區的詳細資料

az connectedvmware datastore show --ids "resource id" --name "datastore 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 來取得完整偵錯記錄。