Azure Load Balancer

Azure Load Balancer is a high-performance, low-latency Layer 4 load balancer that enables you to distribute network traffic effectively across your virtual machines and services in Azure. It provides a range of features to ensure high availability and scalability for your applications.

Azure Load Balancer Architecture

Conceptual diagram of Azure Load Balancer distribution.

Key Concepts

Types of Azure Load Balancers

Common Use Cases

Configuration Example (CLI)

Here's a simplified example of creating a Standard Load Balancer using the Azure CLI:

az network lb create \ --resource-group myResourceGroup \ --name myLoadBalancer \ --sku Standard \ --frontend-ip-name myFrontEnd \ --public-ip-address myPublicIP

This command creates a Standard SKU load balancer with a frontend IP address associated with a public IP resource.

Adding a Load Balancing Rule

az network lb rule create \ --resource-group myResourceGroup \ --lb-name myLoadBalancer \ --name httpRule \ --protocol tcp \ --frontend-port 80 \ --backend-port 80 \ --frontend-ip-name myFrontEnd \ --backend-pool-name myBackEndPool \ --idle-timeout 15 \ --enable-tcp-reset true

Tip: Always use Standard Load Balancer for production environments to leverage its enhanced reliability and features.

Further Reading