az network nic ip-config
Manage IP configurations of a network interface.
Commands
Name | Description | Type | Status |
---|---|---|---|
az network nic ip-config address-pool |
Manage address pools in an IP configuration. |
Core | GA |
az network nic ip-config address-pool add |
Add an address pool to an IP configuration. |
Core | GA |
az network nic ip-config address-pool remove |
Remove an address pool of an IP configuration. |
Core | GA |
az network nic ip-config create |
Create an IP configuration. |
Core | GA |
az network nic ip-config delete |
Delete an IP configuration. |
Core | GA |
az network nic ip-config inbound-nat-rule |
Manage inbound NAT rules of an IP configuration. |
Core | GA |
az network nic ip-config inbound-nat-rule add |
Add an inbound NAT rule to an IP configuration. |
Core | GA |
az network nic ip-config inbound-nat-rule remove |
Remove an inbound NAT rule of an IP configuration. |
Core | GA |
az network nic ip-config inbound-nat-rule wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az network nic ip-config list |
List the IP configurations of an NIC. |
Core | GA |
az network nic ip-config show |
Show the details of an IP configuration. |
Core | GA |
az network nic ip-config update |
Update an IP configuration. |
Core | GA |
az network nic ip-config wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az network nic ip-config create
Create an IP configuration.
You must have the Microsoft.Network/AllowMultipleIpConfigurationsPerNic feature enabled for your subscription. Only one configuration may be designated as the primary IP configuration per NIC, using the --make-primary
flag.
az network nic ip-config create --name
--nic-name
--resource-group
[--ag-address-pools --app-gateway-address-pools]
[--application-security-groups --asgs]
[--gateway-name]
[--lb-address-pools]
[--lb-inbound-nat-rules]
[--lb-name]
[--make-primary {0, 1, f, false, n, no, t, true, y, yes}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--private-ip-address]
[--private-ip-address-prefix-length --private-ip-prefix-len]
[--private-ip-address-version {IPv4, IPv6}]
[--public-ip-address]
[--subnet]
[--vnet-name]
Examples
Create a primary IP configuration for a NIC.
az network nic ip-config create -g MyResourceGroup -n MyIpConfig --nic-name MyNic --make-primary
Required Parameters
Name of the IP configuration.
Name of the network interface (NIC).
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Space-separated list of names or IDs of application gateway backend address pools to associate with the NIC. If names are used, --gateway-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Application Gateway Arguments |
Space-separated list of application security groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Name of the application gateway.
Property | Value |
---|---|
Parameter group: | Application Gateway Arguments |
Space-separated list of names or IDs of load balancer address pools to associate with the NIC. If names are used, --lb-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Space-separated list of names or IDs of load balancer inbound NAT rules to associate with the NIC. If names are used, --lb-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Name of the load balancer.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Set to make this configuration the primary one for the NIC.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Default value: | False |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Static IP address to use or ""('""' in PowerShell) to use a dynamic address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Version of private IP address to use.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Default value: | IPv4 |
Accepted values: | IPv4, IPv6 |
Name or ID of an existing public IP address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Name or ID of an existing subnet. If name specified, please also specify --vnet-name
.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Name of the virtual network.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az network nic ip-config delete
Delete an IP configuration.
An NIC must have at least one IP configuration.
az network nic ip-config delete --name
--nic-name
--resource-group
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
Delete an IP configuration.
az network nic ip-config delete -g MyResourceGroup -n MyIpConfig --nic-name MyNic
Required Parameters
Name of the IP configuration.
Name of the network interface (NIC).
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az network nic ip-config list
List the IP configurations of an NIC.
az network nic ip-config list --nic-name
--resource-group
Examples
List the IP configurations of an NIC.
az network nic ip-config list -g MyResourceGroup --nic-name MyNic
Required Parameters
Name of the network interface (NIC).
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.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az network nic ip-config show
Show the details of an IP configuration.
az network nic ip-config show --name
--nic-name
--resource-group
Examples
Show the details of an IP configuration of an NIC.
az network nic ip-config show -g MyResourceGroup -n MyIpConfig --nic-name MyNic
Required Parameters
Name of the IP configuration.
Name of the network interface (NIC).
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.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az network nic ip-config update
Update an IP configuration.
az network nic ip-config update --name
--nic-name
--resource-group
[--add]
[--ag-address-pools --app-gateway-address-pools]
[--application-security-groups --asgs]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--gateway-lb]
[--gateway-name]
[--lb-address-pools]
[--lb-inbound-nat-rules]
[--lb-name]
[--make-primary {0, 1, f, false, n, no, t, true, y, yes}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--private-ip-address]
[--private-ip-address-prefix-length --private-ip-prefix-len]
[--private-ip-address-version {IPv4, IPv6}]
[--public-ip-address]
[--remove]
[--set]
[--subnet]
[--vnet-name]
Examples
Update a NIC to use a new private IP address.
az network nic ip-config update -g MyResourceGroup --nic-name MyNic -n MyIpConfig --private-ip-address 10.0.0.9
Make an IP configuration the default for the supplied NIC.
az network nic ip-config update -g MyResourceGroup --nic-name MyNic -n MyIpConfig --make-primary
Required Parameters
Name of the IP configuration.
Name of the network interface (NIC).
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Space-separated list of names or IDs of application gateway backend address pools to associate with the NIC. If names are used, --gateway-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Application Gateway Arguments |
Space-separated list of application security groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
ID of gateway load balancer frontend IP. If you want to delete it, input null.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Name of the application gateway.
Property | Value |
---|---|
Parameter group: | Application Gateway Arguments |
Space-separated list of names or IDs of load balancer address pools to associate with the NIC. If names are used, --lb-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Space-separated list of names or IDs of load balancer inbound NAT rules to associate with the NIC. If names are used, --lb-name
must be specified. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Name of the load balancer.
Property | Value |
---|---|
Parameter group: | Load Balancer Arguments |
Set to make this configuration the primary one for the NIC.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Static IP address to use or ""('""' in PowerShell) to use a dynamic address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Version of private IP address to use.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Accepted values: | IPv4, IPv6 |
Name or ID of an existing public IP address.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Name or ID of an existing subnet. If name specified, please also specify --vnet-name
.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Name of the virtual network.
Property | Value |
---|---|
Parameter group: | IP Configuration Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az network nic ip-config wait
Place the CLI in a waiting state until a condition is met.
az network nic ip-config wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--nic-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Wait until created with 'provisioningState' at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Wait until deleted.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the resource exists.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Polling interval in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 30 |
Name of the network interface (NIC).
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Maximum wait in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |