What Is Azure Load Balancer? Why One Busy Connection Stays on One VM

Updated on December 2, 20262.7

Azure Load Balancer gives clients a frontend IP and distributes TCP or UDP flows to healthy backend instances. A public frontend accepts traffic on a public IP. An internal frontend uses a private IP for clients that can reach it. With Standard Load Balancer, distribution happens at the transport layer. If the service carries HTTPS, the backend can terminate TLS and read the HTTP request.

What selects the backend?

A load-balancing rule associates a frontend protocol and port with a backend pool and port. Under the default distribution mode, Azure hashes five fields: source IP, source port, destination IP, destination port and protocol. Packets in an established flow go to the same backend. A new connection may use a different source port and reach another backend. Source-IP affinity modes change which fields determine distribution.

That explains a common surprise during commissioning. An engineer opens one persistent connection, sends a hundred messages and sees the same VM handle all of them. That is compatible with a healthy load balancer. A meaningful distribution exercise creates independent flows and records which backend actually served each. Even then, a small sample need not split evenly.

The busiest backend may have fewer connections

One device uploads 900 MB through one long-lived TCP connection. Ninety-nine other devices each send 1 MB. Total traffic is 999 MB. Whichever backend takes the large connection receives at least 90 percent of the bytes, even if the remaining connections distribute evenly. Adding another VM can help with future flows, but it will not split that existing upload.

Question Measure What an average hides
Are new flows reaching multiple backends? Connection starts per backend across representative clients One reused connection can generate many application requests.
Is the service evenly loaded? Bytes, CPU and processing time per backend Equal flow counts can conceal expensive sessions.
Does adding capacity help quickly enough? Time until new capacity receives useful work Long-lived connections may dominate well after scale-out.

What a health probe changes

The probe checks each backend on a configured port or endpoint. For Standard Load Balancer, a backend that fails a probe stops receiving new flows while healthy alternatives are available. Established TCP connections can continue when the probe goes down. If the actual VM crashes, the connection itself may fail. The load balancer does not transplant that session to another server.

Choose a probe that reflects the service’s readiness. A TCP listener may accept a connection while its work queue is stalled. An application-aware HTTP readiness endpoint can be more representative even when the client protocol is different, provided the application owner defines what ready means. The health probe and the traffic rule serve separate purposes.

Design the client’s recovery as well as the frontend

For a telemetry collector, record the last acknowledged message and let the device reconnect and resume safely. In a disposable pilot, compare marking a backend unready with actually stopping its process. Observe both a fresh connection and an existing one. They answer different questions about maintenance and failure.

If the requirement instead reads “send /invoices to accounting and /catalogue to search,” the service choosing the backend needs to inspect HTTP. Use the Azure Load Balancer and Application Gateway comparison to place that decision at the right layer.

Sources and further reading

About the Author: Jian Brant

Founder Jian Brant
Jian Brant is a technology professional and founder of Punch5Media, with extensive experience in web development, enterprise IT, business analysis and digital transformation. Drawing on his experience across public and private sector organizations, he delivers thoroughly researched, practical insights into technology, cybersecurity, software and digital business.

Share this article

Explore technology

Practical, independent technology guides and explanations.

Browse all articles →

Recent articles

Our editorial approach

Clear explanations, practical guidance and responsible research.

Editorial standards →