| title | include file |
|---|---|
| description | include file |
| services | virtual-network |
| author | asudbring |
| ms.service | azure-virtual-network |
| ms.topic | include |
| ms.date | 07/17/2023 |
| ms.author | allensu |
| ms.custom | include file |
In this section, you create a zone redundant load balancer that load balances virtual machines. With zone-redundancy, one or more availability zones can fail and the data path survives as long as one zone in the region remains healthy.
During the creation of the load balancer, you configure:
- Frontend IP address
- Backend pool
- Inbound load-balancing rules
-
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
-
In the Load balancer page, select Create.
-
In the Basics tab of the Create load balancer page, enter, or select the following information:
Setting Value Project details Subscription Select your subscription. Resource group Select test-rg. Instance details Name Enter load-balancer Region Select (US) East US 2. SKU Leave the default Standard. Type Select Public. Tier Leave the default Regional. -
Select Next: Frontend IP configuration at the bottom of the page.
-
In Frontend IP configuration, select + Add a frontend IP configuration.
-
Enter frontend in Name.
-
Select IPv4 or IPv6 for the IP version.
[!NOTE] IPv6 isn't currently supported with Routing Preference or Cross-region load-balancing (Global Tier).
-
Select IP address for the IP type.
[!NOTE] For more information on IP prefixes, see Azure Public IP address prefix.
-
Select Create new in Public IP address.
-
In Add a public IP address, enter public-ip-load-balancer for Name.
-
Select Zone-redundant in Availability zone.
[!NOTE] In regions with Availability Zones, you have the option to select no-zone (default option), a specific zone, or zone-redundant. The choice will depend on your specific domain failure requirements. In regions without Availability Zones, this field won't appear.
For more information on availability zones, see Availability zones overview. -
Leave the default of Microsoft Network for Routing preference.
-
Select OK.
-
Select Add.
-
Select Next: Backend pools at the bottom of the page.
-
In the Backend pools tab, select + Add a backend pool.
-
Enter backend-pool for Name in Add backend pool.
-
Select vnet-1 (test-rg) in Virtual network.
-
Select NIC or IP Address for Backend Pool Configuration.
-
Select Save.
-
Select the Next: Inbound rules button at the bottom of the page.
-
In Load balancing rule in the Inbound rules tab, select + Add a load balancing rule.
-
In Add load balancing rule, enter or select the following information:
Setting Value Name Enter http-rule IP Version Select IPv4 or IPv6 depending on your requirements. Frontend IP address Select front-end. Backend pool Select backend-pool. Protocol Select TCP. Port Enter 80. Backend port Enter 80. Health probe Select Create new.
In Name, enter health-probe.
Select TCP in Protocol.
Leave the rest of the defaults, and select OK.Session persistence Select None. Idle timeout (minutes) Enter or select 15. TCP reset Select Enabled. Floating IP Select Disabled. Outbound source network address translation (SNAT) Leave the default of (Recommended) Use outbound rules to provide backend pool members access to the internet. -
Select Save.
-
Select the blue Review + create button at the bottom of the page.
-
Select Create.