Azure Front Door resiliency
Front Door is a global, Microsoft-operated service with no single region. ION’s resiliency work therefore covers three things:
- Front Door must react correctly when an origin fails.
- ION must have a manual path when Front Door itself fails.
- Failures must be detectable before users report them.
Targets come from ADR-0017 (99.9% SLO and the per-scenario recovery objectives).
Failure modes
| Failure | Detected by | Front Door behavior | User impact | Recovery |
|---|---|---|---|---|
| Application Gateway down or unhealthy | Origin health probe on multi-origin groups | Fails over to the priority-2 origin (APIM or SPA host) | Short burst of errors until the probe flips; SignalR real-time stops | Automatic, plus fail-back when probes recover |
| APIM down | Probe on RomeApiOriginGroup (both origins depend on APIM) | No healthy origin, so traffic goes to all origins | API calls fail; SPAs still load | Restore APIM (graceful degradation) |
| SPA host down | Probe on the web app group | Both origins reach the same host, so no failover helps | That portal is unavailable | Redeploy or roll back the SPA |
| Single-origin service down | No probe (by design) | Keeps sending traffic | That service is unavailable | Fix the origin |
| Storage primary region down (operational data) | Probe on the opsdata groups | Fails over to the RA-GZRS secondary read endpoint | Read-only access continues, possibly with stale data | Automatic |
| WAF false positive | WAF log spike, user reports | Blocks the request (403) | One feature or user blocked | Narrow exclusion through PR |
| Bad route or rule-set change | Error-rate alert, deployment checks | Serves the misconfiguration | One endpoint or path broken | Revert the PR and redeploy |
| Managed certificate or DNS validation failure | Certificate state, _dnsauth record checks | TLS handshake fails for the domain | Domain unavailable | Restore the TXT record; Front Door renews automatically |
| Front Door global or regional outage | Resource Health alert, synthetic checks | Not available | All Front Door hostnames unavailable | Manual bypass |
Origin-group failover
Every multi-origin group uses priority routing. Priority 1 is the Application Gateway hostname, and priority 2 is a direct origin. Front Door sends all traffic to the healthiest origin with the lowest priority number.
| Group | Priority 1 | Priority 2 | What the priority-2 path skips |
|---|---|---|---|
RomeApiOriginGroup | agw-api.<domain> | apim-rome-<env>-chn-02.azure-api.net | Application Gateway only. Front Door WAF and APIM policy still apply |
| Web app groups | agw-<app>-webapp.<domain> | App Service or Static Web Apps default hostname | Application Gateway only. The SPA host must accept Front Door traffic only |
OpsdataPortal*OriginGroup | Storage primary endpoint | Storage -secondary endpoint | Switzerland North. Data is read-only and may lag |
Probe and failover timing
Front Door uses the origin group’s load-balancing settings. ION uses the defaults: sample size 4, 3 successful samples required, and 50 ms additional latency. Each edge POP probes and evaluates health separately.
| Probe interval | Time to fail over (about 2 intervals) | Time to fail back (about 3 intervals) |
|---|---|---|
255 s (current RomeApiOriginGroup) | about 8.5 minutes | about 13 minutes |
| 60 s (web app groups; required for the API group) | about 2 minutes | about 3 minutes |
Requests sent to the failed origin before the probe flips return errors. Clients must retry idempotent calls with backoff. The guideline is 60 seconds for the API group; see guidelines.
Health probe design
- Endpoint: a dedicated, shallow endpoint. The API group probes
HEAD /health-probes-ext/v1/health, an APIM API that does not call backends. Web app groups probeGET /, which returns the SPA shell. - Method:
HEADis preferred. Every Front Door POP probes each origin, so probe volume is high and the response body is wasted. - Depth: the probe answers one question: can this origin serve the route? A probe that calls databases or optional dependencies turns a partial outage into a total one, because Front Door has nowhere better to send the traffic.
- Single-origin groups: no probe. Microsoft recommends disabling probes when a group has one origin, and ION follows that recommendation.
SignalR during an Application Gateway failure
The SignalR WebSocket leg goes directly to Application Gateway, so Front Door
has no failover for it. If Application Gateway fails, REST traffic fails over but
real-time updates stop. The shared connection’s isConnected state turns false
and the client retries automatically. When the connection returns, MFEs
re-subscribe and catch up over REST. The REST polling fallback that would keep the
UI fresh in the meantime is a directive that is not implemented yet (gap RT-02 in
the micro-frontends real-time design),
so users see stale data until they refresh or the gateway returns.
Operational-data continuity
portal.opsdata is the only ION surface that survives a Switzerland North
region outage today.
- Failover is automatic. The probes are
GET /index.html(static website) andHEAD /operationaldata/customers.json(data), every 60 seconds. - The secondary is read-only. The data is as old as the last Vishnu refresh plus the asynchronous geo-replication lag. Rules of engagement, escalation matrices, and notes are refreshed daily, so they can be up to about a day old. See freshness and RPO. The portal is view-only by design.
- Entra ID is global, so sign-in and Storage RBAC still work when Switzerland North is down.
- Data stays in Switzerland (Switzerland North and Switzerland West).
Regional failover (planned)
The transactional platform has no secondary-region origin today. ADR-0017 plans an active-passive warm spare in Switzerland West. Front Door will provide the switch:
Regional failover is manual by design. Data stores fail over first, then SRE swaps Front Door origin priority, so traffic does not reach a region whose data is not ready. Before a Switzerland West origin is added, it needs the following:
- callback URLs;
- CORS;
- certificates;
- WebSocket routing;
- network restrictions;
- probes;
- a failback procedure.
Front Door outage: manual bypass
A Front Door outage takes down every ION hostname. The approved mitigation is direct access through the Application Gateway hostnames. In the Front Door DR reference this is Mitigation #2. Mitigation #1, a Traffic Manager standby profile, is not implemented.
What is already in place
| Prerequisite | State |
|---|---|
agw-* DNS records | Present. Every agw-* hostname resolves to the Application Gateway public IP |
Alya Entra callback URL for agw-alya-webapp.<domain> | Registered |
| APIM CORS includes the Application Gateway web app URL | Configured |
| Security headers when traffic skips Front Door | Application Gateway rewrite rules add them when X-Azure-FDID is absent or does not match |
| API calls from the shell | The agw-alya-webapp listener has path-based API rules that mirror Front Door’s /api/* rewrites |
| MFE remotes | The shell picks the entryAGW origins when it is served from an agw- host (routing and ingress) |
What is lost during the bypass
- No WAF. Application Gateway runs
Standard_v2without WAF. - No edge network. Users connect directly to Switzerland North.
- No Front Door DDoS absorption at the edge. Azure DDoS protection on the Application Gateway public IP remains.
- Different hostnames. Bookmarks and links that use
portal.*hostnames do not work. - Operational-data portal unavailable.
portal.opsdatais served only through Front Door.
Runbook
Confirm the outage is Front Door
Owner: SRE on call
Check Azure Resource Health for the profile and the Azure status page. Then check
that agw-api.<domain> returns 200 on /health-probes-ext/v1/health from
outside the corporate network. If Application Gateway or APIM is also down, use the
regional DR runbook instead.
Declare the incident and approve the bypass
Owner: Incident commander
The bypass removes WAF protection. The incident commander approves it and records the start time.
Make sure the listeners accept internet traffic
Owner: CPE
The Application Gateway NSG allows internet traffic on 443 today. If Front Door-only enforcement has been added since then (target state), CPE disables it for the bypass hostnames through an emergency change and records it.
Communicate the bypass URLs
Owner: Incident commander
Send users the agw-<app>-webapp.<domain> URLs for the bypass-capable portals and
state that the change is temporary.
Monitor while bypassed
Owner: SRE on call
Watch Application Gateway request rate, APIM 429 and 5xx rates, and DDoS
telemetry on the public IP. Raise the alert sensitivity for the duration.
Return to Front Door
Owner: Incident commander and CPE
When Front Door is healthy, tell users to return to the portal hostnames. Revert any emergency change in IaC and review Application Gateway logs for abuse during the window.
Observability and alerts
Diagnostics send AllLogs (access, health probe, and WAF logs) and AllMetrics
to the observability Log Analytics workspace. These alerts are required:
| Alert | Signal | Scope | Why |
|---|---|---|---|
| Resource Health | Profile health degraded or unavailable | Production | Detects a Front Door platform incident and starts the bypass runbook |
| Origin health | OriginHealthPercentage below threshold | Every multi-origin group | Shows that a failover is happening or about to happen |
| Error rate | Percentage5XX above threshold | Profile, split by endpoint | Detects origin failures and bad deployments |
| Latency | TotalLatency or OriginLatency above baseline | Profile, split by endpoint | Detects a slow origin before it fails |
| WAF blocks | WebApplicationFirewallRequestCount with action Block, above baseline | Profile | Detects an attack or a false-positive storm after a change |
Alerts go to the CPE action group. The current state of each alert is in the implementation page.
Drills
- Exercise Application Gateway failover in a non-production environment by stopping Application Gateway. Measure the time until priority-2 traffic starts and until it fails back.
- Exercise the manual bypass at least once a year in a non-production environment, end to end, including sign-in, MFE load, API calls, and SignalR.
- Exercise operational-data failover by disabling the primary origin in Front Door. Confirm reads from the secondary.