Skip to content

Latest commit

 

History

History
85 lines (72 loc) · 4.83 KB

File metadata and controls

85 lines (72 loc) · 4.83 KB
title include file
description include file
services load-balancer
author mbender-ms
ms.service azure-load-balancer
ms.topic include
ms.date 10/19/2023
ms.author mbender
ms.custom include file

Create load balancer

In this section, you create a load balancer for the virtual machines.

  1. In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.

  2. In the Load balancer page, select Create or the Create load balancer button.

  3. 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 lb-resource-group.
    Instance details
    Name Enter load-balancer
    Region Select (US) East US.
    SKU Leave the default Standard.
    Type Select Public.
    Tier Leave the default Regional.
  4. Select the Frontend IP configuration tab, or select the Next: Frontend IP configuration button at the bottom of the page.

  5. In Frontend IP configuration, select + Add a frontend IP configuration.

  6. Enter lb-frontend-IP in Name.

  7. Select IPv4 or IPv6 for the IP version.

    [!NOTE] IPv6 isn't currently supported with Routing Preference or Cross-region load-balancing (Global Tier).

  8. Select IP address for the IP type.

    [!NOTE] For more information on IP prefixes, see Azure Public IP address prefix.

  9. Select Create new in Public IP address.

  10. In Add a public IP address, enter lb-public-IP for Name.

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

  12. Select OK.

  13. Select Add.

  14. Select the Next: Backend pools> button at the bottom of the page.

  15. In the Backend pools tab, select + Add a backend pool.

  16. Enter lb-backend-pool for Name in Add backend pool.

  17. Select lb-VNet in Virtual network.

  18. Select IP Address for Backend Pool Configuration and select Save.

  19. Select the Inbound rules tab, or select the Next: Inbound rules button at the bottom of the page.

  20. In Load balancing rule in the Inbound rules tab, select + Add a load balancing rule.

  21. In Add load balancing rule, enter or select the following information:

    Setting Value
    Name Enter lb-HTTP-rule
    IP Version Select IPv4 or IPv6 depending on your requirements.
    Frontend IP address Select lb-frontend-IP.
    Backend pool Select lb-backend-pool.
    Protocol Select TCP.
    Port Enter 80.
    Backend port Enter 80.
    Health probe Select Create new.
    In Name, enter lb-health-probe.
    Select HTTP in Protocol.
    Leave the rest of the defaults, and select Save.
    Session persistence Select None.
    Idle timeout (minutes) Enter 15.
    Enable TCP reset Select checkbox.
    Enable Floating IP Select checkbox.
    Outbound source network address translation (SNAT) Leave the default of (Recommended) Use outbound rules to provide backend pool members access to the internet.
  22. Select Save.

  23. Select the blue Review + create button at the bottom of the page.

  24. Select Create.

    [!NOTE] In this example we created a NAT gateway to provide outbound Internet access. The outbound rules tab in the configuration is bypassed as it's optional and isn't needed with the NAT gateway. For more information on Azure NAT gateway, see What is Azure Virtual Network NAT? For more information about outbound connections in Azure, see Source Network Address Translation (SNAT) for outbound connections.