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
Name or IDs of NICs.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
Name or IDs of NICs.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Optional Parameters
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.