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

az aksarc vnet

Note

This reference is part of the aksarc extension for the Azure CLI (version 2.32.0 or higher). 该扩展将在首次运行 az aksarc vnet 命令时自动安装。 Learn more about extensions.

管理预配群集的虚拟网络。

命令

名称 说明 类型 Status
az aksarc vnet create

创建虚拟网络。

Extension GA
az aksarc vnet delete

删除虚拟网络。

Extension GA
az aksarc vnet list

按资源组或订阅列出虚拟网络。

Extension GA
az aksarc vnet show

获取虚拟网络。

Extension GA

az aksarc vnet create

创建虚拟网络。

az aksarc vnet create --custom-location
                      --name
                      --resource-group
                      [--location]
                      [--moc-group]
                      [--moc-location]
                      [--moc-vnet-name]
                      [--no-wait]
                      [--tags]

示例

PutVirtualNetwork

az aksarc vnet create --name "test-vnet-static" --resource-group "test-arcappliance-resgrp" --custom-location "testcustomlocation" --moc-vnet-name "test-vnet"

必需参数

--custom-location

要用于虚拟网络的自定义位置的名称或 ID。

--name -n

虚拟网络的名称。

--resource-group -g

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

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--location -l

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

--moc-group

包含 Azure 本地基础结构的 MOC 网络的 MOC 组的名称。

属性
默认值: target-group
--moc-location

包含具有 Azure 本地基础结构网络的 MOC 组的 MOC 位置的名称。

属性
默认值: MocLocation
--moc-vnet-name

Azure 本地基础结构的 MOC 网络的名称。

--no-wait

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

属性
默认值: False
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az aksarc vnet delete

删除虚拟网络。

az aksarc vnet delete --name
                      --resource-group
                      [--no-wait]
                      [--yes]

示例

DeleteVirtualNetwork

az aksarc vnet delete --resource-group "test-arcappliance-resgrp" --name "test-vnet-static"

必需参数

--name -n

虚拟网络的名称。

--resource-group -g

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

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

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

属性
默认值: False
--yes -y

不要提示确认。

属性
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az aksarc vnet list

按资源组或订阅列出虚拟网络。

az aksarc vnet list [--resource-group]

示例

ListVirtualNetworkByResourceGroup

az aksarc vnet list --resource-group "test-arcappliance-resgrp"

ListVirtualNetworkBySubscription

az aksarc vnet list

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

az aksarc vnet show

获取虚拟网络。

az aksarc vnet show --name
                    --resource-group

示例

GetVirtualNetwork

az aksarc vnet show --resource-group "test-arcappliance-resgrp" --name "test-vnet-static"

必需参数

--name -n

虚拟网络的名称。

--resource-group -g

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

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False