az azurestackhci virtualmachine vnic
Note
This reference is part of the azurestackhci extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az azurestackhci virtualmachine vnic command. Learn more about extensions.
Command group 'azurestackhci' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage vNIC of a virtual machine with azurestackhci.
Commands
Name | Description | Type | Status |
---|---|---|---|
az azurestackhci virtualmachine vnic add |
Add existing vNICs to a VM. |
Extension | Experimental |
az azurestackhci virtualmachine vnic remove |
Remove vNICs from a VM. |
Extension | Experimental |
az azurestackhci virtualmachine vnic add
Command group 'azurestackhci' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add existing vNICs to a VM.
az azurestackhci virtualmachine vnic add --vnic-names
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
AddVNIC
az azurestackhci virtualmachine vnic add --resource-group "test-rg" --name "test-vm" --vnic-names "test-vnic"
Required Parameters
List of vnic names.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the virtual machine.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 azurestackhci virtualmachine vnic remove
Command group 'azurestackhci' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove vNICs from a VM.
az azurestackhci virtualmachine vnic remove --vnic-names
[--ids]
[--name]
[--resource-group]
[--subscription]
[--yes]
Examples
RemoveVNIC
az azurestackhci virtualmachine vnic remove --resource-group "test-rg" --name "test-vm" --vnic-names "test-vnic"
Required Parameters
List of vnic names.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the virtual machine.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.