az network nic ip-config address-pool

Manage address pools in an IP configuration.

Commands

Name Description Type Status
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 address-pool add

Add an address pool to an IP configuration.

az network nic ip-config address-pool add --address-pool
                                          --ip-config-name
                                          --nic-name
                                          --resource-group
                                          [--gateway-name]
                                          [--lb-name]

Examples

Add an address pool to an IP configuration.

az network nic ip-config address-pool add -g MyResourceGroup --nic-name MyNic \
    -n MyIpConfig --address-pool MyAddressPool

Add an address pool to an IP configuration. (autogenerated)

az network nic ip-config address-pool add --address-pool MyAddressPool --ip-config-name MyIpConfig --lb-name MyLb --nic-name MyNic --resource-group MyResourceGroup

Required Parameters

--address-pool

The name or ID of an existing backend address pool.

--ip-config-name -n

The name of the IP configuration.

--nic-name

The network interface (NIC).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--gateway-name

The name of an application gateway containing the address pool (Omit if supplying an address pool ID).

--lb-name

The name of the load balancer containing the address pool (Omit if supplying an address pool ID).

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 network nic ip-config address-pool remove

Remove an address pool of an IP configuration.

az network nic ip-config address-pool remove --address-pool
                                             --ip-config-name
                                             --nic-name
                                             --resource-group
                                             [--gateway-name]
                                             [--lb-name]

Examples

Remove an address pool of an IP configuration.

az network nic ip-config address-pool remove -g MyResourceGroup --nic-name MyNic \
    -n MyIpConfig --address-pool MyAddressPool

Remove an address pool of an IP configuration. (autogenerated)

az network nic ip-config address-pool remove --address-pool MyAddressPool --ip-config-name MyIpConfig --lb-name MyLb --nic-name MyNic --resource-group MyResourceGroup

Required Parameters

--address-pool

The name or ID of an existing backend address pool.

--ip-config-name -n

The name of the IP configuration.

--nic-name

The network interface (NIC).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--gateway-name

The name of an application gateway containing the address pool (Omit if supplying an address pool ID).

--lb-name

The name of the load balancer containing the address pool (Omit if supplying an address pool ID).

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.