az network lb frontend-ip

Manage frontend IP addresses of a load balancer.

Commands

az network lb frontend-ip create Create a frontend IP address.
az network lb frontend-ip delete Delete a frontend IP address.
az network lb frontend-ip list List frontend IP addresses.
az network lb frontend-ip show Get the details of a frontend IP address.
az network lb frontend-ip update Update a frontend IP address.

az network lb frontend-ip create

Create a frontend IP address.

az network lb frontend-ip create --lb-name
--name
--resource-group
[--private-ip-address]
[--public-ip-address]
[--public-ip-prefix]
[--subnet]
[--subscription]
[--vnet-name]
[--zone {1, 2, 3}]

Examples

Create a frontend ip address for a public load balancer.

az network lb frontend-ip create -g MyResourceGroup -n MyFrontendIp --lb-name MyLb --public-ip-address MyFrontendIp

Create a frontend ip address for an internal load balancer.

az network lb frontend-ip create -g MyResourceGroup -n MyFrontendIp --lb-name MyLb \
                            --private-ip-address 10.10.10.100 --subnet MySubnet --vnet-name MyVnet

Required Parameters

--lb-name

The load balancer name.

--name -n

The name of the frontend IP configuration.

--resource-group -g

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

Optional Parameters

--private-ip-address

Static private IP address to associate with the configuration.

--public-ip-address

Name or ID of the existing public IP to associate with the configuration.

--public-ip-prefix

Name or ID of a public IP prefix.

--subnet

Name or ID of an existing subnet. If name is specified, also specify --vnet-name.

--subscription

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

--vnet-name

The virtual network (VNet) associated with the subnet (Omit if supplying a subnet id).

--zone -z

Availability zone into which to provision the resource.

accepted values: 1, 2, 3

az network lb frontend-ip delete

Delete a frontend IP address.

az network lb frontend-ip delete --lb-name
--name
--resource-group
[--subscription]

Examples

Delete a frontend IP address.

az network lb frontend-ip delete -g MyResourceGroup --lb-name MyLb -n MyFrontendIp

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the frontend IP configuration.

--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 frontend-ip list

List frontend IP addresses.

az network lb frontend-ip list --lb-name
--resource-group
[--subscription]

Examples

List frontend IP addresses.

az network lb frontend-ip list -g MyResourceGroup --lb-name MyLb

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 frontend-ip show

Get the details of a frontend IP address.

az network lb frontend-ip show --lb-name
--name
--resource-group
[--subscription]

Examples

Get the details of a frontend IP address.

az network lb frontend-ip show -g MyResourceGroup --lb-name MyLb -n MyFrontendIp

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the frontend IP configuration.

--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 frontend-ip update

Update a frontend IP address.

az network lb frontend-ip update [--add]
[--force-string]
[--ids]
[--lb-name]
[--name]
[--private-ip-address]
[--public-ip-address]
[--public-ip-prefix]
[--remove]
[--resource-group]
[--set]
[--subnet]
[--subscription]
[--vnet-name]

Examples

Update the frontend IP address of a public load balancer.

az network lb frontend-ip update -g MyResourceGroup --lb-name MyLb -n MyFrontendIp --public-ip-address MyNewPublicIp

Update the frontend IP address of an internal load balancer.

az network lb frontend-ip update -g MyResourceGroup --lb-name MyLb -n MyFrontendIp --private-ip-address 10.10.10.50

Optional Parameters

--add

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>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--lb-name

The load balancer name.

--name -n

The name of the frontend IP configuration.

--private-ip-address

Static private IP address to associate with the configuration. Use "" to remove the static address and use a dynamic address instead.

--public-ip-address

Name or ID of the existing public IP to associate with the configuration.

--public-ip-prefix

Name or ID of a public IP prefix.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subnet

Name or ID of an existing subnet. If name is specified, also specify --vnet-name.

--subscription

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

--vnet-name

The virtual network (VNet) associated with the subnet (Omit if supplying a subnet id).