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

az arcappliance validate

注释

此参考是 Azure CLI 的 arcappliance 扩展(版本 2.70.0 或更高版本)的一部分。 该扩展会在首次运行 az arcappliance validate 命令时自动安装。 了解更多关于扩展 的相关信息。

用于对 Arc 资源桥配置文件和网络设置执行验证的命令组。

命令

名称 说明 类型 Status
az arcappliance validate hci

用于验证 Azure Stack HCI 上的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

扩展 GA
az arcappliance validate scvmm

用于验证已启用 Arc 的 SCVMM 的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

扩展 GA
az arcappliance validate vmware

用于验证已启用 Arc 的 VMware 的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

扩展 GA

az arcappliance validate hci

用于验证 Azure Stack HCI 上的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

az arcappliance validate hci --config-file
                             [--cloudagent]
                             [--location]
                             [--loginconfigfile]
                             [--name]
                             [--resource-group]

示例

验证 Azure Stack HCI 的 Arc 资源网桥配置和网络设置

az arcappliance validate hci --config-file [REQUIRED] --cloudagent [OPTIONAL] --loginconfigfile [OPTIONAL]

必需参数

--config-file

Arc 资源桥设备配置文件的路径,<resourceName>-appliance.yaml。

可选参数

--cloudagent

Arc 资源网桥使用的 Azure Stack HCI MOC 云代理服务的 FQDN 或 IP 地址。 这可以在 <BridgeName>-infra.yaml 配置文件中找到,该文件存储在 HCI 群集本地。

--location -l

Location。 az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--loginconfigfile

Azure Stack HCI 登录配置文件 kvatoken.tok 的文件路径。 默认情况下,它存储在 HCI 群集本地。

--name -n

Arc 资源桥的名称。

--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 arcappliance validate scvmm

用于验证已启用 Arc 的 SCVMM 的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

az arcappliance validate scvmm --config-file
                               [--address]
                               [--location]
                               [--name]
                               [--password]
                               [--port]
                               [--resource-group]
                               [--username]

示例

验证已启用 Arc 的 SCVMM 的 Arc 资源桥配置文件和网络设置

az arcappliance validate scvmm --config-file [REQUIRED] --address [OPTIONAL] --port [OPTIONAL] --username [OPTIONAL] --password [OPTIONAL]

必需参数

--config-file

Arc 资源桥设备配置文件的路径,<resourceName>-appliance.yaml。

可选参数

--address

SCVMM 服务器 FQDN(例如 vmmuser001.contoso.lab)或 IPv4 地址。 如果有高可用性 VMM 设置,请输入角色名称。

--location -l

Location。 az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

Arc 资源桥的名称。

--password

SCVMM 管理员密码。

--port

SCVMM 服务器端口号(默认值:8100)。

--resource-group -g

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

--username

采用域\用户名格式的 SCVMM 管理员用户名,其中“domain”应是域的 NetBIOS 名称(例如 contoso\administrator)。

全局参数
--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 arcappliance validate vmware

用于验证已启用 Arc 的 VMware 的 Arc 资源桥配置文件和网络设置的命令 - 应在“prepare”命令之前完成。

az arcappliance validate vmware --config-file
                                [--address]
                                [--location]
                                [--name]
                                [--password]
                                [--resource-group]
                                [--username]

示例

验证已启用 Arc 的 VMware 的 Arc 资源网桥配置和网络设置

az arcappliance validate vmware --config-file [REQUIRED] --address [OPTIONAL] --username [OPTIONAL] --password [OPTIONAL]

必需参数

--config-file

Arc 资源桥设备配置文件的路径,<resourceName>-appliance.yaml。

可选参数

--address

vCenter Server 实例的 FQDN 或 IP 地址。 例如:10.160.0.1。

--location -l

Location。 az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

Arc 资源桥的名称。

--password

Arc 资源桥用于本地基础结构来宾管理的 vSphere 帐户的密码。

--resource-group -g

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

--username

Arc 资源网桥用于本地基础结构来宾管理的 vSphere 帐户的用户名。

全局参数
--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 获取完整的调试日志。