az stack-hci-vm network 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 network nic command. Learn more about extensions.
Manage networkinterface with stack-hci-vm.
Commands
Name | Description | Type | Status |
---|---|---|---|
az stack-hci-vm network nic create |
Create a network interface. |
Extension | GA |
az stack-hci-vm network nic delete |
Delete a network interface. |
Extension | GA |
az stack-hci-vm network nic list |
List all network interfaces. |
Extension | GA |
az stack-hci-vm network nic show |
Get the details of a network interface. |
Extension | GA |
az stack-hci-vm network nic update |
Update a network interface. |
Extension | GA |
az stack-hci-vm network nic create
Create a network interface.
az stack-hci-vm network nic create --custom-location
--name
--resource-group
[--dns-servers]
[--ip-address]
[--ip-configurations]
[--location]
[--mac-address]
[--network-security-group]
[--polling-interval]
[--subnet-id]
[--tags]
Examples
Without ip configurations provided
az stack-hci-vm network nic create --resource-group "test-rg" --custom-location "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" --location "West US2" --subnet-id "test-lnet" --ip-address "10.0.0.0" --name "test-nic"
Required Parameters
The ID of the extended location.
Name of the network interface.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Space-separated list of DNS server IP addresses.
Usage: --dns-servers 10.220.32.16 10.220.32.17.
Ip_address - Private IP address of the IP configuration.
Usage: --ip-address "1.2.3.4".
IPConfigurations - A list of IPConfigurations of the network interface. Expected value: json-string/@json-file.
If location is not specified, the location of the resource group is used.
MacAddress - The MAC address of the network interface.
Name or ID of a network security group (NSG).
Usage: --network-security-group "myNSG".
ARM polling interval for long running operations.
ID of the subnet or network to create the network interface on.
Usage: --subnet-id "test-lnet" The subnet-id provided will be ignored if ip-configurations parameter is also provided.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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 network nic delete
Delete a network interface.
az stack-hci-vm network nic delete [--ids]
[--name]
[--polling-interval]
[--resource-group]
[--subscription]
[--yes]
Examples
DeleteNetworkInterface
az stack-hci-vm network nic delete --name "test-nic" --resource-group "test-rg"
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 network interface.
ARM polling interval for long running operations.
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.
az stack-hci-vm network nic list
List all network interfaces.
az stack-hci-vm network nic list [--resource-group]
Examples
ListNetworkInterfaceByResourceGroup
az stack-hci-vm network nic list --resource-group "test-rg"
ListNetworkInterfaceBySubscription
az stack-hci-vm network nic list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 network nic show
Get the details of a network interface.
az stack-hci-vm network nic show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
GetNetworkInterface
az stack-hci-vm network nic show --name "test-nic" --resource-group "test-rg"
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 network interface.
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 stack-hci-vm network nic update
Update a network interface.
az stack-hci-vm network nic update [--ids]
[--name]
[--resource-group]
[--subscription]
[--tags]
Examples
UpdateNetworkInterface
az stack-hci-vm network nic update --tags additionalProperties="sample" --name "test-nic" --resource-group "test-rg"
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 network interface.
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
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
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.