Azure Classroomnotes 14/Aug/2022

Load Balancing in Azure

  • Azure has two types of Load Balancers
    • Azure Load Balancer: This is layer 4 load balancer
    • Azure Application Gateway: This is Layer 7 Load balancer
  • Load Balancers in Azure can be private/internal i.e. they can be accessed only within VNET and public/external load balancers where a public ip is assigned to the Azure Loadbalancer
    Preview
  • Lets create a virtual network with 3 subnets
    • web
    • app
    • db
  • In the web subnet create a vm and install apache server with php info page
  • Create one more server in the web subnet & install the same as above
sudo apt update
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php php-mysql -y
sudo -i
echo "<?php phpinfo(); ?>" > /var/www/html/info.php

  • Health Check for this application can be done by sending http packet on server ip and expect a 200 status code. This would be our health probe.
  • Azure Load Balancer SKU’s:
    • Basic
    • Standard
  • Refer Here for loadbalancer skus
  • SKU Comparision Refer Here and limitations Refer Here
  • For pricing Refer Here
  • Create a Standard Load Balancer
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Azure application gateway: This is layer 7 load balancing service from azure
    Preview
  • Refer Here for the official docs
  • Create one more vm in the web subnet and install any app. in this series i’m installing nginx.
sudo apt update
sudo apt install nginx -y

Preview

  • Traffic Manager is used for multi region routing Refer Here

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner