1525 07 Operations Runbook 5edc8070
ASecurity   <details open> <summary><strong>π Runbook Contents</strong></summary> - [β‘ Quick Reference](#-quick-reference) - [π 1. Daily Operations](#-1-daily-operations) - [π¨ 2. Incident Response](#-2-incident-response) - [π§ 3. Common Procedures](#-3-common-procedures) -...
- 9 stars
- 0 votes
- 0 copies
- 1 view
- Added May 31, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add tools-only/X-Skills --skill 1525-07-operations-runbook_5edc8070 --agent claude-codeAre you the author of 1525 07 Operations Runbook 5edc8070?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-1525-07-operations-runbook-5edc8070)# π Operations Runbook: terraform-e2e



<details open>
<summary><strong>π Runbook Contents</strong></summary>
- [β‘ Quick Reference](#-quick-reference)
- [π 1. Daily Operations](#-1-daily-operations)
- [π¨ 2. Incident Response](#-2-incident-response)
- [π§ 3. Common Procedures](#-3-common-procedures)
- [π 4. Maintenance Windows](#-4-maintenance-windows)
- [π 5. Contacts & Escalation](#-5-contacts--escalation)
- [π 6. Change Log](#-6-change-log)
- [References](#references)
</details>
> Generated by as-built agent | 2026-02-26
| β¬
οΈ Previous | π Index | Next β‘οΈ |
| ---------------------------------------------- | ------------------- | ---------------------------------------------------- |
| [07-design-document.md](07-design-document.md) | [README](README.md) | [07-resource-inventory.md](07-resource-inventory.md) |
**Version**: 1.0
**Date**: 2026-02-26
**Environment**: dev
**Region**: swedencentral
---
## β‘ Quick Reference
| Item | Value |
| ---- | ----- |
| **Primary Region** | swedencentral |
| **Resource Group** | rg-terraform-e2e-dev |
| **Frontend Endpoint** | https://app-terraform-e2e-fe-dev-3hpu.azurewebsites.net |
| **Backend Endpoint** | https://app-terraform-e2e-dev-3hpu.azurewebsites.net |
| **Support Contact** | team-terraform |
| **Escalation Path** | On-call engineer β Platform lead β Subscription owner |
### 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:**
1. β
Verify frontend and backend return HTTP response
2. β
Confirm App Services are `Running`
3. β
Confirm SQL server state is `Ready` and DB state is `Online`
4. β
Check last 24h smart detector alerts for anomalies
**KQL Query - System Health Overview:**
```kusto
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
```bash
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
```bash
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
```bash
cd infra/terraform/terraform-e2e
terraform plan -detailed-exitcode
```
### 3.4 Secret/RBAC Validation
```bash
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
1. L1 triages within SLA window.
2. If unresolved in 30 minutes (P1/P2), escalate to L2.
3. 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
| Topic | Link |
| ----- | ---- |
| Azure Monitor Alerts | [Alerting Best Practices](https://learn.microsoft.com/azure/azure-monitor/best-practices-alerts) |
| KQL Queries | [KQL Reference](https://learn.microsoft.com/azure/azure-monitor/logs/get-started-queries) |
| Azure Service Health | [Overview](https://learn.microsoft.com/azure/service-health/overview) |
| App Service Operations | [Operations guide](https://learn.microsoft.com/azure/app-service/overview) |
---
<div align="center">
| β¬
οΈ [07-design-document.md](07-design-document.md) | π [Project Index](README.md) | β‘οΈ [07-resource-inventory.md](07-resource-inventory.md) |
| ------------------------------------------------- | ----------------------------- | ------------------------------------------------------- |
</div>
Files in this skill
- README.md
- skill.md
Attribution
Comments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.