Azure Load Balancer

 *Azure Load balancer:-


How to Create Azure Load Balancer


We can use Azure Load Balancer to:-


  1. Load Balance incoming internet traffic to your vm’s. This is known as Public Load Balancer.
  2. Load balance traffic across vm’s inside a virtual network. This is known as Internal Load Balancer.
  3. Port forward traffic to a specific port on specific vm’s.
  4. Provide outbound Connectivity for vm’s inside your virtual network by using a Public Load Balancer.



Fundamental Load Balancer Features:-


Load balancer uses a hash-based algorithms for distribution of inbound flow and rewrites the headers of flow to backend pool instance accordingly.


By default, Load Balancer, uses 5-Tuple:-


5-Tuple hash Composed:-

  1. Source ip.
  2. Source port.
  3. Destination ip.
  4. Destination port.
  5. IP protocols.



Azure Load Balancer Lab:-


Azure Public Load Balancer:-


Step1. Create two virtual machines.

             -- Webserver1

             -- Webserver2


Using same resources group, and region.

East US

Availability Set         — Create new 

Name                        — LoadBalanceSet, 2, 5, Ok.

                                    Image, size, user, pwd.

Select inbound port   — RDP, HTTP, HTTPS

                                  — Review + Create,   

                                       Create.                                    

                                  — Take RDP and Connect.


Step2. Go to Webserver1 and install Webserver (IIS) inside Server Manager.


— Go to C Drive       

—> inetpub     

—> wwwroot

— Create index.html file and write ‘Welcome to Windows Web Servers’ and delete existing files.


              — Do the same into VM2 as well.

              — Turn off windows firewall.


Step3. Go to browser inside vm’s only and type localhost inside URL and see the data.


Step4. Come to Azure portal and go to VM’s      

——> Networking 

——> NIC Public ip 

——> Dissociate 

——> Delete  (for both VM’s).


Step5. Go to Load Balancer     

— Create.

Name        — LB01

Standard, Public, Regional, 


Next.


— Add a frontend IP Configurations:

              Name         — FE-ip-01

              Public ip    — Create new

              Name           LB-pip, OkAddNext.


— Add Backend pool:     

              BP-01, select VNet

              Select ip    — 10.0.0.4

              Select ip      10.0.0.5,      SaveNext


— Add Load Balancing Rule:      

              LB-Rule

              FE-ip-01


— Backend pool:

              BP-01, TCP, 80, 80


— Health probe:

              Create new    — HP-01

                                    — HTTP, Ok, Add.


Step6. Review + Create,    

— Create.   


Go to resource or LB and copy the ip and hit in the browser’s and see the details.














                






























Previous
Next Post »