Route web requests with Application Gateway
Connect listener, routing rule, backend settings and probe into a working regional request path.
Route web requests with Application Gateway
Work through the decision
A regional application sends /tickets to one service and /images to another. Users reach the TLS listener, but /tickets returns a gateway error after a backend certificate rotation. Which checks distinguish routing from backend health?
Check your reasoning
Start at the listener and verify the host, port, frontend certificate and request-routing rule. Follow the path map into the selected backend pool and HTTP settings. Inspect backend health and probe status. With backend TLS, check trust, hostname and the endpoint’s certificate chain. A successful frontend handshake only validates the client-facing leg.
Compare the choices
- Listener
- Bind a frontend address, port, protocol and applicable host or certificate information to receive a request. Separate listeners can serve distinct sites.
- Path-based routing rule
- Connect a listener and path map to the correct backend pool and settings. Test default and explicit paths with representative hosts.
- Backend HTTP settings
- Set the backend protocol, port and applicable host or TLS behavior for forwarded requests. Match the actual server’s expectations.
- Custom health probe
- Specify a representative host, path and acceptable response conditions. Ensure the probe measures real readiness and matches the backend’s configuration.
Test the decision
If /images remains healthy, compare the affected pool’s path, port and host header with its known health endpoint. Use rewrites only when the application expects changed paths or headers. For variable demand, configure a suitable v2 deployment with scale bounds and observe capacity during representative peaks.
Practice the guide skills
- Extract hostnames, TLS requirements and regional backend paths from a web application brief. Watch 1:51:24
- Choose the regional application that needs cookie affinity or path-based routing. Watch 1:51:24 · Continue at 1:53:13
- Pick capacity limits for autoscaling and explain the minimum instances needed at steady load. Watch 1:51:42 · Continue at 1:51:54
- Set a backend address type and membership for two application replicas. Watch 1:53:54
- Specify a probe path, host header and accepted status range that represent readiness. Watch 1:54:21
- Match listener hostname, frontend port and certificate to the public request. Watch 1:52:22
- Draw the listener-to-backend mapping for a basic rule and a path-based rule. Watch 1:52:46
- Set backend protocol, timeout, host header and affinity to match the origin. Watch 1:54:06
- Verify the frontend certificate and the backend certificate chain and hostname independently. Watch 1:55:23 · Continue at 1:55:35
- Choose a header or path rewrite and trace the request received by the backend. Watch 1:56:01
Official objectives for this lesson
Related lesson · Configure App Service plans, slots and connectivity
Route web requests with Application Gateway quiz
Answer 3 questions. Check each answer for an explanation.