az network nic ip-config address-pool

Manage address pools in an IP configuration.

Commands

az network nic ip-config address-pool add Add an address pool to an IP configuration.
az network nic ip-config address-pool remove Remove an address pool of an IP configuration.

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]
[--subscription]

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 suppying an address pool ID).

--lb-name

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

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]
[--subscription]

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 suppying an address pool ID).

--lb-name

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.