title | description | services | documentationcenter | author | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|
Create a public Load Balancer Standard with zonal frontend using Azure CLI | Microsoft Docs |
Learn how to create a public Load Balancer Standard with zonal frontend using Azure CLI |
load-balancer |
na |
KumudD |
load-balancer |
na |
article |
na |
infrastructure-services |
03/26/2018 |
kumud |
This article steps through creating a public Load Balancer Standard with a zonal frontend. Having a zonal frontend means that any inbound or outbound flow is served by a single zone in a region. You can create a load balancer with a zonal frontend by using a zonal Standard Public IP address in its frontend configuration. To understand how availability zones work with Standard Load Balancer, see Standard Load Balancer and Availability zones.
If you don't have an Azure subscription, create a free account before you begin.
[!INCLUDE cloud-shell-try-it.md]
If you choose to install and use the CLI locally, make sure that you have installed the latest Azure CLI and are logged in to an Azure account with az login.
Note
Support for Availability Zones is available for select Azure resources and regions, and VM size families. For more information on how to get started, and which Azure resources, regions, and VM size families you can try availability zones with, see Overview of Availability Zones. For support, you can reach out on StackOverflow or open an Azure support ticket.
Create a resource group using the following command:
az group create --name myResourceGroupZLB --location westeurope
Create a zonal Standard Public IP address using the following command:
az network public-ip create --resource-group myResourceGroupZLB --name myPublicIPZonal --sku Standard --zone 1
Create a Public Load Balancer Standard with the Standard Public IP that you created in the preceding step using the following command:
az network lb create --resource-group myResourceGroupZLB --name myLoadBalancer --public-ip-address myPublicIPZonal --frontend-ip-name myFrontEnd --backend-pool-name myBackEndPool --sku Standard
Create a load balancer health probe using the following command:
az network lb probe create --resource-group myResourceGroupZLB --lb-name myLoadBalancer \
--name myHealthProbe --protocol tcp --port 80
Create a load balancer rule using the following command:
az network lb rule create --resource-group myResourceGroupZLB --lb-name myLoadBalancer --name myLoadBalancerRuleWeb \
--protocol tcp --frontend-port 80 --backend-port 80 --frontend-ip-name myFrontEnd \
--backend-pool-name myBackEndPool --probe-name myHealthProbe
- Learn more about Standard Load Balancer and Availability zones.