Azure Load Balancing

Distribute network traffic efficiently and reliably across your applications.

Azure Load Balancer is a Layer 4 (TCP, UDP) load balancer that enables you to distribute network traffic to healthy virtual machines in a virtual network. It provides high availability and application scalability.

Key Concepts

What is Load Balancing?

Load balancing is the process of distributing incoming network traffic across a group of backend resources (like virtual machines or containers). This ensures that no single resource becomes overwhelmed, improving application responsiveness and availability.

Azure Load Balancer Tiers

Azure Load Balancer offers two tiers:

Load Balancing Rules

Load balancing rules define how incoming traffic is directed to backend instances. You can configure rules for:

Health Probes

Health probes are crucial for the load balancer to determine which backend instances are healthy and can receive traffic. If an instance fails the health probe, the load balancer will stop sending traffic to it until it recovers.

Supported probe types include:

Use Cases

Types of Azure Load Balancers

Azure Load Balancer

The primary Azure Load Balancer service for Layer 4 traffic distribution. It can be used for both internal (private) and external (public) scenarios.

Azure Application Gateway

A Layer 7 (HTTP/HTTPS) load balancer that provides advanced features like SSL termination, cookie-based session affinity, Web Application Firewall (WAF), and URL-based routing.

Traffic Manager

A DNS-based traffic load balancer that allows you to distribute traffic to your services across different Azure regions or even external endpoints. It's ideal for global traffic distribution and disaster recovery.

Getting Started

To start using Azure Load Balancer, you typically need to:

  1. Create a Virtual Network and subnets.
  2. Deploy your backend virtual machines.
  3. Create an Azure Load Balancer resource.
  4. Configure a frontend IP configuration.
  5. Create backend address pools.
  6. Define load balancing rules.
  7. Configure health probes.
Note: Standard Load Balancer is recommended for production workloads due to its enhanced features and reliability.
View Detailed Azure Load Balancer Documentation Create a Load Balancer using Azure CLI Learn about Application Gateway