Azure Incident and Recovery Drill
Tracing a simulated release failure from the first unhealthy request through recovery.
Situation
During a bad release, errors from unrelated routes can hide the signal that matters. I wanted a small incident exercise I could repeat without interrupting a live service.
Task
I needed to isolate health check failures, reconstruct when they started, and define how to verify recovery after a rollback.
Action
I created a synthetic request fixture with healthy, failing, and recovered time windows. I included an unrelated server error so the exercise could test whether the diagnosis stayed focused on health checks. I wrote a Python replay that counts HTTP 5xx responses on the health endpoint for each minute.
I wrote an Azure Monitor alert query that looks for health endpoint failures in the previous five minutes. I wrote a separate KQL diagnosis query that groups requests by minute and calculates the health check error rate, so an operator can see both the onset and the scale of the failure.
I documented a staging drill that connects telemetry, introduces an unhealthy revision, and restores the last healthy image. I specified consecutive successful health checks and timestamps for detecting and recovering from the incident.
What I would improve
I would run the drill on a staging app, confirm alert delivery to the action group, and record the measured time to detect and recover.
Result
The local replay returned 0, 2, and 0 health check errors across the three one-minute windows and excluded the unrelated error. Azure alert delivery and live recovery time remain unmeasured.