az network lb address-pool address

Manage backend addresses of the load balance backend address pool.

Commands

az network lb address-pool address add

Add one backend address into the load balance backend address pool.

az network lb address-pool address list

List all backend addresses of the load balance backend address pool.

az network lb address-pool address remove

Remove one backend address from the load balance backend address pool.

az network lb address-pool address add

Add one backend address into the load balance backend address pool.

az network lb address-pool address add --ip-address
                                       --lb-name
                                       --name
                                       --pool-name
                                       --resource-group
                                       [--subnet]
                                       [--vnet]

Examples

Add one backend address into the load balance backend address pool.

az network lb address-pool address add -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress --vnet MyVnet --ip-address 10.0.0.1

Add one backend address into the load balance backend address pool with subnet.

az network lb address-pool address add -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool -n MyAddress --subnet /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRg/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet2 --ip-address 10.0.0.1

Required Parameters

--ip-address

Ip Address within the Virtual Network.

--lb-name

The load balancer name.

--name -n

Name of the backend address.

--pool-name

The name of the backend address pool. If only one exists, omit to use as default.

--resource-group -g

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

Optional Parameters

--subnet

Name or Id of the existing subnet.(If name is provided, vnet is also required;If id, vnet is not required).

--vnet

Name or Id of the virtual network.

az network lb address-pool address list

List all backend addresses of the load balance backend address pool.

az network lb address-pool address list --lb-name
                                        --pool-name
                                        --resource-group

Examples

List all backend addresses of the load balance backend address pool.

az network lb address-pool address list -g MyResourceGroup --lb-name MyLb --pool-name MyAddressPool

Required Parameters

--lb-name

The load balancer name.

--pool-name

The name of the backend address pool. If only one exists, omit to use as default.

--resource-group -g

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

az network lb address-pool address remove

Remove one backend address from the load balance backend address pool.

az network lb address-pool address remove --lb-name
                                          --name
                                          --pool-name
                                          --resource-group

Examples

Remove one backend address from the load balance backend address pool.

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

Required Parameters

--lb-name

The load balancer name.

--name -n

Name of the backend address.

--pool-name

The name of the backend address pool. If only one exists, omit to use as default.

--resource-group -g

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