az connectedvmware vm nic
Note
This reference is part of the connectedvmware extension for the Azure CLI (version 2.0.67 or higher). 该扩展会在首次运行 az connectedvmware vm nic 命令时自动安装。 Learn more about extensions.
Vm nic.
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az connectedvmware vm nic add |
将虚拟 nic 添加到虚拟机。 |
Extension | GA |
az connectedvmware vm nic delete |
删除虚拟机的虚拟 nic。 |
Extension | GA |
az connectedvmware vm nic list |
从给定的资源组名称和 vm 名称中检索 VM nic 的列表。 |
Extension | GA |
az connectedvmware vm nic show |
按 VM 名称、资源组和 vm 名称获取 vm nic 的详细信息。 |
Extension | GA |
az connectedvmware vm nic update |
更新虚拟机的虚拟网络接口。 |
Extension | GA |
az connectedvmware vm nic add
将虚拟 nic 添加到虚拟机。
az connectedvmware vm nic add --name
--network
--resource-group
--vm-name
[--nic-type]
[--no-wait]
[--power-on-boot]
示例
将虚拟 nic 添加到虚拟机
az connectedvmware vm nic add --name "Name of the NIC" --network "Network Name or Id" --resource-group "resource group name" --vm-name "Name of the virtual machine"
必需参数
NIC 的名称。
虚拟网络的名称或 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.
NIC 的 nic 类型。
属性 | 值 |
---|---|
默认值: | VMXNET3 |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
默认值: | False |
nic 的开机启动选项。
属性 | 值 |
---|---|
默认值: | DISABLED |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 connectedvmware vm nic delete
删除虚拟机的虚拟 nic。
az connectedvmware vm nic delete --nics
--resource-group
--vm-name
[--no-wait]
[--yes]
示例
删除虚拟机的虚拟 nic
az connectedvmware vm nic delete --nics "Names of the NICs" --resource-group "resource group name" --vm-name "Name of the virtual machine"
必需参数
NIC 的名称。
资源组的名称。 可以使用 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 connectedvmware vm nic list
从给定的资源组名称和 vm 名称中检索 VM nic 的列表。
az connectedvmware vm nic list --resource-group
--vm-name
示例
检索 vm nic 的列表
az connectedvmware vm nic list --resource-group "resource group name" --vm-name "Name of the virtual machine"
必需参数
资源组的名称。 可以使用 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 connectedvmware vm nic show
按 VM 名称、资源组和 vm 名称获取 vm nic 的详细信息。
az connectedvmware vm nic show --name
--resource-group
--vm-name
示例
获取 vm nic 的详细信息
az connectedvmware vm nic show --name "Name of the NIC" --resource-group "resource group name" --vm-name "Name of the virtual machine"
必需参数
NIC 的名称。
资源组的名称。 可以使用 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 connectedvmware vm nic update
更新虚拟机的虚拟网络接口。
az connectedvmware vm nic update --resource-group
--vm-name
[--device-key]
[--name]
[--network]
[--no-wait]
[--power-on-boot]
必需参数
资源组的名称。 可以使用 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.
nic 的设备密钥。
NIC 的名称。
虚拟网络的名称或 ID。
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
默认值: | False |
nic 的开机启动选项。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 |