0
0
Azurecloud~30 mins

Why load balancing matters in Azure - See It in Action

Choose your learning style9 modes available
Why Load Balancing Matters
📖 Scenario: You are managing a website hosted on Azure. Many users visit the site at the same time. To keep the website fast and reliable, you need to spread the work evenly across several servers.
🎯 Goal: Build a simple Azure load balancer configuration that distributes traffic to two virtual machines. This will help the website handle many visitors without slowing down or crashing.
📋 What You'll Learn
Create a resource group named MyResourceGroup
Create two virtual machines named VM1 and VM2
Create a load balancer named MyLoadBalancer that balances traffic between VM1 and VM2
Configure a backend address pool with VM1 and VM2
Set up a load balancing rule for HTTP traffic on port 80
💡 Why This Matters
🌍 Real World
Load balancing helps websites and apps stay fast and reliable when many users visit at the same time.
💼 Career
Cloud engineers and system administrators use load balancers to manage traffic and keep services available.
Progress0 / 4 steps
1
Create the resource group and virtual machines
Write Azure CLI commands to create a resource group called MyResourceGroup in the eastus region, and create two virtual machines named VM1 and VM2 inside this group.
Azure
Need a hint?

Use az group create to make the group, then az vm create twice for the two VMs.

2
Create the load balancer and backend pool
Write Azure CLI commands to create a load balancer named MyLoadBalancer in MyResourceGroup and create a backend address pool named MyBackendPool inside the load balancer.
Azure
Need a hint?

Use az network lb create with --frontend-ip-name and --backend-pool-name options.

3
Add virtual machines to the backend pool
Write Azure CLI commands to add VM1 and VM2 network interfaces to the backend address pool named MyBackendPool of MyLoadBalancer.
Azure
Need a hint?

Use az network nic ip-config address-pool add to add NICs to the backend pool. The NIC names are usually VM1VMNic and VM2VMNic.

4
Create a load balancing rule for HTTP traffic
Write an Azure CLI command to create a load balancing rule named HTTPRule on MyLoadBalancer that listens on port 80 and forwards traffic to the backend pool MyBackendPool.
Azure
Need a hint?

Use az network lb rule create with the correct ports and names to set up HTTP load balancing.