Disaster recovery guidelines
These rules apply to every service, resource, and runbook on the ION Platform. MUST and MUST NOT are mandatory. SHOULD and SHOULD NOT are the expected default, and any deviation is recorded in the PR with a reason. MAY is optional. Where the current configuration differs from a rule, the gap is in the gap register.
Backup retention, encryption, and network rules are defined in the data protection implementation guidelines. These rules do not repeat them, and they MUST NOT contradict them.
Classify before you build
- Every service MUST declare its criticality tier (T0 to T3) in its service documentation, using the tier definitions.
- A shared resource MUST inherit the highest tier of any flow that depends on it.
- Every service MUST list its authoritative stores, its derived stores, and the dependencies it cannot run without. A recovery plan cannot exist without this list.
- A tier change MUST be reviewed against these guidelines in the same PR.
Zone redundancy
- Every T0 and T1 stateful resource in
gmaandprdMUST be zone-redundant: Cosmos DB, Azure SQL, PostgreSQL and MySQL HA, Service Bus, Event Hubs, Storage (ZRS or GZRS), Redis, and Key Vault. - APIM MUST be zone-redundant in
prd. The target SKU is Premium v2. - SignalR MUST be on a zone-redundant tier (Premium) in
prd. - T0 and T1 compute SHOULD be zone-redundant.
- New Function Apps SHOULD use Flex Consumption with
zone_balancing_enabled = trueby default. - Existing Linux Consumption (
Y1) apps are an accepted LOW-severity gap, because they are stateless. They migrate on the service’s own roadmap. Microsoft has announced the retirement of Linux Consumption on 30 September 2028; verify the date on Microsoft Learn before planning against it.
- New Function Apps SHOULD use Flex Consumption with
- Container Apps environments MUST be zone-redundant in
gmaandprd. Zone redundancy can only be set when the environment is created. - Zone redundancy MUST be set explicitly in Terraform. A service MUST NOT rely on a provider default, and a resource MUST NOT be assumed zone-redundant because of its SKU name.
- Zone-redundant compute SHOULD run at least as many instances as there are zones, so that losing one zone leaves enough capacity for T0 load.
Data recovery
- Every authoritative store MUST have point-in-time restore enabled, using
the mode and retention set by data protection.
- Cosmos DB event stores MUST use continuous backup. Periodic backup is not acceptable for an event store (ADR-0018).
- A restore MUST target a new resource. Responders MUST NOT restore over the damaged resource or delete it before the post-incident review closes.
- A restored store MUST pass integrity checks before any traffic moves to
it. For event stores, the checks are:
- event count;
- aggregate sequence continuity;
- the final event at the restore point.
- Command and event handlers MUST be idempotent before replay is used for recovery (replay).
- Derived stores (read models, projections, caches) SHOULD be rebuilt by replay rather than restored, unless replay takes longer than the T0 RTO.
- Dead-letter queues MUST be inspected and reconciled before writes reopen.
- Geo-redundant backup storage MUST NOT be described as a DR capability. It is a backup copy only. A geo-restore is a regional rebuild, and it is out of scope for same-region DR.
Deletion protection
- Every stateful resource in
prdMUST have:lifecycle { prevent_destroy = true }in Terraform;- a
CanNotDeletemanagement lock.
- Key Vault MUST have soft delete and purge protection on. Existing vaults
keep their 7-day retention, because it cannot be changed after creation. New
prdvaults SHOULD use 90 days. - App Configuration stores MUST have purge protection on in
prd. Their contents MUST be reproducible from IaC. - Storage accounts that hold authoritative or hard-to-regenerate data SHOULD enable blob soft delete and versioning.
- Lock removal MUST go through a reviewed change. Removing a lock during an incident needs the incident commander’s approval, and the lock MUST be restored before the incident closes.
Secrets and identity
- Secrets MUST live in Key Vault, so that soft delete protects them. A secret that exists only in an app setting cannot be recovered.
- Workloads SHOULD use managed identities and federated credentials, so that the recovery of secret material is not on the critical path.
- The Entra app registrations, federated credentials, and role assignments that T0 flows depend on MUST be documented in IaC or in the identity documentation, so that they can be recreated.
Stateless resources and IaC
- Front Door, Application Gateway, APIM configuration, App Configuration, and all compute MUST be recoverable by a Terraform redeploy through Runway.
- Manual portal changes MUST NOT be the only record of a configuration. Emergency changes MUST be reconciled into IaC before the incident closes.
- Terraform state MUST be on a zone-redundant storage account with versioning, so that the IaC itself can be recovered.
- Container images that T0 and T1 apps run MUST be pullable during a zone loss. This needs a zone-redundant registry, or an accepted gap.
Messaging and backlog
- Commands and integration events MUST go through Service Bus or Event Hubs, so that consumers can pause without data loss.
- Every subscription MUST have dead-lettering on and a documented replay path.
- Message TTL on T0 topics MUST be longer than the T0 RTO, so that queued work survives a recovery window.
Detection and activation
- Every T0 resource MUST have a Resource Health alert and at least one availability or error-rate alert, routed to the SRE action group.
- Diagnostics MUST reach Log Analytics. They are applied by Azure Policy.
- The activation criterion is fixed: any T0 flow down for more than 15 minutes with no Microsoft-managed recovery in progress. Confirmed corruption or deletion of T0 data is declared immediately (operations).
Safe automation
- Recovery scripts MUST be idempotent and MUST support a dry run.
- Automation MUST NOT run, without a named human approver:
- a restore;
- a cutover;
- a purge;
- a lock removal;
- a traffic change.
- Automation MUST log every action to the incident record.
- Automation MUST NOT fail over automatically on a single signal. Microsoft-managed zone failover is the only automatic failover.
- Runbooks SHOULD include the equivalent Azure CLI or portal step for every scripted step, so that they still work when Runway is unavailable.
Runbooks and documentation
- Every T0 and T1 resource MUST have a recovery procedure on its implementation page.
- Runbooks MUST be reachable without Switzerland North: the docs site on GitHub Pages and the markdown in the repository (runbook reachability).
- The DR plan MUST be reviewed every 6 months, after every declared disaster, and after every architecture change that adds or removes a T0 or T1 dependency.
Drills and claims
- A recovery target MUST NOT be published as achieved until a drill has measured it.
- Drills MUST run in
gmaon the drill calendar. - Every drill MUST record the measured RTO and RPO, the deviations, and the follow-up actions.
Be precise about proposals
- Documentation MUST NOT describe Switzerland West warm spare, active-active, or data-only replication as current capabilities.
- Runbooks MUST NOT contain Switzerland West failover steps for the transactional platform until that path is built and drilled.
- The operational-data portal is the only implemented cross-region capability. Its data freshness MUST be stated together with any claim about it.