Distribute network traffic and improve application availability with Azure Load Balancer.
Azure Load Balancer is a high-performance, low-latency Layer 4 load balancer that distributes incoming traffic across a pool of backend resources, such as virtual machines or virtual machine scale sets. It provides a highly available and scalable solution for your applications.
It operates on TCP and UDP protocols and can handle millions of concurrent connections. Azure Load Balancer is designed to be resilient and fault-tolerant, ensuring your applications remain accessible even during hardware failures.
Diagram illustrating Azure Load Balancer distribution.
Azure Load Balancer works by assigning a public or internal IP address to the load balancer. Incoming network traffic directed to this IP address is then evaluated based on configured load balancing rules.
These rules define how traffic is distributed to backend pool instances. Health probes are essential for maintaining the availability of your application. If a health probe detects that a backend instance is unhealthy, the load balancer will stop sending traffic to that instance until it becomes healthy again.
The process typically involves:
Azure offers two main types of load balancers:
Standard Load Balancer offers advanced features for production workloads, including:
Basic Load Balancer is a simpler, more cost-effective option suitable for development and test environments or less critical workloads. It offers:
Azure Load Balancer is ideal for a variety of scenarios:
Ensure continuous availability of web servers, APIs, and other services by distributing traffic across multiple instances.
Effortlessly scale your application's backend by adding or removing instances and letting the load balancer distribute traffic accordingly.
Provide load balancing capabilities for development and testing purposes without incurring high costs.
Azure Load Balancer pricing is based on the SKU (Basic or Standard) and the number of rules configured. Standard Load Balancer has a higher hourly cost but offers more features and better performance for production environments.
For detailed pricing information, please refer to the official Azure Load Balancer pricing page.
You can create and configure Azure Load Balancer using the Azure portal, Azure CLI, Azure PowerShell, or ARM templates.
Here's a quick overview of the steps involved:
You can find comprehensive step-by-step guides in the official Azure documentation: