How to create a load balancer in Microsoft Azure portal

Introduction

Creating a load balancer in the Microsoft Azure portal involves several key steps to ensure efficient distribution of incoming traffic across multiple virtual machines. This article will guide you through the process, covering essential aspects such as configuring backend pools, setting up health probes, and defining load-balancing rules. By following these steps, you can establish a robust load-balancing solution in Azure that enhances the availability, scalability, and reliability of your applications.

Load balancer in Microsoft Azure portal

Step 1

Sign in to the Azure portal via https://portal.azure.com.

Step 2

On the home page click on + Create a resource button to create a new resource.

Create a resource

Step 3

In the marketplace search for the Load Balancer. Then select the Load Balancer, click on Create, and again select the Load Balancer to get started.

select the Load Balancer

Step 4

In the Create load balancer page, select the Subscription, Resource group, Name, Region, SKU, Type, and Tier. Then click on the Next: Frontend IP configuration button.

Create load balancer

Step 5

Then click on + Add a frontend IP configuration.

Create load balancer

Step 6

Enter a name for the frontend IP and select the IP version. Then click on Create new to create a new public IP address.

Add frontend IP configuration

Step 7

Provide a Name for the public IP address and select the Assignment as Static. Then click on OK to proceed further.

Add a public IP address

Step 8

You will be able to see the created new public IP address. Click on the Add button.

Add frontend IP configuration

Step 9

Select Next: Backend pools.

Create Load balancer

Step 10

In Backend pools, click on + Add a backend pool.

Add a Backend pool

Provide a Name for the backend pool and select a Virtual network. Then click on Save. You can configure IPs later. Then click on the Next: Inbound rules button.

Add a Backend pool

Step 11

In the Load balancing rule section, click on + Add a load balancing rule. Provide Name and IP Version, select Frontend IP Address, Backend pool, Protocol, Port and Backend port, and Health probe. Then click on Save.

Add a load balancing rule

Step 12

Now you will be able to see the created load balancing rule. Click on Review + create.

create load balancing rule

Step 13

Click on Create after the validation has passed.

Azure Deployment

You can see the deployment is completed. Now, you can add the virtual machines as preferred.

Summary

In this article, we learned “How to create a load balancer in the Microsoft Azure portal”. Please use the comments section if you have any clarification.