π Operations Runbook: terraform-e2e
Generated by as-built agent | 2026-02-26
| β¬
οΈ Previous |
π Index |
Next β‘οΈ |
| 07-design-document.md |
README |
07-resource-inventory.md |
Version: 1.0
Date: 2026-02-26
Environment: dev
Region: swedencentral
β‘ Quick Reference
Critical Resources
| Resource |
Name |
Resource Group |
Severity |
| App Service (Frontend) |
app-terraform-e2e-fe-dev-3hpu |
rg-terraform-e2e-dev |
π P2 |
| App Service (Backend) |
app-terraform-e2e-dev-3hpu |
rg-terraform-e2e-dev |
π΄ P1 |
| SQL Database |
sqldb-terraform-e2e-dev |
rg-terraform-e2e-dev |
π΄ P1 |
| Key Vault |
kv-tfe2dev-3hpu |
rg-terraform-e2e-dev |
π P2 |
π 1. Daily Operations
1.1 Health Checks
Morning Health Check:
- β
Verify frontend and backend return HTTP response
- β
Confirm App Services are
Running
- β
Confirm SQL server state is
Ready and DB state is Online
- β
Check last 24h smart detector alerts for anomalies
KQL Query - System Health Overview:
requests
| where timestamp > ago(24h)
| summarize
RequestCount = count(),
FailedRequests = countif(success == false),
P95DurationMs = percentile(duration, 95)
by cloud_RoleName, bin(timestamp, 1h)
| order by timestamp desc
1.2 Log Review
Priority Logs to Review:
| Log Source |
Query Focus |
Action Threshold |
| Application Insights |
Failed requests and dependencies |
>2% failures over 15 min |
| App Service platform logs |
Availability and restart events |
Any repeated restart event |
| Azure SQL diagnostics |
Connectivity/authentication issues |
>5 failures in 15 min |
π¨ 2. Incident Response
2.1 Severity Definitions
| Severity |
Definition |
Response Time |
| π΄ P1 |
Backend unavailable or SQL outage |
15 min |
| π P2 |
Partial degradation (high latency, intermittent errors) |
30 min |
| π’ P3 |
Non-critical issue (single feature impact) |
4 hours |
2.2 Runbooks by Alert
| Alert |
Runbook |
Owner |
| Failure Anomalies smart detector |
Triage App Insights failures, then app logs and SQL connectivity |
Platform on-call |
| App unavailable |
Validate app runtime state, restart app if needed, rollback recent config |
Platform on-call |
| SQL connectivity failures |
Validate SQL server status and AAD auth configuration |
Platform + DBA |
π§ 3. Common Procedures
3.1 Restart Services
az webapp restart --name app-terraform-e2e-dev-3hpu --resource-group rg-terraform-e2e-dev
az webapp restart --name app-terraform-e2e-fe-dev-3hpu --resource-group rg-terraform-e2e-dev
3.2 Validate Runtime State
az webapp show --name app-terraform-e2e-dev-3hpu --resource-group rg-terraform-e2e-dev --query "{name:name,state:state,httpsOnly:httpsOnly,host:defaultHostName}" -o table
az webapp show --name app-terraform-e2e-fe-dev-3hpu --resource-group rg-terraform-e2e-dev --query "{name:name,state:state,httpsOnly:httpsOnly,host:defaultHostName}" -o table
az sql server show --name sql-terraform-e2e-dev-3hpu --resource-group rg-terraform-e2e-dev --query "{name:name,state:state,publicNetworkAccess:publicNetworkAccess,version:version}" -o table
3.3 Terraform Drift Check
cd infra/terraform/terraform-e2e
terraform plan -detailed-exitcode
3.4 Secret/RBAC Validation
az keyvault show --name kv-tfe2dev-3hpu --resource-group rg-terraform-e2e-dev --query "{name:name,enableRbacAuthorization:properties.enableRbacAuthorization,publicNetworkAccess:properties.publicNetworkAccess}" -o table
az role assignment list --scope /subscriptions/00858ffc-dded-4f0f-8bbf-e17fff0d47d9/resourceGroups/rg-terraform-e2e-dev/providers/Microsoft.KeyVault/vaults/kv-tfe2dev-3hpu -o table
π 4. Maintenance Windows
| Task |
Schedule |
Duration |
| Terraform patching/updates |
Saturdays 09:00 UTC |
1 hour |
| App dependency refresh |
Monthly, first business Monday |
1 hour |
| DR rehearsal |
Quarterly |
2 hours |
π 5. Contacts & Escalation
| Role |
Contact |
Phone |
On-Call Rotation |
| L1 On-Call Engineer |
team-terraform |
N/A |
Weekly |
| L2 Platform Lead |
team-terraform lead |
N/A |
Weekly backup |
| L3 Subscription Owner |
subscription admin |
N/A |
Escalation only |
Escalation Path
- L1 triages within SLA window.
- If unresolved in 30 minutes (P1/P2), escalate to L2.
- If platform-wide or policy-related blocker persists, escalate to L3.
π 6. Change Log
| Date |
Change |
Author |
| 2026-02-26 |
Initial as-built runbook generated from deployed Terraform state and deployment summary |
as-built agent |
References
| β¬
οΈ 07-design-document.md |
π Project Index |
β‘οΈ 07-resource-inventory.md |