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"
必需参数
要用于虚拟网络的自定义位置的名称或 ID。
虚拟网络的名称。
资源组的名称。 可以使用 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.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
包含 Azure 本地基础结构的 MOC 网络的 MOC 组的名称。
属性 | 值 |
---|---|
默认值: | target-group |
包含具有 Azure 本地基础结构网络的 MOC 组的 MOC 位置的名称。
属性 | 值 |
---|---|
默认值: | MocLocation |
Azure 本地基础结构的 MOC 网络的名称。
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
默认值: | False |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --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"
必需参数
虚拟网络的名称。
资源组的名称。 可以使用 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.
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
默认值: | False |
不要提示确认。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --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.
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --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"
必需参数
虚拟网络的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |