Azure Application Gateway: The Ultimate Survival Guide

An Azure Application Gateway can route incoming HTTPS requests to the right backend pool, terminate TLS, apply application-layer routing and, with a WAF tier, inspect requests for certain attack patterns. But an operational gateway is not synonymous with a working application. A listener may accept connections while its backend probes fail, private DNS resolves incorrectly or a WAF rule blocks legitimate requests.

There is also an important lifecycle correction for anyone following an older tutorial: Application Gateway v1 (Standard and WAF) retired on April 28, 2026. Microsoft no longer supports v1; v2 is the current family, with Standard_v2 and WAF_v2. An article that compares four equally current tiers can steer a new deployment into obsolete guidance. The rest of this explanation focuses on v2, while identifying what existing v1 users need to migrate.

Choose Application Gateway for an HTTP-level routing problem

Application Gateway is a regional, layer-7 web traffic load balancer. It can make routing decisions using a request’s host name or URL path; for example, requests for /api/ can go to one backend pool while image requests go to another. Azure Load Balancer solves a different, layer-4 transport problem, and global edge products such as Front Door address a different architectural scope. Start from the traffic and trust boundaries rather than choosing a product because it has the word ‘gateway’ in its name.

Identify whether clients reach the service from the public internet or an internal network, which hostnames they use, how TLS should terminate, where backend applications live and which team owns their health endpoints. A strong design traces one real request through listener, rule, backend setting, pool and application response. The gateway configuration is not a substitute for confirming the application itself is healthy.

Use the v2 SKUs as the starting point. Standard_v2 provides current routing and scaling capabilities; WAF_v2 adds the managed firewall feature set. Security protection still depends on correct rule configuration, policy tuning and the condition of the underlying application. Buying a WAF tier does not mean the application is immune to attacks.

Model the listener, rule, backend setting and pool explicitly

The listener accepts traffic at a configured frontend IP, protocol, port and, where applicable, host name. A rule maps requests from that listener to a backend pool or more specific path-based destinations. Backend settings specify how the gateway communicates with those targets, including protocol and port. The backend pool contains the addresses or supported resources that actually receive traffic.

For a multi-site deployment, ensure the hostnames and certificates are mapped to the correct listeners. Route priority and path matching should be reviewed with the actual application URL set: a catch-all rule placed incorrectly can make an otherwise valid specific route unreachable. Redirects and rewrites are useful features, but they deserve an explicit test because they change what the client or backend sees.

A pool that lists a VM or private IP does not prove that the machine is listening on the expected port, that its TLS certificate is valid or that the application responds to the expected host header. Verify all three separately. A successful network connection is only one layer of application delivery.

Treat backend health probes as production logic

Application Gateway uses health probes to decide which backend instances are eligible for traffic. Default probes have predefined behavior; custom probes can set the path, host name, protocol, interval and expected response when supported. Prefer a health endpoint that shows the application is capable of serving relevant requests without overloading the backend or requiring a complex end-to-end transaction on every probe.

A custom probe must be associated with the correct backend settings and listener rule to have the intended effect. A probe aimed at / may report failure when the application expects a special host header, performs an authentication redirect, or has moved its health endpoint. Inspect the backend health detail and compare the exact probe request with a manual request before changing the gateway SKU or opening network access.

Health is an operational contract, not a guarantee. An endpoint might return HTTP 200 while a downstream payment service is unavailable. Conversely, a transient probe failure could remove a healthy application instance from rotation. Monitor both gateway-level health and representative business transactions, and test how the service behaves when every member is unhealthy.

Trace private routing, NSG rules and DNS separately

Application Gateway is deployed in a dedicated subnet. The backend may be in the same virtual network, a peered network or another supported reachable location. Confirm source and destination addresses, next hops, effective network security rules and DNS resolution. The gateway can be configured correctly yet fail because a private hostname resolves to a public address or a route sends traffic toward a device that drops it.

Network filtering is a distinct enforcement layer: Azure network security groups and application security groups control permitted flows and workload grouping; the gateway’s own HTTP routing rules do not replace those decisions. Evaluate the service’s actual source/destination and port instead of creating a broad allow-all rule merely to turn a health probe green.

If the backends are across virtual networks, Azure VNet peering may provide the private route, but DNS, effective routes and non-transitive network topology still need explicit verification. A connected peering object is not evidence that the gateway can resolve and reach its exact backend target. Record the name lookup and path from the gateway’s network context when diagnosing failures.

Plan TLS at both ends of the gateway

TLS may terminate at the gateway and be re-established to a backend, or another supported configuration may be used depending on application requirements. Decide which host name the backend expects, which certificates must be trusted, and whether end-to-end encryption is required by policy. A browser showing a valid external certificate does not prove the gateway trusts or verifies the backend’s identity correctly.

Certificate expiry, private CA chains, SNI/host-header behavior and key rotation deserve a named owner and a test date. A migration between gateway versions or backend platforms is a good time to rehearse certificate replacement in a controlled environment. Avoid a temporary insecure backend configuration becoming permanent simply because it makes a deployment test pass.

HTTP-to-HTTPS redirects can reduce accidental plaintext access, but test redirect loops and the application’s perception of the original scheme. An application that assumes a direct TLS connection may generate the wrong links behind a proxy unless forwarding headers and trust boundaries are configured safely.

Use WAF as a tuned control, not an application warranty

WAF_v2 can apply managed rules and custom policies to supported HTTP traffic. Determine whether detection or prevention behavior matches the deployment stage, then measure false positives using real representative requests. A managed rule can block a legitimate payload; an exception introduced without scope can let malicious traffic through more broadly than intended.

For each proposed WAF exclusion, record the rule that triggered, the business transaction affected, the narrowly required exception and a review date. Test normal and malicious sample traffic under authorization. The gateway may be one useful defensive layer, but secure authentication, input validation, dependency updates and application monitoring remain the application’s responsibility.

Monitor WAF decisions alongside gateway access and backend logs. If a customer reports a rejected request, determine whether the block occurred at the WAF, the gateway route, the backend or an upstream component. The response status alone cannot always identify the responsible boundary.

Understand capacity, cost and regional failure modes

Current v2 gateways support autoscaling and regional resilience features, but that does not make one gateway a globally available application. Establish where the app is deployed, which zones the configuration supports, what happens if a backend dependency fails, and how clients reach a secondary region if regional continuity is required. Separate gateway resilience from end-to-end application recovery.

Review the active pricing model for the selected tier, capacity and traffic instead of copying an old fixed price from a v1 tutorial. High traffic, complex WAF policy and a large number of listeners may affect operational cost or limits. Model realistic requests and monitor the current service metrics after deployment. Do not claim a gateway has infinite scale because the product offers autoscaling.

Set alerts on backend health, request errors, latency, unhealthy-host count, capacity and WAF actions that matter to the service. Retain logs under an explicit policy and validate that dashboards receive data from the deployed gateway, not an old resource left over from a migration. A graph that silently stops updating after replacement is not an observability strategy.

Migrate existing v1 gateways deliberately

Microsoft retired Application Gateway v1 on April 28, 2026, and warns that remaining v1 resources face disruption as supporting infrastructure is decommissioned. If an organization still has v1 resources, treat this as an active migration risk; do not assume continued support or SLA coverage because a resource remains visible in the portal.

The v1-to-v2 migration involves configuration and client traffic, not merely selecting a new SKU on an unchanged production object. Inventory listeners, certificates, routing rules, backend settings, WAF policy, diagnostics and client dependencies. Prepare the supported migration procedure and rehearse a staged traffic switch with a documented reversal path where practical.

Verify old and new gateway behavior using the same hostnames, representative paths and backend transaction tests. Track any configuration changes introduced during migration so a false positive, certificate mismatch or changed probe cannot hide in a general ‘upgrade completed’ status. Only retire the old gateway when traffic and monitoring evidence support that decision.

Operate the request path, not the product diagram

For an Application Gateway incident, the fastest starting point is one failing request: which client host and URL, what status and correlation data, which listener and rule, what backend was selected and how did its health probe behave? Work inward through layers rather than editing several security settings at once. A precise failure record makes every change reversible and every hypothesis testable.

A well-designed Application Gateway deployment is one whose routing, security, health and recovery behavior can be explained and exercised by its operators. Current v2 features are valuable when they solve that practical delivery problem. They do not replace network policy, valid application behavior, recoverability or disciplined evidence during an incident.

img