az network cross-region-lb

Manage and configure cross-region load balancers.

To learn more about Azure Load Balancer visit https://docs.microsoft.com/azure/load-balancer/load-balancer-get-started-internet-arm-cli.

Commands

az network cross-region-lb address-pool

Manage address pools of a cross-region load balancer.

az network cross-region-lb address-pool address

Manage backend addresses of the cross-region load balance backend address pool.

az network cross-region-lb address-pool address add

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

az network cross-region-lb address-pool address list

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

az network cross-region-lb address-pool address remove

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

az network cross-region-lb address-pool create

Create an address pool.

az network cross-region-lb address-pool delete

Delete an address pool.

az network cross-region-lb address-pool list

Gets all the load balancer backed address pools.

az network cross-region-lb address-pool show

Gets load balancer backend address pool.

az network cross-region-lb create

Create a cross-region load balancer.

az network cross-region-lb delete

Deletes the specified load balancer.

az network cross-region-lb frontend-ip

Manage frontend IP addresses of a cross-region load balancer.

az network cross-region-lb frontend-ip create

Create a frontend IP address.

az network cross-region-lb frontend-ip delete

Delete a frontend IP address.

az network cross-region-lb frontend-ip list

List frontend IP addresses.

az network cross-region-lb frontend-ip show

Get the details of a frontend IP address.

az network cross-region-lb frontend-ip update

Update a frontend IP address.

az network cross-region-lb list

List load balancers.

az network cross-region-lb probe

Evaluate probe information and define routing rules.

az network cross-region-lb probe create

Create a probe.

az network cross-region-lb probe delete

Delete a probe.

az network cross-region-lb probe list

List probes.

az network cross-region-lb probe show

Get the details of a probe.

az network cross-region-lb probe update

Update a probe.

az network cross-region-lb rule

Manage cross-region load balancing rules.

az network cross-region-lb rule create

Create a load balancing rule.

az network cross-region-lb rule delete

Delete a load balancing rule.

az network cross-region-lb rule list

List load balancing rules.

az network cross-region-lb rule show

Get the details of a load balancing rule.

az network cross-region-lb rule update

Update a load balancing rule.

az network cross-region-lb show

Gets the specified load balancer.

az network cross-region-lb update

Update a cross-region load balancer.

az network cross-region-lb wait

Place the CLI in a waiting state until a condition of the cross-region load balancer is met.

az network cross-region-lb create

Create a cross-region load balancer.

az network cross-region-lb create --name
                                  --resource-group
                                  [--address-allocation {Dynamic, Static}]
                                  [--backend-pool-name]
                                  [--frontend-ip-name]
                                  [--frontend-ip-zone {1, 2, 3}]
                                  [--location]
                                  [--no-wait]
                                  [--public-ip-address]
                                  [--public-ip-dns-name]
                                  [--public-ip-zone {1, 2, 3}]
                                  [--tags]
                                  [--validate]

Examples

Create a basic load balancer.

az network cross-region-lb create -g MyResourceGroup -n MyLb

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

--address-allocation --public-ip-address-allocation

IP allocation method.

accepted values: Dynamic, Static
--backend-pool-name

The name of the backend address pool.

--frontend-ip-name

The name of the frontend IP configuration.

default value: LoadBalancerFrontEnd
--frontend-ip-zone

Used to create internal facing Load balancer.

accepted values: 1, 2, 3
--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--no-wait

Do not wait for the long-running operation to finish.

--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-dns-name

Globally unique DNS name for a new public IP.

--public-ip-zone

Used to created a new public ip for the load balancer, a.k.a public facing Load balancer.

accepted values: 1, 2, 3
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--validate

Generate and validate the ARM template without creating any resources.

az network cross-region-lb delete

Deletes the specified load balancer.

az network cross-region-lb delete [--ids]
                                  [--name]
                                  [--resource-group]

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--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 cross-region-lb list

List load balancers.

az network cross-region-lb list [--resource-group]

Examples

List load balancers.

az network cross-region-lb list -g MyResourceGroup

Optional Parameters

--resource-group -g

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

az network cross-region-lb show

Gets the specified load balancer.

az network cross-region-lb show [--expand]
                                [--ids]
                                [--name]
                                [--resource-group]

Optional Parameters

--expand

Expands referenced resources.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--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 cross-region-lb update

Update a cross-region load balancer.

This command can only be used to update the tags for a load balancer. Name and resource group are immutable and cannot be updated.

az network cross-region-lb update [--add]
                                  [--force-string]
                                  [--ids]
                                  [--name]
                                  [--remove]
                                  [--resource-group]
                                  [--set]

Examples

Update the tags of a load balancer.

az network cross-region-lb update -g MyResourceGroup -n MyLb --set tags.CostCenter=MyBusinessGroup

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). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The load balancer name.

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

az network cross-region-lb wait

Place the CLI in a waiting state until a condition of the cross-region load balancer is met.

az network cross-region-lb wait [--created]
                                [--custom]
                                [--deleted]
                                [--exists]
                                [--expand]
                                [--ids]
                                [--interval]
                                [--name]
                                [--resource-group]
                                [--timeout]
                                [--updated]

Examples

Wait for load balancer to return as created.

az network cross-region-lb wait -g MyResourceGroup -n MyLB --created

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--expand

Expands referenced resources.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--interval

Polling interval in seconds.

default value: 30
--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>.

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.