שתף באמצעות


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.

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

Remove vNICs from a VM.

Extension GA

az stack-hci-vm nic add

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

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.