az connectedvmware vm nic

Note

This reference is part of the connectedvmware extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az connectedvmware vm nic command. Learn more about extensions.

Vm nic.

Commands

Name Description Type Status
az connectedvmware vm nic add

Add virtual nic to a virtual machine.

Extension GA
az connectedvmware vm nic delete

Delete virtual nic to a virtual machine.

Extension GA
az connectedvmware vm nic list

Retrieve a list of vm nic from given resource group name and vm name.

Extension GA
az connectedvmware vm nic show

Get details of a vm nic by it's name, resource-group and vm name.

Extension GA
az connectedvmware vm nic update

Update virtual network interface of a virtual machine.

Extension GA

az connectedvmware vm nic add

Add virtual nic to a virtual machine.

az connectedvmware vm nic add --name
                              --network
                              --resource-group
                              --vm-name
                              [--nic-type]
                              [--no-wait]
                              [--power-on-boot]

Examples

Add virtual nic to a virtual machine

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"

Required Parameters

--name -n

Name of the NIC.

--network

Name or Id of the virtual network.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--nic-type

The nic type for the NIC.

default value: VMXNET3
--no-wait

Do not wait for the long-running operation to finish.

default value: False
--power-on-boot

The power on boot option for the nic.

default value: DISABLED
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az connectedvmware vm nic delete

Delete virtual nic to a virtual machine.

az connectedvmware vm nic delete --nics
                                 --resource-group
                                 --vm-name
                                 [--no-wait]
                                 [--yes]

Examples

Delete virtual nic to a virtual machine

az connectedvmware vm nic delete --nics "Names of the NICs" --resource-group                "resource group name" --vm-name "Name of the virtual machine"

Required Parameters

--nics

Names of the NICs.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az connectedvmware vm nic list

Retrieve a list of vm nic from given resource group name and vm name.

az connectedvmware vm nic list --resource-group
                               --vm-name

Examples

Retrieve a list of vm nic

az connectedvmware vm nic list --resource-group "resource group name" --vm-name                "Name of the virtual machine"

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az connectedvmware vm nic show

Get details of a vm nic by it's name, resource-group and vm name.

az connectedvmware vm nic show --name
                               --resource-group
                               --vm-name

Examples

Get details of vm nic

az connectedvmware vm nic show --name "Name of the NIC" --resource-group                "resource group name" --vm-name "Name of the virtual machine"

Required Parameters

--name -n

Name of the NIC.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az connectedvmware vm nic update

Update virtual network interface of a virtual machine.

az connectedvmware vm nic update --resource-group
                                 --vm-name
                                 [--device-key]
                                 [--name]
                                 [--network]
                                 [--no-wait]
                                 [--power-on-boot]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--device-key

The device key for the nic.

--name -n

Name of the NIC.

--network

Name or Id of the virtual network.

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--power-on-boot

The power on boot option for the nic.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.