az network lb address-pool

Manage address pools of a load balancer.

Commands

az network lb address-pool create Create an address pool.
az network lb address-pool delete Delete an address pool.
az network lb address-pool list List address pools.
az network lb address-pool show Get the details of an address pool.

az network lb address-pool create

Create an address pool.

az network lb address-pool create --lb-name
--name
--resource-group
[--subscription]

Examples

Create an address pool.

az network lb address-pool create -g MyResourceGroup --lb-name MyLb -n MyAddressPool

Required Parameters

--lb-name

The load balancer name.

--name -n

The name of the backend address pool.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb address-pool delete

Delete an address pool.

az network lb address-pool delete --lb-name
--name
--resource-group
[--subscription]

Examples

Delete an address pool.

az network lb address-pool delete -g MyResourceGroup --lb-name MyLb -n MyAddressPool

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the backend address pool.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb address-pool list

List address pools.

az network lb address-pool list --lb-name
--resource-group
[--subscription]

Examples

List address pools.

az network lb address-pool list -g MyResourceGroup --lb-name MyLb -o table

Required Parameters

--lb-name

The name of the load balancer.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb address-pool show

Get the details of an address pool.

az network lb address-pool show --lb-name
--name
--resource-group
[--subscription]

Examples

Get the details of an address pool.

az network lb address-pool show -g MyResourceGroup --lb-name MyLb -n MyAddressPool

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the backend address pool.

--resource-group -g

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

Optional Parameters

--subscription

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