你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az stack-hci-vm storagepath

注意

此参考是 Azure CLI(版本 2.15.0 或更高版本)的 stack-hci-vm 扩展的一部分。 该扩展将在首次运行 az stack-hci-vm storagepath 命令时自动安装。 详细了解扩展。

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

使用 stack-hci-vm 管理存储路径。

命令

名称 说明 类型 状态
az stack-hci-vm storagepath create

创建存储路径。

扩展 实验
az stack-hci-vm storagepath delete

删除存储路径。

扩展 实验
az stack-hci-vm storagepath list

列出所有存储路径。

扩展 实验
az stack-hci-vm storagepath show

获取存储路径的详细信息。

扩展 实验
az stack-hci-vm storagepath update

更新存储路径。

扩展 实验

az stack-hci-vm storagepath create

实验

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

创建存储路径。

az stack-hci-vm storagepath create --custom-location
                                   --name
                                   --path
                                   --resource-group
                                   [--location]
                                   [--polling-interval]
                                   [--tags]

示例

Put存储Path

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

必需参数

--custom-location

扩展位置的 ID。

--name

存储路径的名称。

--path

用于创建 storagepath 的磁盘上的路径。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--location -l

如果未指定位置,则使用资源组的位置。

--polling-interval

长时间运行的操作的 ARM 轮询间隔。

--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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az stack-hci-vm storagepath delete

实验

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

删除存储路径。

az stack-hci-vm storagepath delete [--ids]
                                   [--name]
                                   [--polling-interval]
                                   [--resource-group]
                                   [--subscription]
                                   [--yes]

示例

Delete存储Path

az stack-hci-vm storagepath delete --resource-group "test-rg" --name "Default_StoragePath"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--name

存储路径的名称。

--polling-interval

长时间运行的操作的 ARM 轮询间隔。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--subscription

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az stack-hci-vm storagepath list

实验

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

列出所有存储路径。

az stack-hci-vm storagepath list [--resource-group]

示例

List存储PathByResourceGroup

az stack-hci-vm storagepath list --resource-group "test-rg"

List存储PathByResourceGroup

az stack-hci-vm 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az stack-hci-vm storagepath show

实验

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

获取存储路径的详细信息。

az stack-hci-vm storagepath show [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]

示例

Get存储Path

az stack-hci-vm storagepath show --resource-group "test-rg" --name "Default_StoragePath"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--name

存储路径的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--subscription

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az stack-hci-vm storagepath update

实验

命令组“stack-hci-vm”是试验性的,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

更新存储路径。

az stack-hci-vm storagepath update [--ids]
                                   [--name]
                                   [--resource-group]
                                   [--subscription]
                                   [--tags]

示例

Update存储Path

az stack-hci-vm storagepath update --resource-group "test-rg" --tags additionalProperties="sample" --name "Default_StoragePath"

可选参数

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

--name

存储路径的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--subscription

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。