PSHarriJaakkonen:~/Blog/Posts>cat ./az-700-part-06-load-balancer-traffic-manager.html

AZ-700 Part 6: Load Balancer, Traffic Manager, and Gateway Load Balancer

AZ-700 Part 6: Load Balancer, Traffic Manager, and Gateway Load Balancer

Back to AZ-700 index

Service Selection

ServiceLayerUse when
Azure Load BalancerLayer 4You need TCP/UDP balancing for VMs or private services.
Traffic ManagerDNSYou need DNS-based global distribution across endpoints.
Gateway Load BalancerLayer 3/4 insertionYou need transparent NVA insertion in the data path.

Azure Load Balancer

  • Standard Load Balancer is the normal production choice.
  • Public Load Balancer exposes services to the internet.
  • Internal Load Balancer exposes private services inside a VNet.
  • Regional Load Balancer handles traffic in one region.
  • Cross-region Load Balancer distributes traffic across regional load balancers.

Configuration Objects

  • Frontend IP configuration: public or private address where clients connect.
  • Backend pool: targets that receive traffic.
  • Health probe: determines backend availability.
  • Load-balancing rule: maps frontend traffic to backend pool and probe.
  • Inbound NAT rule: maps a frontend port to a backend VM port.
  • Outbound rule: controls outbound SNAT for backend instances.

Traffic Manager

Traffic Manager returns DNS answers based on routing method and endpoint health. It does not proxy traffic. Clients connect directly to the returned endpoint.

Routing methodUse case
PriorityActive-passive failover.
WeightedControlled traffic distribution.
PerformanceRoute users to lowest-latency endpoint.
GeographicRoute by user geography or compliance boundary.
SubnetRoute specific client IP ranges to specific endpoints.
MultivalueReturn multiple healthy endpoints.

Gateway Load Balancer

Gateway Load Balancer enables transparent chaining to NVAs. It is used when inspection appliances must be inserted without changing consumer routing too much. Know tunnel interfaces, backend pool NVAs, and chaining with Standard Load Balancer or public IP resources.

Troubleshooting

  • If traffic fails, check health probe first.
  • Check NSGs on backend NICs and subnets.
  • Check backend service listening port.
  • Check SNAT exhaustion for outbound-heavy workloads.
  • For Traffic Manager, remember DNS caching and TTL.

Feature Deep Dive

Health Probes

Health probes decide whether a backend receives traffic. A backend can be perfectly healthy from an operating system point of view and still be removed from rotation if the probe path, port, protocol, or response does not match. For load balancer questions, probe behavior is often the clue.

Outbound SNAT

Azure Load Balancer can provide outbound connectivity through outbound rules, but NAT Gateway is usually the cleaner subnet-level outbound design. If a question focuses on stable outbound IPs and high-scale outbound connections, think NAT Gateway. If the outbound behavior is tied to a load balancer backend pool, outbound rules may be part of the design.

Traffic Manager Is DNS

Traffic Manager does not sit in the data path. It answers DNS queries with the endpoint it selects. That means client DNS caching and TTL affect failover speed. If the question needs edge acceleration, TLS termination, WAF, or HTTP proxying, Traffic Manager is not enough.

Gateway Load Balancer

Gateway Load Balancer solves appliance insertion. It keeps consumers simple while traffic is tunneled to NVA instances. This is especially useful when third-party firewalls, IDS/IPS, or packet inspection tools must inspect traffic without each workload owning complex routing.

Exam Clues

WordingLikely answer
TCP or UDP backend poolAzure Load Balancer
DNS-based failover between regionsTraffic Manager
Insert virtual appliance transparentlyGateway Load Balancer
Stable outbound IP for subnetNAT Gateway

Scenario Workshop: Healthy VM, Unhealthy Probe

Scenario: A backend VM is running, but the load balancer marks it unhealthy. The exam wants you to separate compute health from probe health. Load balancers do not care that the VM is powered on. They care whether the configured probe receives the expected response.

Probe failure causeExampleFix
Wrong portProbe checks 80 but app listens on 8080.Change probe or app listener.
NSG blocks probeSubnet NSG denies AzureLoadBalancer source.Allow required probe traffic.
App returns wrong statusHTTP probe expects 200 but app redirects or errors.Use correct path and expected response behavior.
Guest firewall blocksWindows/Linux firewall denies probe port.Open local firewall.

Load Balancer Design Checklist

  • Choose public or internal frontend.
  • Choose regional or cross-region design.
  • Use Standard SKU for production and zone-aware designs.
  • Define backend pool membership and health probe.
  • Configure load-balancing rules for service traffic.
  • Configure inbound NAT only for management scenarios that cannot use Bastion or safer patterns.
  • Configure outbound rules only when Load Balancer owns the outbound design; otherwise consider NAT Gateway.

Previous | Next: Part 7 - Application Gateway and Front Door