Azure – Networking – Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2


Hello Friends,

Hope you all are doing good. In our last article we have discussed about, how to configure Azure Basic Load Balance. Today in this article, we will continue with the configuration of Azure Basic Load Balancer. So let’s start :).

Tool Installation Articles :

  1. Configure Azure Command Line Interface ( Azure CLI) On Windows
  2. Configure PowerShell For Microsoft Azure Az Module On Windows

Previous Azure Series :

  1. Learn Basics Of Microsoft Azure Storage services
  2. Learn Basic Of Azure Active Directory And Azure Identity And Access Management
  3. Azure DevOps – Learn at one place

If you have missed our previous articles on Azure Networking, please check it in following links.

Part 1 – Basics of Azure Networking

  • *
  • *
  • *

Part 19 – Azure Traffic Manager 2 -Create Traffic Manager Profile using (Cloud Shell)

Part 20 – Azure Route Table

Part 21 – Azure Route Table 2 – Configure User Define Route (UDR)

Part 22 – Azure Load Balancer – Overview

Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1

Configure Azure Load Balancer :

In this section, I am going to show how to configure a Azure basic load balancer to distribute web traffic. This lab exercise includes the following tasks:

  1. Setup two new windows VM
  2. Install IIS and configure Default.html page for Testing
  3. Dissociate public IP and set private IP as static of each Virtual Machine
  4. Create Public IP for Load Balancer
  5. Create Azure load balancer
  6. Create a backend pool
  7. Create health probes
  8. Create a load balancer rule
  9. Add virtual machines to the backend pool
  10. Testing

In our last article we have configured our webservers as well as configured IIS and Default.html page on each server. So In this way we have completed following points.

  1. Setup two new windows VM
  2. Install IIS and configure Default.html page for Testing

In this article we will cover the following points.

  • Dissociate public IP for VMS and set private IP as static
  • Create Public IP for Load Balancer
  • Create Azure load balancer

In our next article we will cover rest of the points. So let’s start with the next point.

3. Dissociate Public IP and set private IP as static of each Virtual Machine

Now we are going to dissociate Public IP of all VM’s. Because we don’t need this public IP address any more. We associated the IP to connect through RDP and install and configure IIS and Default.html page (though we can do this using script as well). Now our users are going to be reaching to the application of the Azure VMS via the load balancer. and User are going to be use the Public IP of the load balancer, that’s why we don’t need the public IP addressed of VM any more. The load balancer will now start directing the traffic to the VM via the private IP address of the virtual machine. The Load balancer will take care of that. So let’s go to the azure resources and open-up both VMs as showing in the following figure to dissociate its public IP.

Figure 1 : Azure Networking – Load Balancer – VM Configuration

There are two approaches to dissociate the public IP. In first approach,

Go to the VM => Click Networking => Click on the NIC public IP as showing in the following figure.

Figure 2 : Azure Networking – Load Balancer – Dissociate Public IP

Once we are on the Public IP address window, hit Dissociate to dissociate the public IP from the VM as showing in the following figure.

Figure 3 : Azure Networking – Load Balancer – Dissociate Public IP

In the second approach, go to the VM => Click Networking => Click on the Network Interface as showing in the following figure.

Figure 4 : Azure Networking – Load Balancer – Dissociate Public IP

On Network Interface window, click on IP configuration => click iponfig1

Figure 5 : Azure Networking – Load Balancer – Dissociate Public IP

As showing in the following figure, click on Disassociate to disassociate the Public I address and click on Static to make Private IP address static and then hit Save button to save the changes.

Figure 6 : Azure Networking – Load Balancer – Dissociate Public IP

4. Create Public IP for Load Balancer

In the above section, we have dissociated the public IP address from each VM. Then here the question is how should an internet user, will communicate with the application on server without a public IP address ? So the answer is, we will create a new static public IP address and then associate it with the load balancer, so that user will communicate with load balancer and in-turn load balancer will direct the traffic with the server via it’s private IP address. So let’s proceed to create a public IP address.

Go to create a resource => search for public IP address =>On Public IP address page click on Create button to start configuring the public IP as showing in the following figures.

Figure 7 : Azure Networking – Load Balancer – Create Public IP
Figure 8 : Azure Networking – Load Balancer – Create Public IP

AS we can see in the following figure, we need configure the public IP as per our requirement. In our case we are creating the public IP for our basic load balancer. In this case we can choose basic SKU. When we choose basic Public IP , the IP will be available for Regional Tier. In case of Standard load balancer , we must create a public IP with Standard SKU and in that case, the public IP would be available for both Regional and Global Tier.

We should create a static public IP as showing in the following figure, so that user’s request can come to that particular IP address also it help to whitewash the IP. Then check with your Location as the location should be same as our load balancer and Resource Group etc.. before hit the Create button. Once you confirm, that your done with all setting then click Create button 🙂 .

Figure 9 : Azure Networking – Load Balancer – Create Public IP

We can see in the following figure, our Public IP address is ready to use. We will use this public IP when we will configure our load balancer in our next section.

Figure 10 : Azure Networking – Load Balancer – Create Public IP

5. Create Azure load balancer

In our above section, we have configured the public IP for our load balancer and before that, in our previous article we have configured multiple VMs under one availability set. In this section we will see how to create a public basic load balancer. Let’s proceed for this.

Go to create a resource => search for Microsoft Azure Load Balancer =>On Load balancing page click on Create load balancer button to start configuring the load balancer as showing in the following figures.

Figure 11 : Azure Networking – Load Balancer – Create LB

On Create load balancer page, we need to configure as per our requirement. In Basic tab, we need to configure , Resource Group, Name , Region, SKU, Type, Tier etc… In this lab , we are going to configure Basic load balancer and the Type would be Public as internet user will send request to load balancer as showing in the following figure.

Once we configured the above settings, click Next: Frontend IP configuration button as showing in the following figure.

Figure 12 : Azure Networking – Load Balancer – Create Load Balancer

On Frontend IP configuration page, let’s click + Add a frontend IP configuration link to add an IP address. It will open a new pop up window. In this window, it will allows to use existing Public IP or create a new public IP. As we have already created a public IP address in our previous section, we can associate here as the frontend IP. Here I am selecting my newly created Public IP address.

Figure 12.5 : Azure Networking – Load Balancer – Create Load Balancer

Once we selected the public IP address, click Add button to associate it with the load balancer as showing in the following figure.

Figure 13 : Azure Networking – Load Balancer – Create Load Balancer

Once our Frontend IP configured, click on Backend Pools tab. But , let’s leave it for the time being , we will configure rest of the setting later after creating the load balancer.

Figure 14 : Azure Networking – Load Balancer – Create Load Balancer
Figure 15 : Azure Networking – Load Balancer – Create Load Balancer

Once we make sure that all configurations are as per our requirement, click Create button to deploy the load balancer resource.

Figure 16 : Azure Networking – Load Balancer – Create Load Balancer
Figure 17 : Azure Networking – Load Balancer – Create Load Balancer

We can now see in the above figure, our basic public load balancer is now deployed and ready to use. In our next article we will cover and configure, rest of the settings.

With the above information, I am concluding this article. I hope this is informative to you. Please let me know if I missed anything important or if my understanding is not up to the mark. Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more. In our next article we will continue with the Lab exercise with configuring load balancer.

If you have any suggestion / feedback / doubt, you are most welcome. Stay tuned on Knowledge-Junction, will come up with more such articles.

Thanks for reading 🙂 .

Manas Ranjan Moharana

Around 11+ years of total IT experience and since last 10 years working on almost on all version of SharePoint .Interested in learning and sharing something new to be helthy.

You may also like...

5 Responses

  1. February 9, 2022

    […] Chapter 24 – Azure Load Balancer – Configure Basic Load Balancer – 2 […]

  2. March 10, 2022

    […] Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2 […]

  3. March 14, 2022

    […] Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2 […]

  4. March 21, 2022

    […] Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2 […]

  5. March 24, 2022

    […] Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2 […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: