Overview
Here I deployed an Azure Standard Load Balancer in front of two Ubuntu virtual machines running Nginx. I configured the frontend public IP, the backend pool, an HTTP health probe and the load balancing rule.
What I set out to do
- Share web traffic between two servers and stop sending traffic to a server that is down.
Layout
Internet
│
▼
Azure Standard Load Balancer
│
┌───────────┴───────────┐
▼ ▼
vm-cloud-labs-linux-001 vm-cloud-labs-linux-002
Nginx NginxThis diagram comes from my project README.
What I did
- I deployed the Standard Load Balancer with a frontend public IP.
- I added both Ubuntu VMs to the backend pool.
- I created an HTTP health probe and a load balancing rule.
- I installed Nginx on both VMs.
Screenshots
They are in the same order as in my repository. Click one to see it full size.
I painted over my Azure subscription ID in red. Everything else is as I captured it.
1. Review and CreateShows the Azure configuration before deploying the Standard Load Balancer. 2. Deployment SuccessfulShows the successful deployment of the Azure Standard Load Balancer. 3. Load Balancer OverviewShows the deployed load balancer and its frontend configuration. 4. Backend PoolShows both Ubuntu Linux virtual machines added to the backend pool. 5. Health ProbeShows the HTTP health probe configured to monitor the availability of the backend virtual machines. 6. Load Balancing RuleShows the HTTP load balancing rule linking the frontend IP, backend pool and health probe. 7. Health Probe StatusShows both backend virtual machines reporting a healthy status. 8. Load Balancing Rule VerificationShows the completed load balancing rule configuration. 9. PowerShell VerificationShows HTTP requests distributed between both backend virtual machines using PowerShell `curl`. 10. Browser Verification: VM002Shows the load balancer routing traffic to **vm-cloud-labs-linux-002**. 11. Browser Verification: VM001Shows the load balancer routing traffic to **vm-cloud-labs-linux-001**.
How I tested it
- The health probe showed both servers as healthy.
- Repeated curl requests from PowerShell were answered by both VMs.
- In the browser I saw pages from vm-cloud-labs-linux-001 and vm-cloud-labs-linux-002.
Repository
My full notes and the original screenshots are on GitHub: azure-basic-labs/07-azure-load-balancer