Cloud service · Azure · Updated

Azure Front Door - Azure Front Door is a global HTTP(S) application delivery service that combines a content delivery network, application-layer load balancing, and edge security.

In short

Azure Front Door provides a public entry point for websites, APIs, and static content hosted in Azure or on other platforms. It routes requests across healthy origins, caches eligible responses, terminates TLS at the edge, and applies configurable routing and web application firewall policies.

Cloud Services Hub →

10 key features of Azure Front Door

01
Global application-layer routing

Route requests by hostname and URL path to origin groups spanning regions or hosting platforms. Use origin priorities, weights, and latency settings to implement failover and traffic distribution.

02
Health-based origin selection

HTTP(S) health probes help Front Door select available origins. Provide a lightweight readiness endpoint and test failure behavior, including what happens when an entire origin group is unhealthy.

03
Edge caching and compression

Cache eligible responses near clients and compress supported response types to reduce origin load and transferred bytes. Configure query-string handling and cache lifetimes explicitly, especially for APIs and frequently updated assets.

04
Custom domains and TLS

Serve applications through custom domains using managed certificates or certificates stored in Azure Key Vault. Configure HTTPS to origins separately; Premium also supports mutual TLS client authentication with modes controlling certificate requirements and validation.

05
Web application firewall

Apply custom match and rate-limit rules, with managed rule sets and bot protection available on Premium. Premium supports WAF policy association at profile, domain, and route scopes, enabling shared baseline protection and targeted controls for sensitive paths.

06
Private origin connectivity

Premium can connect to supported origins through Private Link, reducing exposure of application backends. Approve the private endpoint connection and confirm origin-type and regional support before disabling public origin access.

07
Declarative request and response rules

Use rule sets for redirects, URL rewrites, header modifications, cache behavior, and origin-group overrides. For example, redirect HTTP clients to HTTPS and route an API path to a separate origin group.

08
Programmable edge actions

Execute lightweight JavaScript during client request and response processing. Use edge actions for scenarios such as A/B testing, dynamic origin selection, or request filtering, and evaluate execution limits before moving application logic to the edge.

09
Native gRPC routing in preview

Standard and Premium support native gRPC in public preview, including unary and streaming calls. Enable gRPC on the route and every origin in its origin group; HTTPS and HTTP/2 are required on both client and origin connections.

10
Traffic and security observability

Use metrics and diagnostic logs to investigate request failures, origin health, caching, and WAF decisions. WAF Insights brings WAF logs and metrics into interactive dashboards and correlates investigations with access logs using tracking references.

Where Azure Front Door is used

  1. 01
    Multi-region web application entry point

    Expose a single application hostname while distributing requests across regional deployments. Configure health probes and origin priorities for active-passive recovery or distribute traffic across eligible active regions.

  2. 02
    Static asset and download delivery

    Cache images, scripts, stylesheets, and public downloads from storage or web origins. Use versioned URLs and appropriate cache lifetimes to reduce origin requests without delaying application updates.

  3. 03
    Centralized API ingress

    Route API paths to separate backends and apply consistent TLS and WAF controls. Disable caching for sensitive responses and retain application-level authorization even when using optional edge authentication capabilities.

  4. 04
    Public applications with private backends

    Use Premium with Private Link to expose a public edge endpoint while keeping supported application origins off the public internet. Confirm private connectivity works before removing public access.

  5. 05
    Multitenant application delivery

    Associate tenant domains or wildcard subdomains with a shared profile and route requests to the appropriate application deployment. Plan certificate handling, domain validation, and service limits as tenant counts grow.

  6. 06
    Incremental migrations and controlled releases

    Keep a stable public hostname while moving paths or traffic between legacy and replacement origins. Use weighted routing for controlled exposure, accounting for session affinity and the fact that weights are not exact per-user release assignments.

How Azure Front Door is priced

Standard tier

Standard uses a recurring profile base fee plus metered traffic and request charges. It suits deployments needing global delivery, routing, caching, and custom WAF rules without Premium-only capabilities; applicable WAF charges should be included in estimates.

Premium tier

Premium has a higher recurring profile base fee and metered usage charges, with managed WAF capabilities and Private Link origin connectivity among its tier differentiators. Compare total costs against Standard plus required security controls rather than comparing base fees alone.

Usage-based delivery and related costs

Charges depend on request volume, edge-to-client data transfer, and applicable edge-to-origin transfer, with rates varying by billing zone and tier. Origin compute, storage operations, log ingestion, and other connected services can add costs; use current pricing meters and representative traffic estimates rather than a single per-GB assumption.

Services Azure Front Door works with

A common architecture uses Front Door as the public application endpoint, Azure DNS for domain records, and App Service or AKS for regional application origins. Configure separate origin groups when web pages, APIs, and static assets have different routing or availability requirements. API Management can sit behind the API route to enforce API-specific policies, while Blob Storage serves cacheable assets through a dedicated hostname or path.

Secure the origin connection independently from the client connection. Use HTTPS forwarding with matching hostnames and certificates, and use Key Vault when supplying your own custom-domain certificates. Premium Private Link can remove public exposure for supported origins; otherwise, combine origin network restrictions with validation of the expected Front Door instance. Do not treat possession of an origin URL or a forwarded header as sufficient protection.

Send diagnostics through Azure Monitor and correlate access, health-probe, and WAF activity during incident investigation. Test failover, DNS changes, certificate renewal, and cache invalidation as complete workflows. Manage Front Door and its dependent resources through infrastructure as code so routes, security policies, and origin settings remain consistent across environments.

App Service

Use App Service applications as origins and place regional instances in an origin group. For example, route a public application hostname to web apps in two regions with a dedicated readiness path for probes. Match the origin host header to an accepted application hostname, and restrict direct origin access using access restrictions or supported Premium Private Link connectivity.

Azure Blob Storage

Use Blob Storage as an origin for public static assets or downloads, with Front Door caching eligible responses at the edge. For example, route an assets hostname to a storage account containing versioned JavaScript and image files. Premium can use Private Link for supported storage origin configurations; Front Door does not automatically grant clients authorization to private blobs.

API Management

Place Front Door ahead of API Management for global routing and edge WAF enforcement while API Management handles API policies and consumer-facing API controls. For example, send the /api/* path to an API Management gateway and other paths to a web application. Configure gateway hostname and TLS settings carefully, and cache API responses only when their authorization and cache semantics permit it.

Azure Key Vault

Store customer-managed custom-domain TLS certificates in Key Vault and grant Front Door's managed identity the required access. For example, use an enterprise-issued certificate for a branded application domain instead of a Front Door-managed certificate. Validate certificate format, permissions, and certificate-update behavior as part of the renewal process.

Azure Monitor

Use Azure Monitor for Front Door metrics, alerts, and diagnostic settings, and send resource logs to a Log Analytics workspace when query-based analysis is required. For example, alert on an increased percentage of origin errors and investigate access logs alongside WAF logs. Configure diagnostic settings explicitly because resource-log collection is not automatic.

Azure DNS

Host public DNS records in Azure DNS to validate custom domains and direct clients to Front Door. For example, create the required validation TXT record and a CNAME for www.contoso.com pointing to the Front Door endpoint. Use an appropriate supported alias configuration for an apex domain, and retain validation records needed for ongoing domain or certificate management.

Azure Kubernetes Service (AKS)

Use an ingress controller or gateway in AKS as the application origin, with Front Door handling global delivery and edge security. For example, route traffic across ingress endpoints in two regional clusters and probe a readiness path exposed by each deployment. Configure public-origin restrictions or a supported Premium Private Link Service architecture rather than assuming Front Door can route directly to arbitrary private cluster addresses.

Azure Advisor

Azure Front Door Standard and Premium surface profile-specific recommendations in Azure Advisor so you can review suggested changes to your deployment.

Azure App Configuration

Azure Front Door can deliver application settings and feature flags from an Azure App Configuration store through its global edge network. The preview integration lets you connect an existing Front Door profile or create one from the configuration store.

Azure Application Gateway

Azure Front Door can send traffic to regional Application Gateways, handling global routing and failover while each gateway routes requests to backends in its virtual network. Front Door Premium can reach a supported gateway origin through Private Link.

Alternatives to Azure Front Door in other clouds

AWS

Amazon CloudFrontAmazon CloudFront

Amazon CloudFront and Azure Front Door both deliver websites and APIs through global edge networks with caching, TLS, and web application firewall protection. CloudFront offers pay-as-you-go and flat-rate plans, while Front Door charges a recurring profile fee plus metered usage.

Compare fact by fact
Azure Front DoorAmazon CloudFront
Billing modelProfile fee + metered usagePay-as-you-go or flat-rate plans
Private origin connectivityPrivate Link on PremiumVPC origins in private subnets
Multitenant setupShared profile + tenant domainsShared config + distribution tenants
Elastic Load Balancing (ELB)Elastic Load Balancing (ELB)

AWS Elastic Load Balancing (ELB), through its Application Load Balancer (ALB), and Azure Front Door both route HTTP(S) requests to healthy backends. ELB also handles TCP and UDP through its Network Load Balancer (NLB), while Front Door focuses on global HTTP(S) delivery across regions and hosting platforms.

Compare fact by fact
Azure Front DoorElastic Load Balancing (ELB)
Traffic distribution scopeAcross regions and hosting platformsAcross AWS Availability Zones

What is Azure Front Door

2 min read

Azure Front Door sits between internet clients and application origins, providing global HTTP(S) routing and content delivery through Microsoft's edge network. It supports both static assets and dynamic application traffic. Unlike a regional load balancer, Front Door can distribute requests across applications in multiple Azure regions or across publicly reachable origins outside Azure. It is an application-layer reverse proxy, not a general-purpose TCP or UDP load balancer.

For new deployments, choose between Standard and Premium according to security and connectivity requirements. Configure a profile containing endpoints, custom domains, routes, origin groups, and origins. Routes associate incoming hostnames and URL paths with origin groups. Within an origin group, health, priority, latency, and weight influence origin selection. Use priority for primary-and-secondary designs and weights to distribute traffic among eligible origins; weights do not guarantee an exact percentage for small request volumes.

Design health probes to reflect application readiness without requiring authentication or performing expensive work. Configure the origin hostname, origin host header, and TLS certificate validation consistently, particularly for services that depend on host-based routing. Use HTTPS forwarding when traffic must remain encrypted between Front Door and the origin. TLS terminates at Front Door and a separate TLS connection protects the origin leg; this is not TLS passthrough.

Enable caching selectively for public, reusable responses such as images, scripts, and versioned downloads. Define query-string behavior and expiration rules deliberately, and avoid caching personalized or sensitive API responses. Cache purges support invalidation, but versioned asset URLs provide more predictable deployment behavior. Compression can reduce response size for supported content types, while dynamic requests still benefit from Front Door's connection handling and network routing.

Apply a web application firewall policy and evaluate detection logs before moving new rules into prevention mode. Standard supports custom WAF rules, while Premium adds managed rule sets and bot protection. Premium also supports Private Link connectivity to supported origins. For public origins, restrict direct access using service-specific network controls and validate the Front Door instance identifier where supported; a request header alone is not a network security boundary.

Operationally, enable diagnostic logs, monitor origin health and error rates, and test regional failure scenarios before production rollout. Manage configuration through infrastructure as code and allow for configuration propagation during changes. Edge actions provide lightweight JavaScript execution during request and response processing. Premium supports mutual TLS client authentication, while native gRPC on Standard and Premium and JWT validation through Premium Auth Policy are public-preview capabilities that require evaluation of their documented limitations before production adoption.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.