Home › Studies › AZ-700 › Application Delivery › Load Balancer & Traffic Manager

Load Balancer & Traffic Manager

Standard · Gateway · global tier · rules · probes · SNAT and outbound rules · Traffic Manager routing methods, endpoints, monitoring

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Load Balancer: SKUs, tiers and type

SKU or tierUse it forKey facts
Standard (regional)Layer 4 TCP and UDP traffic across VMs or virtual machine scale sets in a single virtual networkPublic or internal. Backend pool by NIC or IP address. Probes: TCP, HTTP, HTTPS. Zone-redundant or zonal frontends. Closed to inbound flows unless a network security group allows them
GatewayThird-party network virtual appliances (NVAs): firewalls, packet analytics, intrusion detection and prevention, DDoS protectionFrontend IP is private only. Rules can only be HA ports rules. Traffic uses VXLAN. Chained from a Standard public load balancer or a Standard public IP configuration of a VM
Global tier (of Standard)Cross-region load balancing behind one static anycast IPPublic frontend only. Backend pool holds regional load balancers. Layer 4 pass-through, so client IP is preserved. Shares the SLA of Standard
BasicRetired on September 30, 2025Had no SLA and was open to the internet by default. Upgrade to Standard
Public load balancerInternal load balancer
Frontend IP configurationPublic IP address (its SKU must be Standard)Private IP address
TrafficInbound from the internet and outbound for backend VMsInside a virtual network, and from on-premises in a hybrid scenario. Can't accept incoming traffic from the internet
HA ports ruleNot supportedSupported
Outbound rulesSupported on StandardNo outbound connectivity until you enable it explicitly (instance-level public IPs, NAT gateway or an outbound-only configuration)

Rules, probes and distribution

RuleWhat it doesNotes
Load-balancing ruleMaps a frontend IP and port to backend IPs and ports for all instances in the poolInbound only. Needs a health probe. Distribution is per flow
HA ports ruleA load-balancing rule with protocol All and port 0: balances all TCP and UDP flows on all portsInternal Standard load balancer only. For NVAs. Not intended for typical web workloads
Inbound NAT ruleForwards a frontend IP and port to one specific VM or instance (port forwarding)Doesn't need a health probe. Same hash-based distribution
Outbound ruleConfigures outbound NAT (SNAT) for all instances in the backend poolStandard public load balancer only

Health probes

ProtocolHealthy whenFails when
TCPThe three-way TCP handshake completes on the portThe listener doesn't respond in time, or the instance sends a TCP reset
HTTPThe instance answers the HTTP GET (relative path) with status 200Any other status code (403, 404, 500 and so on), no response in time, or a TCP reset
HTTPSSame as HTTP, with TLS addedSame as HTTP. Needs certificates with a minimum SHA256 signature hash in the whole chain

Distribution mode, idle timeout, TCP reset, floating IP

Session persistence (portal)CLI valueTuple
None (hash-based), the defaultDefaultFive-tuple
Client IPSourceIPTwo-tuple: source IP and destination IP
Client IP and protocolSourceIPProtocolThree-tuple: source IP, destination IP and protocol type

Outbound rules and SNAT

Method (priority order)Port allocationProduction-grade?
1. NAT gateway on the subnetDynamic, explicitYes. Best. It takes precedence over every other method
2. Public IP on the VMStatic, explicitYes. Takes precedence over load balancer methods
3. Load balancer frontend with outbound rulesStatic, explicitYes, but not at scale
4. Load balancer frontend without outbound rulesStatic, implicitNo
5. Default outbound accessImplicitNo. Avoid for production

NAT gateway takes precedence over load balancer outbound rules and instance-level public IPs, and its idle timeout applies. Learn recommends NAT gateway for scalable outbound connectivity.

Inbound NAT, Gateway Load Balancer and the global tier

Inbound NATVersion 1 (single VM)Version 2 (backend pool)
TargetOne VM, 1:1 port mapping (SSH or RDP to individual VMs)The whole backend pool. A frontend port range is preallocated from the first port and the maximum number of machines
ScalingPer-VM ruleScale up adds mappings automatically; scale down keeps existing mappings. If the range is too small, scale-up is blocked
Portal typeAzure Virtual Machine with a target VMBackend pool with a target backend pool
StatusFully supportedRecommended for multiple VMs or scale sets

Traffic Manager: routing methods

Traffic Manager is a DNS-based load balancer. It answers DNS queries with an endpoint; clients then connect to that endpoint directly. It isn't a proxy or a gateway and doesn't see the traffic.

MethodPicksDetails
PriorityThe highest-priority available endpointPriority is 1 to 1000; lower is higher priority; values can't repeat. Failover pattern
WeightedA random available endpoint by weightWeight 1 to 1000, default 1. Gradual upgrades, migration, cloud-bursting. DNS caching can skew results when few clients or resolvers are involved
PerformanceThe endpoint with the lowest network latencyUses the Internet Latency Table and the IP of the recursive resolver. External and nested endpoints need a location. Same-region endpoints share traffic evenly
GeographicThe endpoint mapped to the query's regionRegion levels: World, regional grouping, country/region, state/province (Australia, Canada, USA). A region maps to one endpoint; the lowest granularity wins; no mapping returns NODATA
MultivalueAll healthy endpoints, up to a configured maximum (10)Endpoints must be External and given as IPv4 or IPv6 addresses. Client can retry another IP
SubnetThe endpoint mapped to the source IP rangeCIDR or range, unique and non-overlapping. An endpoint with no range is the fallback; without one, undefined ranges get NODATA

Traffic Manager: endpoints, monitoring, nesting and DNS

Endpoint typeUsed forNotes
AzureServices hosted in Azure: PaaS cloud services, Web Apps, Web App slots, PublicIPAddress resourcesA public IP needs a DNS name. Web Apps must be Standard SKU or higher, one per Azure region per profile
ExternalIPv4/IPv6 addresses, FQDNs, or services outside AzureIP address endpoints can only be External. Can be mixed with Azure endpoints, but not IP and domain-name externals with each other or IP externals with Azure endpoints
NestedA child profile added to a parent profileMinChildEndpoints (default 1) sets how many healthy child endpoints keep the child up
Monitoring settingValue
ProtocolHTTP, HTTPS or TCP. HTTPS checks only that a certificate is present, not that it is valid
PathRequired for HTTP and HTTPS; an error with TCP
Probing interval30 seconds (default) or 10 seconds (fast probing, priced separately)
Tolerated failures0 to 9; default 3
Timeout5 to 10 seconds for a 30-second interval (default 10); 5 to 9 seconds for 10 seconds (default 9)
Expected status codesDefault 200; up to eight ranges
Custom headersUp to eight header:value pairs, at profile or endpoint level

CLI and PowerShell

TaskAzure CLIPowerShell
Create a zone-redundant Standard public IPaz network public-ip create --resource-group load-balancer-cli-rg --name lb-frontend-ip --sku Standard --zone 1 2 3New-AzPublicIpAddress @publicip
Create a Standard public load balanceraz network lb create --resource-group load-balancer-cli-rg --name load-balancer --sku Standard --public-ip-address lb-frontend-ip --frontend-ip-name lb-frontend --backend-pool-name lb-backend-poolNew-AzLoadBalancer @loadbalancer
Create a Standard internal load balanceraz network lb create --resource-group load-balancer-cli-rg --name load-balancer --sku Standard --vnet-name lb-vnet --subnet backend-subnet --backend-pool-name lb-backend-pool --frontend-ip-name lb-frontend-
Create a health probeaz network lb probe create --resource-group load-balancer-cli-rg --lb-name load-balancer --name lb-health-probe --protocol tcp --port 80New-AzLoadBalancerProbeConfig @probe
Create a load-balancing rule (outbound SNAT off, TCP reset on)az network lb rule create --resource-group load-balancer-cli-rg --lb-name load-balancer --name lb-HTTP-rule --protocol tcp --frontend-port 80 --backend-port 80 --frontend-ip-name lb-frontend --backend-pool-name lb-backend-pool --probe-name lb-health-probe --disable-outbound-snat true --idle-timeout 15 --enable-tcp-reset trueNew-AzLoadBalancerRuleConfig @lbrule -EnableTcpReset -DisableOutboundSNAT
Change the distribution mode of a rule (then Set-AzLoadBalancer -LoadBalancer $lb)az network lb rule update --lb-name myLoadBalancer --load-distribution Default --name myHTTPRule --resource-group myResourceGroupLB$lb.LoadBalancingRules[0].LoadDistribution = 'default'
Check whether a load balancer uses Inbound NAT Poolsaz network lb inbound-nat-pool list -g MyResourceGroup --lb-name MyLoadBalancer$slb.InboundNatPools
Create an inbound NAT rule (version 2) on the backend poolaz network lb inbound-nat-rule create -g MyResourceGroup --lb-name MyLoadBalancer -n MyNatRule --protocol Tcp --frontend-port-range-start 201 --frontend-port-range-end 500 --backend-port 22 --backend-address-pool MybackendPool-
Create a Traffic Manager profile (Priority)az network traffic-manager profile create --name $mytrafficmanagerprofile --resource-group myResourceGroup --routing-method Priority --path '/' --protocol "HTTP" --unique-dns-name $mytrafficmanagerprofile --ttl 30 --port 80-
Add an Azure endpoint to a profileaz network traffic-manager endpoint create --name $mywebappeastus --resource-group myResourceGroup --profile-name $mytrafficmanagerprofile --type azureEndpoints --target-resource-id $App1ResourceId --priority 1 --endpoint-status Enabled-
Disable a Traffic Manager endpointaz network traffic-manager endpoint update --name $mywebappeastus --resource-group myResourceGroup --profile-name $mytrafficmanagerprofile --type azureEndpoints --endpoint-status Disabled-

Exam Tips

Tick each tip once you can answer it without looking.

“Distribute TCP or UDP traffic across VMs privately inside a virtual network, including from on-premises” → A Standard internal load balancer (private frontend IP). Trap: Application Gateway works at layer 7 for web traffic, and Traffic Manager is DNS-based and can't route to endpoints in a private network. An internal load balancer can't take traffic from the internet.

“An old deployment still uses Basic Load Balancer” → Basic was retired on September 30, 2025. Upgrade to Standard: it needs downtime and is one-way. Use the AzureBasicLoadBalancerUpgrade module. Trap: You can't mix Basic and Standard SKUs or public IPs, and a subscription move of a Standard load balancer isn't supported.

“Backend VMs behind a Standard public load balancer need controlled outbound internet access, with fixed public IPs and enough SNAT ports” → An outbound rule (set disableOutboundSnat on the load-balancing rule). For scale, a NAT gateway is the best method. Trap: Default port allocation gives at most 1,024 ports per instance and risks exhaustion. Outbound rules are ignored for VMs with an instance-level public IP. Global tier has no outbound rules.

“Several rules must send to the same backend port on the same VMs (clusters, multiple TLS endpoints)” → Enable Floating IP on each rule and add a loopback with the frontend IP in the guest OS. Trap: Without Floating IP the VM sees its own IP and can't tell the frontends apart. Different backend ports need no Floating IP.

“Balance all ports of a pool of firewall appliances with one rule” → An HA ports rule (protocol All, port 0) on an internal Standard load balancer. Trap: Public load balancers don't support HA ports, and they aren't meant for typical web workloads.

“Insert third-party NVAs transparently in the path of a public endpoint, without UDRs” → Gateway Load Balancer, chained from a Standard public load balancer frontend or a Standard public IP configuration. Trap: Its frontend can't be a UDR next hop and its frontend is private only. It doesn't work with the Global tier.

“One static anycast IP in front of Standard public load balancers in several regions” → The global tier load balancer (backend pool of regional load balancers; layer 4; preserves client IP). Trap: It has a public frontend only and no outbound rules, an internal load balancer can't be in its pool, and you can't upgrade a regional load balancer, only create a new global one. Traffic Manager is DNS-based and returns different endpoints.

“Backend instances are marked down although the app runs; an NSG is applied” → Allow 168.63.129.16 (the AzureLoadBalancer tag) and check the probe port, protocol and path (HTTP needs 200). Trap: Blocking the probe source makes the instance show as down; HTTP/HTTPS probes fail on any status other than 200.

“RDP or SSH to each instance of a scale set through the load balancer on a different frontend port” → An inbound NAT rule version 2 targeting the backend pool. Trap: Inbound NAT Pools retire on September 30, 2027, and you can't create new ones from November 15, 2026. NAT rules don't need a health probe.

“Keep a client on the same VM; or avoid silent drops of idle connections” → Session persistence Client IP (two-tuple) or Client IP and protocol (three-tuple); enable TCP reset for idle timeouts. Trap: The default is five-tuple hash-based. Idle timeout isn't supported for UDP rules, and without TCP reset an idle flow is dropped silently.

“Traffic Manager: HTTP errors, sticky sessions, or inspecting traffic” → Traffic Manager works at the DNS level: clients connect to the endpoint directly. It isn't a proxy, can't track clients and can't do sticky sessions. Trap: Don't expect a Traffic Manager IP address or HTTP-level features: use Application Gateway or Front Door for those.

“Primary site with ordered backups, or a gradual rollout of a new version” → Priority for failover (1 to 1000, lowest value first); Weighted for gradual rollout (weight 1 to 1000, default 1). Trap: Priority values can't repeat. DNS caching can skew weighted results when few resolvers are involved.

“Send users to the endpoint with the lowest latency” → Performance routing (Internet Latency Table, based on the recursive resolver's IP). Trap: Closest means lowest network latency, not geographic distance. External and nested endpoints need a location.

“Keep users from a country on endpoints in that country; or send a corporate IP range to a test site” → Geographic (region to endpoint) and Subnet (IP range to endpoint) routing. Trap: Geographic maps a region to one endpoint and returns NODATA for unmapped regions; add a World endpoint. Subnet needs a fallback endpoint or undefined ranges get NODATA.

“Return several healthy IP addresses so the client can retry” → Multivalue routing: External endpoints with IPv4 or IPv6 addresses only, up to 10 returned. Trap: Azure endpoints and FQDN endpoints don't fit Multivalue. The set returned can differ between queries.

“Default Traffic Manager health check settings” → 30-second interval, 3 tolerated failures, 10-second timeout, expected status 200; HTTP, HTTPS or TCP. Trap: Fast probing (10 seconds) has its own pricing, and HTTPS checks only that a certificate exists, not that it is valid. All endpoints in a profile share these settings.

“Different monitoring settings per endpoint, or Weighted routing inside Performance routing” → Nested profiles: a child profile as an endpoint of a parent (MinChildEndpoints default 1). Trap: You can't combine Weighted and Performance in one profile, and the parent doesn't probe the child directly.

“Point contoso.com (zone apex) at a Traffic Manager profile” → Traffic Manager Linked Records or an Azure DNS alias record. Trap: DNS standards don't allow a CNAME at the apex. A CNAME works for names such as www.contoso.com.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Application Delivery overviewApplication Gateway →