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

az vmware datastore

注意

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

用于管理私有云群集中的数据存储的命令。

命令

名称 说明 类型 Status
az vmware datastore delete

删除私有云群集中的数据存储。

扩展 GA
az vmware datastore disk-pool-volume

管理磁盘池卷资源。

扩展 GA
az vmware datastore disk-pool-volume create

使用 Microsoft.StoragePool 提供的 iSCSI 目标在私有云群集中创建 VMFS 数据存储。

扩展 GA
az vmware datastore elastic-san-volume

管理弹性 SAN 卷资源。

扩展 GA
az vmware datastore elastic-san-volume create

使用 Microsoft.ElasticSan 提供程序在私有云群集中创建弹性 SAN 卷。

扩展 GA
az vmware datastore list

列出私有云群集中的数据存储。

扩展 GA
az vmware datastore netapp-volume

管理 NetApp 卷资源。

扩展 GA
az vmware datastore netapp-volume create

在私有云群集中创建新的 Microsoft.NetApp 提供的 NetApp 卷。

扩展 GA
az vmware datastore show

显示私有云群集中数据存储的详细信息。

扩展 GA
az vmware datastore wait

将 CLI 置于等待状态,直到满足条件。

扩展 GA

az vmware datastore delete

删除私有云群集中的数据存储。

az vmware datastore delete [--cluster]
                           [--datastore-name]
                           [--ids]
                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                           [--private-cloud]
                           [--resource-group]
                           [--subscription]
                           [--yes]

可选参数

--cluster --cluster-name

私有云中群集的名称。

--datastore-name --name -n

私有云群集中数据存储的名称。

--ids

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

--no-wait

不等待长时间运行的操作完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--private-cloud -c

私有云的名称。

--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 vmware datastore list

列出私有云群集中的数据存储。

az vmware datastore list --cluster
                         --private-cloud
                         --resource-group
                         [--max-items]
                         [--next-token]

必需参数

--cluster --cluster-name

私有云中群集的名称。

--private-cloud -c

私有云的名称。

--resource-group -g

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

可选参数

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的参数中 --next-token 提供令牌值。

--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

全局参数
--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 vmware datastore show

显示私有云群集中数据存储的详细信息。

az vmware datastore show [--cluster]
                         [--datastore-name]
                         [--ids]
                         [--private-cloud]
                         [--resource-group]
                         [--subscription]

可选参数

--cluster --cluster-name

私有云中群集的名称。

--datastore-name --name -n

私有云群集中数据存储的名称。

--ids

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

--private-cloud -c

私有云的名称。

--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 vmware datastore wait

将 CLI 置于等待状态,直到满足条件。

az vmware datastore wait [--cluster]
                         [--created]
                         [--custom]
                         [--datastore-name]
                         [--deleted]
                         [--exists]
                         [--ids]
                         [--interval]
                         [--private-cloud]
                         [--resource-group]
                         [--subscription]
                         [--timeout]
                         [--updated]

可选参数

--cluster --cluster-name

私有云中群集的名称。

--created

等待在“Succeeded”中使用“provisioningState”创建。

默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--datastore-name --name -n

私有云群集中数据存储的名称。

--deleted

等到删除为止。

默认值: False
--exists

等待资源存在。

默认值: False
--ids

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

--interval

轮询间隔(以秒为单位)。

默认值: 30
--private-cloud -c

私有云的名称。

--resource-group -g

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

--subscription

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

--timeout

最大等待(以秒为单位)。

默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

默认值: 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 获取完整的调试日志。