az network lb

Manage and configure load balancers.

Commands

az network lb address-pool Manage backend address pools for a load balancer.
az network lb address-pool create Create a backend address pool.
az network lb address-pool delete Delete a backend address pool.
az network lb address-pool list List backend address pools.
az network lb address-pool show Get the details for a backend address pool.
az network lb create Create a load balancer.
az network lb delete Delete a load balancer.
az network lb frontend-ip Manage frontend IP addresses for a load balancer.
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 inbound-nat-pool Manage inbound NAT address pools for a load balancer.
az network lb inbound-nat-pool create Create an inbound NAT address pool.
az network lb inbound-nat-pool delete Delete an inbound NAT address pool.
az network lb inbound-nat-pool list List inbound NAT address pools.
az network lb inbound-nat-pool show Get the details for an inbound NAT address pool.
az network lb inbound-nat-pool update Update an inbound NAT address pool.
az network lb inbound-nat-rule Manage inbound NAT rules for a load balancer.
az network lb inbound-nat-rule create Create an inbound NAT rule.
az network lb inbound-nat-rule delete Delete an inbound NAT rule.
az network lb inbound-nat-rule list List inbound NAT rules.
az network lb inbound-nat-rule show Get the details for an inbound NAT rule.
az network lb inbound-nat-rule update Update an inbound NAT rule.
az network lb list List load balancers.
az network lb probe Evaluate probe information and define routing rules.
az network lb probe create Create a probe.
az network lb probe delete Delete a probe.
az network lb probe list List probes.
az network lb probe show Get the details for a probe.
az network lb probe update Update a probe.
az network lb rule Manage load balancing rules.
az network lb rule create Create a load balancing rule.
az network lb rule delete Delete a load balancing rule.
az network lb rule list List load balancing rules.
az network lb rule show Get the details of a load balancing rule.
az network lb rule update Update a load balancing rule.
az network lb show Get the details for a load balancer.
az network lb update Update a load balancer.

az network lb create

Create a load balancer.

az network lb create --name
--resource-group
[--backend-pool-name]
[--frontend-ip-name]
[--location]
[--no-wait]
[--private-ip-address]
[--public-ip-address]
[--public-ip-address-allocation {Dynamic, Static}]
[--public-ip-address-type]
[--public-ip-dns-name]
[--sku]
[--subnet]
[--subnet-address-prefix]
[--subnet-type]
[--tags]
[--validate]
[--vnet-address-prefix]
[--vnet-name]

Examples

Create a basic load balancer.

az network lb create -g MyResourceGroup -n MyLb

Create a load balancer on a specific virtual network and subnet.

az network lb create -g MyResourceGroup -n MyLb --vnet-name MyVnet --subnet MySubnet

Required Parameters

--name -n
The load balancer name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--backend-pool-name
The name of the backend address pool.
--frontend-ip-name
The name of the frontend IP configuration.
default value: LoadBalancerFrontEnd
--location -l
Location. You can configure the default location using `az configure --defaults location=<location>`.
--no-wait
Do not wait for the long running operation to finish.
--private-ip-address
Static private IP address to use.
--public-ip-address
Name or ID of the public IP address, or "" for none. Uses existing resource if available or will create a new resource with defaults if omitted.
--public-ip-address-allocation
accepted values: Dynamic, Static
--public-ip-address-type
--public-ip-dns-name
Globally unique DNS name for a new public IP.
--sku
Load balancer SKU.
default value: Basic
--subnet
Name or ID of a subnet. Uses existing resource or creates new if specified, or none if omitted. If name specified, also specify --vnet-name.
--subnet-address-prefix
The CIDR address prefix to use when creating a new subnet.
default value: 10.0.0.0/24
--subnet-type
--tags
Space separated tags in 'key[=value]' format. Use "" to clear existing tags.
--validate
Generate and validate the ARM template without creating any resources.
--vnet-address-prefix
The CIDR address prefix to use when creating a new VNet.
default value: 10.0.0.0/16
--vnet-name
The virtual network (VNet) name.

az network lb delete

Delete a load balancer.

az network lb delete --name
--resource-group

Required Parameters

--name -n
The load balancer name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az network lb list

List load balancers.

az network lb list [--resource-group]

Optional Parameters

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

az network lb show

Get the details for a load balancer.

az network lb show --name
--resource-group
[--expand]

Required Parameters

--name -n
The load balancer name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--expand
Expands referenced resources.

az network lb update

Update a load balancer.

az network lb update --name
--resource-group
[--add]
[--remove]
[--set]

Required Parameters

--name -n
The load balancer name.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--add
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .
--remove
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
--set
Update an object by specifying a property path and value to set. Example: --set property1.property2=.