Stage 5 · Platform
SRE Patterns on Azure
Incident Management on Azure
Azure Service Health, maintenance windows, and ICM integration.
Incident Management Overview
Incident management is the process of detecting, triaging, resolving, and learning from unplanned events. On Azure, incidents can originate from your own resources, Azure platform issues, or third-party dependencies.
- Detect — Automated monitoring detects the issue
- Triage — Assess severity and assign ownership
- Respond — Take immediate action to mitigate impact
- Resolve — Implement a permanent fix
- Review — Conduct a post-incident review (PIR)
Azure Service Health
Azure Service Health provides real-time information about Azure service incidents and planned maintenance. It includes Service Health Alerts that notify you when Azure services affecting your resources are impacted.
# Create an action group for Azure Service Health
az monitor action-group create \
--resource-group rg-monitoring \
--name ag-azure-health \
--short-name health \
--action email sre-team sre@contoso.com \
--action sms sre-oncall +15551234567
# Create a Service Health alert
az monitor activity-log alert create \
--resource-group rg-monitoring \
--name "Azure Service Health Alert" \
--condition category=ServiceHealth \
--action-group "/subscriptions/{sub-id}/resourceGroups/rg-monitoring/providers/microsoft.insights/actionGroups/ag-azure-health" \
--description "Alert on Azure platform incidents"Service Health alerts fire for ServiceHealth events, including incidents, planned maintenance, and health advisories. They are essential for early detection of Azure platform issues.
Maintenance Windows
Azure performs planned maintenance on VM hosts, networking equipment, and platform services. Maintenance windows define when these changes can affect your resources. Configure maintenance windows to control when updates are applied.
# Create a maintenance configuration
az maintenance configuration create \
--resource-group rg-payments \
--name maintenance-aks-weekly \
--location eastus \
--maintenance-region eastus \
--scope All \
--start-time "2025-01-20 02:00" \
--duration 4 \
--recur-recur-daily \
--recur-days 7
# Assign maintenance configuration to a VM
az maintenance assignment create \
--resource-group rg-payments \
--resource-name vm-payments-01 \
--resource-type Microsoft.Compute/virtualMachines \
--maintenance-configuration-id maintenance-aks-weeklyMaintenance windows help you plan for service disruptions. Schedule maintenance during low-traffic hours and communicate planned downtime to stakeholders.
Azure platform maintenance happens regardless of your maintenance window. Your window controls when optional host updates are applied, but emergency security patches may be applied at any time.
Incident Response Process
| Severity | Impact | Response Time | Examples |
|---|---|---|---|
| SEV1 | Complete service outage | <15 min | AKS cluster down, region outage |
| SEV2 | Major feature degraded | <30 min | API latency >2s, partial data loss |
| SEV3 | Minor feature affected | <2 hours | Non-critical error, cosmetic issue |
| SEV4 | No user impact | Next business day | Monitoring gap, documentation |
Communication During Incidents
- Internal — Slack/Teams incident channel, status page, bridge call
- External — Status page updates, customer emails, social media
- Leadership — Regular updates to stakeholders at defined intervals
- Engineering — War room coordination, task tracking
# Post to Teams when an alert fires (via webhook)
curl -X POST "$TEAMS_WEBHOOK" \
-H "Content-Type: application/json" \
-d '{
"@type": "MessageCard",
"summary": "SEV2 Incident: AKS payments API degraded",
"sections": [{
"activityTitle": "🔴 SEV2 Incident Opened",
"facts": [
{"name": "Service", "value": "Payments API"},
{"name": "Impact", "value": "API latency >2s"},
{"name": "Start Time", "value": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"},
{"name": "Incident Channel", "value": "#inc-payments-api"}
]
}]
}'Automated communication reduces time-to-awareness. Use structured incident cards with consistent formatting so stakeholders can quickly assess impact.
Post-Incident Review
A Post-Incident Review (PIR) or blameless retrospective documents what happened, why, and what to change. It focuses on systemic improvements, not individual blame.
- Timeline — What happened and when (UTC timestamps)
- Impact — Who was affected and for how long
- Root cause — The underlying systemic cause
- Contributing factors — What made the incident worse
- Resolution — What was done to fix it
- Action items — Specific, assigned, time-bound improvements
- Detection — How the issue was detected (or should have been)
Blameless PIRs focus on systems, not people. The goal is to understand how the system allowed the failure and how to make it harder for failures to occur and easier to detect them quickly.
Mark this lesson complete to store local progress and unlock a cleaner resume path the next time you visit.