az azurestackhci storagepath

注意

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

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用 azurestackhci 管理 storagepath。

命令

名稱 Description 類型 狀態
az azurestackhci storagepath create

建立儲存體路徑。

擴充 實驗性
az azurestackhci storagepath delete

刪除儲存體路徑。

擴充 實驗性
az azurestackhci storagepath list

列出所有儲存體路徑。

擴充 實驗性
az azurestackhci storagepath show

取得儲存體路徑的詳細資料。

擴充 實驗性
az azurestackhci storagepath update

更新儲存體路徑。

擴充 實驗性

az azurestackhci storagepath create

實驗

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立儲存體路徑。

az azurestackhci storagepath create --name
                                    --resource-group
                                    [--extended-location]
                                    [--location]
                                    [--path]
                                    [--tags]

範例

Put儲存體Path

az azurestackhci storagepath create --resource-group "test-rg" --extended-location name="/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" type="CustomLocation" --location "West US2" --path "C:\\path_storage" --name "Default_StoragePath"

必要參數

--name

儲存體路徑的名稱。

--resource-group -g

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

選擇性參數

--extended-location

使用方式:--extended-location type=XX name=XX

type:擴充位置類型。 name:擴充位置名稱。

--location -l

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

--path

磁片上用來建立儲存路徑的路徑。

--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 azurestackhci storagepath delete

實驗

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除儲存體路徑。

az azurestackhci storagepath delete [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]
                                    [--yes]

範例

Delete儲存體Path

az azurestackhci storagepath delete --resource-group "test-rg" --name "Default_StoragePath"

選擇性參數

--ids

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

--name

儲存體路徑的名稱。

--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 azurestackhci storagepath list

實驗

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出所有儲存體路徑。

az azurestackhci storagepath list [--resource-group]

範例

List儲存體PathByResourceGroup

az azurestackhci storagepath list --resource-group "test-rg"

List儲存體PathByResourceGroup

az azurestackhci storagepath list

選擇性參數

--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 azurestackhci storagepath show

實驗

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得儲存體路徑的詳細資料。

az azurestackhci storagepath show [--ids]
                                  [--name]
                                  [--resource-group]
                                  [--subscription]

範例

Get儲存體Path

az azurestackhci storagepath show --resource-group "test-rg" --name "Default_StoragePath"

選擇性參數

--ids

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

--name

儲存體路徑的名稱。

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

az azurestackhci storagepath update

實驗

命令群組 'azurestackhci' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

更新儲存體路徑。

az azurestackhci storagepath update [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]
                                    [--tags]

範例

Update儲存體Path

az azurestackhci storagepath update --resource-group "test-rg" --tags additionalProperties="sample" --name "Default_StoragePath"

選擇性參數

--ids

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

--name

儲存體路徑的名稱。

--resource-group -g

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

--subscription

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

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