Design and configure Azure Front Door
Design and configure Azure Front Door
200 XP
Azure Front Door is Microsoft’s modern cloud Content Delivery Network (CDN) that provides
fast, reliable, and secure access between your users and your applications’ static and dynamic
web content across the globe. Azure Front Door delivers your content using the Microsoft’s
global edge network with hundreds of global and local POPs distributed around the world
close to both your enterprise and consumer end users.
Many organizations have applications they want to make available to their customers, their
suppliers, and almost certainly their users. The tricky part is making sure those applications are
highly available. In addition, they need to be able to quickly respond while being appropriately
secured. Azure Front Door provides different SKUs (pricing tiers) that meet these requirements.
Let's briefly review the features and benefits of these SKUs so you can determine which option
best suits your requirements.
1 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
A secure, modern cloud CDN provides a distributed platform of servers. This helps minimize
latency when users are accessing webpages. Historically, IT staff might have used a CDN and a
web application firewall to control HTTP and HTTPS traffic flowing to and from target
applications.
If an organization uses Azure, they might achieve these goals by implementing the products
described in the following table
ノ Expand table
2 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
Product Description
Azure Front Door Enables an entry point to your apps positioned in the Microsoft global
edge network. Provides faster, more secure, and scalable access to your
web applications.
Azure Content Delivers high-bandwidth content to your users by caching their content at
Delivery Network strategically placed physical nodes around the world.
Azure Web Helps provide centralized, greater protection for web applications from
Application Firewall common exploits and vulnerabilities.
For a comparison of supported features in Azure Front Door, Review the feature comparison
table.
3 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
configuration all affect the routing process. The following diagram illustrates the routing
architecture:
Incoming match
The following properties determine whether the incoming request matches the routing rule (or
left-hand side):
4 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
These properties are expanded out internally so that every combination of Protocol/Host/Path
is a potential match set.
Route data
Front Door speeds up the processing of requests by using caching. If caching is enabled for a
specific route, it uses the cached response. If there is no cached response for the request, Front
Door forwards the request to the appropriate backend in the configured backend pool.
Route matching
Front Door attempts to match to the most-specific match first looking only at the left-hand
side of the route. It first matches based on HTTP protocol, then Frontend host, then the Path.
• Path matching:
◦ Look for any routing rule with an exact match on the Path.
◦ If no exact match Paths, look for routing rules with a wildcard Path that matches.
◦ If no routing rules are found with a matching Path, then reject the request and return a
400: Bad Request error HTTP response.
If there are no routing rules for an exact-match frontend host with a catch-all route Path (/
*), then there will not be a match to any routing rule.
Azure Front Door redirects traffic at each of the following levels: protocol, hostname, path,
query string. These functionalities can be configured for individual microservices since the
redirection is path-based. This can simplify application configuration by optimizing resource
usage and supports new redirection scenarios including global and path-based redirection.
5 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
Redirection types
A redirect type sets the response status code for the clients to understand the purpose of the
redirect. The following types of redirection are supported:
ノ Expand table
301 Moved Indicates that the target resource has been assigned a new
permanently permanent URI. Any future references to this resource will use
one of the enclosed URIs. Use 301 status code for HTTP to
HTTPS redirection.
6 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
the client should continue to use the effective request URI for
future requests.
308 Permanent Indicates that the target resource has been assigned a new
redirect permanent URI. Any future references to this resource should
use one of the enclosed URIs.
Redirection protocol
You can set the protocol that will be used for redirection. The most common use case of the
redirect feature is to set HTTP to HTTPS redirection.
• HTTPS only: Set the protocol to HTTPS only, if you're looking to redirect the traffic from
HTTP to HTTPS. Azure Front Door recommends that you should always set the redirection
to HTTPS only.
• HTTP only: Redirects the incoming request to HTTP. Use this value only if you want to
keep your traffic HTTP that is, non-encrypted.
• Match request: This option keeps the protocol used by the incoming request. So, an
HTTP request remains HTTP and an HTTPS request remains HTTPS post redirection.
Destination host
As part of configuring a redirect routing, you can also change the hostname or domain for the
redirect request. You can set this field to change the hostname in the URL for the redirection or
otherwise preserve the hostname from the incoming request. So, using this field you can
redirect all requests sent on https://www.contoso.com/ * to https://www.fabrikam.com/ *.
Destination path
7 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
For cases where you want to replace the path segment of a URL as part of redirection, you can
set this field with the new path value. Otherwise, you can choose to preserve the path value as
part of redirect. So, using this field, you can redirect all requests sent to https://
www.contoso.com/ * to https://www.contoso.com/redirected-site .
Destination fragment
The destination fragment is the portion of URL after '#', which is used by the browser to land
on a specific section of a web page. You can set this field to add a fragment to the redirect
URL.
The powerful part of URL rewrite is that the custom forwarding path will copy any part of the
incoming path that matches to a wildcard path to the forwarded path.
8 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
each Front Door environment periodically sends a synthetic HTTP/HTTPS request to each of
your configured backends. Front Door then uses these responses from the probe to determine
the "best" backend resources to route your client requests.
Since Front Door has many edge environments globally, health probe volume for your
backends can be quite high - ranging from 25 requests every minute to as high as 1200
requests per minute, depending on the health probe frequency configured. With the default
probe frequency of 30 seconds, the probe volume on your backend should be about 200
requests per minute.
Front Door supports the following HTTP methods for sending the health probes:
GET: The GET method means retrieve whatever information (in the form of an entity) is
identified by the Request-URI.
HEAD: The HEAD method is identical to GET except that the server MUST NOT return a
message-body in the response. Because it has lower load and cost on your backends, for new
Front Door profiles, by default, the probe method is set as HEAD.
ノ Expand table
Response Description
Determining A 200 OK status code indicates the backend is healthy. Everything else is
Health considered a failure. If for any reason (including network failure) a valid HTTP
response isn't received for a probe, the probe is counted as a failure.
9 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
Response Description
Measuring Latency is the wall-clock time measured from the moment immediately before
Latency the probe request is sent to the moment the last byte of the response is
received. A new TCP connection is used for each request, so this measurement
isn't biased towards backends with existing warm connections.
Azure Front Door uses the same three-step process below across all algorithms to determine
health.
• This selection is done by looking at the last n health probe responses. If at least x
are healthy, the backend is considered healthy.
• n is configured by changing the SampleSize property in load-balancing settings.
• x is configured by changing the SuccessfulSamplesRequired property in load-
balancing settings.
3. For the sets of healthy backends in the backend pool, Front Door additionally measures
and maintains the latency (round-trip time) for each backend.
If you have a single backend in your backend pool, you can choose to disable the health
probes reducing the load on your application backend. Even if you have multiple backends in
the backend pool but only one of them is in enabled state, you can disable health probes.
• No extra cost: There are no costs for certificate acquisition or renewal and no extra cost
for HTTPS traffic.
10 of 11 30/10/2024, 3:59 PM
Design and configure Azure Front Door - Training | Microsoft Learn https://learn.microsoft.com/en-us/training/modules/load-balancing-https-...
• Simple enablement: One-click provisioning is available from the Azure portal. You can
also use REST API or other developer tools to enable the feature.
• Complete certificate management: All certificate procurement and management is
handled for you. Certificates are automatically provisioned and renewed before
expiration, which removes the risks of service interruption because of a certificate
expiring.
You can enable the HTTPS protocol for a custom domain that's associated with your Front
Door under the frontend hosts section.
For more information on how to configure HTTPS on Front door, see Tutorial - Configure
HTTPS on a custom domain for Azure Front Door | Microsoft Learn.
1. What is the difference between Azure Front Door and Azure Application Gateway? *
Front Door uses health probes to monitor the health of backends, Application
Gateway does not.
2. Front Door route rules determine whether the incoming request matches the routing rule
and route traffic accordingly. What properties are matched? *
11 of 11 30/10/2024, 3:59 PM