Load Balancer
🌐 Azure Load Balancer¶
🔄 What is Load Balancer?¶
Azure Load Balancer distributes incoming traffic across multiple VMs to ensure:
-
High availability
-
Scalability
-
Failover handling
🔧 Types¶
| Type | Use Case |
|---|---|
| Public | Internet-facing traffic |
| Internal | Within Azure VNet (e.g., microservices) |
🧰 Setup Steps (Portal)¶
-
Go to Load Balancers
-
Click Create
-
Select type: Public or Internal
-
Add Frontend IP (Public IP)
-
Add Backend Pool (Add VMs)
-
Add Health Probes (e.g., TCP on port 80)
-
Add Load Balancing Rule
- Port 80 frontend → Port 80 backend
📌 Health Probes¶
Checks the availability of VMs. Common probe types:
-
TCP probe
-
HTTP GET probe