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


Hello Friends,

Hope you all are doing good. In our last article we have discussed about, the overview of Azure Load Balancer. Today in this article, we will continue with the same topic and demonstrate how to configure 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 12 – Azure VPN Network Gateway

Part 13 – Configure Azure Point-to-Site VPN

Part 14 – Configure Azure VNet-to-VNet Connection

Part 15 – Configure Azure Site-to-Site VPN Connection

Part 16 – Azure Virtual Network (VNet) peering

Part 17 – VNet Peering 2 – Hub-spoke VNet topology

Part 18 – Azure Traffic Manager 1

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

Next Article : Part 24 – Azure Load Balancer – Configure Basic Load Balancer -2

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. Create Azure load balancer
  4. Create a virtual network
  5. Create a backend pool
  6. Create health probes
  7. Create a load balancer rule
  8. Add virtual machines to the backend pool
  9. Testing

1 . Setup two new windows VM

As per the above task, the first task is to setup the virtual machines, for our web servers and which will be serving users request and these server will be configured behind Load Balancer.

Note: Create both the VMs in an Availability Set, because if we are configuring multiple server behind the Basic load balancer (LB) , then those VM should be under a availability set or in a Virtual Machine Scale Set(VMSS)

Step 1 – Log in to Azure Portal and move to Virtual Machine section . Hit on Create and then + Virtual machine to start creating a VM s sowing in the following figure.

Figure 1: Azure Networking – Load Balancer – VM Configuration

Step 2 – When configuring VM, make sure we are providing a valid meaning full name also configure the Availability set s showing in the following figure.

Figure 2: Azure Networking – Load Balancer – VM Configuration

Step 3 – As our server will get traffic on 80 port and also we need to access servers through RDP. We need to open the following ports.

Figure 3: Azure Networking – Load Balancer – VM Configuration
Figure 4 : Azure Networking – Load Balancer – VM Configuration

Step 4 – After configured the Webserver-1, let’s configure another VM as Webserver-2 by selecting the same VNet and Available set as showing in the following figure.

Figure 5 : Azure Networking – Load Balancer – VM Configuration
Figure 6: Azure Networking – Load Balancer – VM Configuration
Figure 7: Azure Networking – Load Balancer – VM Configuration

We can see in the above figure, that we have successfully configure our both webserver and now if we want to check, the inbound configuration of both server, we can see it is allowing traffics from any where on port 80 and 3389.

Figure 8: Azure Networking – Load Balancer – VM Configuration

2 . Install IIS and configure Default.html page for Testing

As our webserver are going to server requests, coming from internet on port 80, we should configure IIS on both server and configure a Default.html page to test our configurations.

Step 5 – To install IIS, there are different approaches like through script and manually etc. Here we will do it manually by connecting to server through RDP connection as showing in the following figures

Figure 9: Azure Networking – Load Balancer – VM Configuration – Connect The VM
Figure 10 : Azure Networking – Load Balancer – VM Configuration – Connect The VM

Step 6 – Once we connect to the server, hit on Add Roles and Features. From Add Roles and Features wizard, select Web Server (IIS) and click on Add Features button s showing in the following figure. It will ask us to go through few more window and finally it will install the IIS on he server.

Figure 11: Azure Networking – Load Balancer – VM Configuration – Install IIS

Step 6 – After installing the IIS, let’s create a Default.html page under C://inetpub/wwwroot folder as showing in the following figure. Also observe the content of the default.html page. This is only show the server name of the host.

Figure 12 : Azure Networking – Load Balancer – VM Configuration – Configure Default page

Step 7 – Let’s do the same IIS installation and configure Default.html page on Webserver-2 s showing in the following figure.

Figure 13 : Azure Networking – Load Balancer – VM Configuration – Configure Default page

Step 8 – Let’s browse default page of Webserver-1 by using it’s public IP as showing in the following figure, user can send request to server on port 80.

Figure 14 : Azure Networking – Load Balancer – VM Configuration – Configure Default page

Let’s browse Default.html on Webserver-2 by using it’s public IP as showing in the following figure.

Figure 15 : Azure Networking – Load Balancer – VM Configuration – Configure Default page
Figure 16 : Azure Networking – Load Balancer – VM Configuration – Configure Default page

In this article we have started with our Lab exercise to demonstrate, how to configure Load Balancer. In this article today we have discussed how to configure our web servers, which will be behind our Load balancer. In our next article we are going to cover rest of the configurations to complete Load Balancer (LB) configuration.

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.

Next Article : Part 24 – Azure Load Balancer – Configure Basic Load Balancer -2

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

7 Responses

  1. December 7, 2021

    […] Next Article : Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

  2. December 8, 2021

    […] Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

  3. December 10, 2021

    […] 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 […]

  4. December 24, 2021

    […] Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

  5. February 11, 2022

    […] Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

  6. March 16, 2022

    […] Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

  7. March 20, 2022

    […] Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1 […]

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

%d bloggers like this: