Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » Setup Public Load Balancer in Azure
  • Windows 11 default Icons
    Windows Desktop Icon: How to Make Default System Icons Visible Windows
  • mysqlhero
    How to reset MySQL Root password Oracle/MSSQL/MySQL
  • GNS 3
    Graphical Network Simulator: How to uninstall GNS3 in Windows Windows
  • win10 usb
    How to prevent installation of removable devices Windows
  • sql server installation
    How to Install all Editions of Microsoft SQL Server 2025 Oracle/MSSQL/MySQL
  • MECM Deployment copy
    How to install Endpoint Configuration Manager on HyperV VM Windows Server
  • Missing Windows defender
    Missing Windows Defender? Install and manage Microsoft Defender via Windows Security on Windows Server Windows Server
  • DC Name
    Install and configure Active Directory Domain Services on Windows Server Windows

Setup Public Load Balancer in Azure

Posted on 23/12/202104/05/2024 Dickson Victor By Dickson Victor No Comments on Setup Public Load Balancer in Azure
azure-resource-groups-1

In this article, I will show you how to setup Public Load Balancer in Azure. Where it can distribute the incoming traffic over multiple servers. It will split up the load over two Virtual Machines. IPAM enables the administration and monitoring of DHCP and DNS and provides a comprehensive view of where IP addresses are used, it also collects information from domain controllers and Network Policy Servers (NPSs), and then stores that information in the Windows Internal Database.

Also here are some of my related guides: How to configure Network Load Balancing (NLB), how to create a load balancer for Azure Stack Hub, and how to fix we couldn’t find a Camera compatible with Windows Hello Face on Windows 11.

What is Azure Load Balancer?

Azure Load Balancer operates at layer 4 of the Open Systems Interconnection (OSI) model. It’s the single point of contact for clients.

A load balancer distributes inbound flows that arrive at the load balancer’s front end to backend pool instances. These flows are according to configured load-balancing rules and health probes.

The backend pool instances can be Azure Virtual Machines or instances in a Virtual Machine Scale Set.

In order to reiterate, Load balancing refers to evenly distributing load (incoming network traffic) across a group of backend resources or servers.

Please refer to these exciting posts: how to deploy a load balancer from scratch and adding backend servers, how to use Aws to deploy, schedule and run playbooks, how to configure azure resources with tools, how to install and configure Ansible on Ubuntu, how to install Kerberos packages in Windows via Cygwin and how to deploy Azure VMware solution private cloud.

Create Public Load Balancer in Azure

Create Virtual Machines

We’ll create VMs in each virtual network (VNet) so that we can communicate between them. Let’s Create 1st VM. On the Azure Portal menu tab, select Virtual machines

Capture-38

Select the + Create button to create the virtual machine.

Please see these fantastic articles: How to disable power plan in Windows via GPO and Windows, and Virtual Machine Scale Set: Demonstrating High Availability in Azure

Capture-39

From the Resource group section, select create new.

Capture-74

Select the Resource Group

Type the resource group name (rg-web) and then click OK

Capture-41

Enter the Instance details

Enter a virtual machine name (web1), Region select (East US), Availability options – select Availability set. On the Availability set, select to create new.

Capture-42

Enter an Availability set name loadbalanceset and then click OK

Capture-43

in the Image section, please select Windows Server 2019 Datacenter. You can select various operating systems, but the remaining steps assume you selected Windows Server 2019 Datacenter.

Capture-44

Set the Administrator account

Enter a username, Password for your account. Public inbound ports choose to allow selected ports. Select inbound ports (HTTP, HTTPS, RDP) and then click on Review + create >

Capture-45

Select create

Capture-46

Your deployment is complete

Capture-47

Create the second Virtual Machine

Complete by creating the second VM by using the following changes below:

Name: Value
Resource group: rg-web
Virtual machine name: web2
Region: (US) West US
Availability options: Availability set
Availability set: loadbalanceset
Image: Windows Server 2019 Datacenter
Administrator account: username & password
Public inbound port: allow selected ports
Select inbound ports: HTTP, HTTPS, RDP
Click Create

The Virtual Machines take a few minutes to create. Now we have created both Virtual Machines (web1, web2) successfully.

Capture-48

Create a Network Load Balancer in Azure

From the Microsoft Azure menu, select Load Balancers

Capture-49

Select Create a load balancer

Capture-50

Select resource group rg-web

Capture-51

Kindly ensure the following details below are filled.

  • Enter the name of the Load Balancer.
  • Select Region (East US).
  • keep it Public and SKU Basic.
  • Set the Public Address.
  • Create new, enter a name lbpublicip keep it dynamic and then select Review + create >
Capture-52

In the window below, you can see the validation has passed. Kindly click on Create!

Capture-53

Now you can see the load balancer successfully created, click on lbweb

Capture-54

Here, I will be configuring the Health Probes for our Load Balancer. So, we can specify how many servers we want to make the Load Balancer.

In the Backend Pools, we specify the servers which we are going to use in the Load Balancer.

Backend Pools

Click on Backend Pools and then click on + Add

Capture-55

Enter the following information below.

  • Add backend pool wizard, Type a name
  • Virtual network (rg-web)
  • Associate to select virtual machines and then click the add button under a virtual machine.
Capture-56

Then add the virtual machine to the backend pool wizard. Select the VMs and then click add.

Capture-58

After selecting the VMs, then click on i.

Capture-59

The backend pool has been configured successfully. Inside Load Balancer, go to Health Probes

Capture-60

Click on Add

Capture-61

Enter a name to the Health Probe, and the Protocol (HTTP)

NOTE: The interval shows that it is going to make a probing attempt at 5-second intervals. The unhealthy threshold shows that after 2 attempts of the failed probe, it is going to declare it as an unhealthy server. Click ok

Capture-62

Health probe successfully created, click on Load Balancing Rules.

Capture-63

Click on + Add button

Capture-64

Also, ensure the following parameters are filled in correctly.

  • Add load balancing rule wizard, The IP version is IPv4
  • Select frontend IP Address
  • The protocol is TCP, the port number is 80
  • The backend port is 80, the backend pool is one that we have just created and the health probe is one that we have created.
  • Session persistence is by default – None
  • Idle timeout is by default – 4 minutes.
  • Floating IP disabled. Click on OK.
Capture-65

The load Balancing Rule has been created.

Capture-66

Test Network Load Balancer

Now that we have Setup Public Load Balancer in Azure, it is time to test it. Please follow the steps below to do this.

After remoting to both VMs. Right-click, select new, and then click text documents\ on each VM and then delete these files.

Capture-67

Open the text file

Capture-68

Type this is windows server web1. Select file and then save as.

Capture-69

Type index.html Save as type All Files and click save.

Capture-70

Select the Azure menu and then load balancers.

Capture-71

Click on load balancer lbweb

Capture-72

In the Load Balancer, Copy and paste your Public IP address, then paste it in the explorer address bar.

Capture-73

On the first hit, it takes me to the web1 server, then waits for some minutes again press enter key and it will open the web2 server just as it is shown below.

web1
web2

I hope you found this blog post helpful on how to setup Public Load Balancer in Azure. Please let me know in the comment section if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift, Network | Monitoring Tags:Azure

Post navigation

Previous Post: How to Install LAMP Stack on Ubuntu 18.04
Next Post: How to install IIS Web Server on Windows Server

Related Posts

  • FEATUREDC
    How to create Confidential VMs in Azure AWS/Azure/OpenShift
  • DevOps GIT Docker Kubernetes
    Azure DevOps: Docker and Kubernetes Deployment with GitHub AWS/Azure/OpenShift
  • VBAWS comprehensive guide
    Deep Dive into Protecting AWS EC2, RDS Instances and VPC AWS/Azure/OpenShift
  • image 73
    How to manage and use Amazon S3 access points using the AWS Management Console AWS/Azure/OpenShift
  • Screenshot 2024 02 09 at 7.34.18 PM
    How to create a Logic App for monitoring tweets AWS/Azure/OpenShift
  • redirects3endpoint
    How to redirect requests for your bucket’s website endpoint to another bucket or domain AWS/Azure/OpenShift

More Related Articles

FEATUREDC How to create Confidential VMs in Azure AWS/Azure/OpenShift
DevOps GIT Docker Kubernetes Azure DevOps: Docker and Kubernetes Deployment with GitHub AWS/Azure/OpenShift
VBAWS comprehensive guide Deep Dive into Protecting AWS EC2, RDS Instances and VPC AWS/Azure/OpenShift
image 73 How to manage and use Amazon S3 access points using the AWS Management Console AWS/Azure/OpenShift
Screenshot 2024 02 09 at 7.34.18 PM How to create a Logic App for monitoring tweets AWS/Azure/OpenShift
redirects3endpoint How to redirect requests for your bucket’s website endpoint to another bucket or domain AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Windows 11 default Icons
    Windows Desktop Icon: How to Make Default System Icons Visible Windows
  • mysqlhero
    How to reset MySQL Root password Oracle/MSSQL/MySQL
  • GNS 3
    Graphical Network Simulator: How to uninstall GNS3 in Windows Windows
  • win10 usb
    How to prevent installation of removable devices Windows
  • sql server installation
    How to Install all Editions of Microsoft SQL Server 2025 Oracle/MSSQL/MySQL
  • MECM Deployment copy
    How to install Endpoint Configuration Manager on HyperV VM Windows Server
  • Missing Windows defender
    Missing Windows Defender? Install and manage Microsoft Defender via Windows Security on Windows Server Windows Server
  • DC Name
    Install and configure Active Directory Domain Services on Windows Server Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,825 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.