az stack-hci-vm nic

Note

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

Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage vNIC of a virtual machine with stack-hci-vm.

Commands

Name Description Type Status
az stack-hci-vm nic add

Add existing vNICs to a VM.

Extension Experimental
az stack-hci-vm nic remove

Remove vNICs from a VM.

Extension Experimental

az stack-hci-vm nic add

Experimental

Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Add existing vNICs to a VM.

az stack-hci-vm nic add --nics
                        --resource-group
                        --vm-name

Examples

AddVNIC

az stack-hci-vm nic add --resource-group "test-rg" --vm-name "test-vm" --nics "test-vnic"

Required Parameters

--nics

Name or IDs of 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.

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 stack-hci-vm nic remove

Experimental

Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Remove vNICs from a VM.

az stack-hci-vm nic remove --nics
                           --resource-group
                           --vm-name
                           [--yes]

Examples

RemoveVNIC

az stack-hci-vm nic remove --resource-group "test-rg" --vm-name "test-vm" --nics "test-vnic"

Required Parameters

--nics

Name or IDs of 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

--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.