DR implementation: Log Analytics and Application Insights
Tier: T1, for diagnosis. The platform runtime does not depend on Log Analytics. Responders need it to detect a disaster, diagnose it, and confirm the recovery (ADR-0021). Losing it during an incident makes the recovery slower and less certain. It does not stop T0 flows.
Current configuration (prd)
| Setting | Value |
|---|---|
| Workspaces | Platform observability workspaces in Switzerland North |
| Retention | 30 to 90 days, depending on the workspace |
| Diagnostics | Applied to every resource by Azure Policy |
| Application Insights | Workspace-based. Telemetry is stored in the workspaces |
| Alerts | Azure Monitor alert rules and action groups. They are evaluated by Azure Monitor, outside the workspace |
Failure scenarios
| Scenario | Behaviour | Recovery | RTO and RPO |
|---|---|---|---|
| Zone loss | Microsoft-managed. Ingestion can be delayed | Automatic | Microsoft-managed |
| Ingestion delay | Log-based alerts fire late. Dashboards look healthy when they are not | Use Resource Health and platform metrics, which do not depend on log ingestion | Not applicable |
| Workspace deleted | Ingestion stops. Queries fail | Recover the workspace from soft delete within 14 days, with the same name, resource group, and region | Minutes. Data sent while it was deleted is lost |
| Workspace deleted for good | Historical data is lost | Recreate from Terraform. Azure Policy re-applies the diagnostic settings | Under an hour. History is lost |
| Diagnostic setting removed | Logs from one resource stop | Azure Policy remediation re-applies it | Policy evaluation cycle |
Recovery procedure
Recover a deleted workspace
Owner: CPE
Recreate the workspace with the same name, resource group, subscription, and region within 14 days. This recovers the data and the configuration. Then run a Terraform plan to confirm there is no drift, and trigger an Azure Policy remediation for the diagnostic settings.
Rules
- T0 detection MUST NOT depend only on log-based alerts. Every T0 resource MUST also have a Resource Health or platform-metric alert.
- Workspaces MUST have a
CanNotDeletelock inprd. - Diagnostic settings MUST stay under Azure Policy, so that they come back without manual work.
- Do not purge a workspace in
prd. A purge disables the 14-day recovery.