AZLoad Balancer

 

https://www.greatminditacademy.com/


Activity 1: Create an two ubuntu linux VM's


Create an two ubuntu linux vm's and install Ngnix software


Below are the steps to create ubuntu machine


  • While creating VM open 22, 80 ports
 






Open Ports 22 and 80 for both the machines







Once Virtual machines are created, connect server using ssh for the both the machines and install nginx software.


Uploading: 54998 of 54998 bytes uploaded.




Now change to root user by using "sudo su" command as below



Now run command as "apt update"




Now install nginx software by using below command

 apt install nginx -y




To verify, webserer is installed or not, browse using server Public IP in the browser





Create load balancer


During the creation of the load balancer, you'll configure:

  • Frontend IP address
  • Backend pool
  • Inbound load-balancing rules
  • Health probe

  1. In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.





  1. In the Load balancer page, select + Create.




  2. SettingValue
    Project details
    SubscriptionSelect your subscription.
    Resource groupSelect RG-01
    Instance details
    NameEnter myLoadBalancer
    RegionSelect East US.
    SKULeave the default Standard.
    TypeSelect Public.
    TierLeave the default Regional.




  • Select Next: Frontend IP configuration at the bottom of the page.
  • In Frontend IP configuration, select + Add a frontend IP configuration.
  • Enter myFrontend in Name.
  • Select IPv4 for the IP version.
  • Select IP address for the IP type.
  • Select Create New in Public IP address
  • in Add a public Ip address, enter myPublicIP for Name






Create Backend pool


Create Backendpool

Name: be-pool and select existing Virtual network and Click on ADD to add virtual machines




Add two machines into backend pool




Check Load balancer is created





Configure Health Probe







once Health probe is created, create Load balance rules













Now browse using Load balancer public IP




Now able to browse website using Load balaner public IP




Comments

Popular posts from this blog

Azure Storage Accounts

Azure Site Recovery

Azure Backup