DR implementation: App Configuration
Tier: T0. App Configuration holds the shared settings and feature
flags, including the degraded-mode flag that DR uses to shed load.
Current configuration (prd)
| Setting | Value |
|---|---|
| Stores | appcs-rome-prd, appcs-cnvyr-prd |
| SKU | Standard |
| Zone resilience | Microsoft-managed in regions with availability zones |
| Soft delete | 7 days |
| Purge protection | Off on both stores |
| Content | Keys and flags from Terraform. Some flag values are changed at runtime, degraded-mode among them |
Failure scenarios
| Scenario | Behaviour | Recovery | RTO and RPO |
|---|---|---|---|
| Zone loss | No effect | Microsoft-managed | Not applicable |
| Store unavailable | Apps keep the values they already loaded. Apps that start during the outage fail if the configuration provider is required | Wait. Avoid restarts | Microsoft-managed |
| Key or flag changed by mistake | Behaviour changes on the next refresh | Restore the earlier value from the revision history (az appconfig revision list), or redeploy from Terraform | Minutes |
| Store deleted | Same as unavailable, for good | Recover from soft delete within 7 days, or recreate from Terraform | Minutes for a recovery. Under an hour for a recreate. Runtime flag values are lost on a recreate |
| Store purged | Same as deleted, with no recovery | Recreate from Terraform, then set the runtime flags again by hand | Under an hour |
Recovery procedures
Roll back a key or flag
Owner: Owning service team
Find the last good value with
az appconfig revision list --name <store> --key <key>. Set it again with
az appconfig kv set, or re-run Terraform.
Revision history is kept for a limited time that depends on the tier.
Recover a deleted store
Owner: CPE
Within 7 days, run az appconfig recover --name <store>. After that, recreate
the store from Terraform. Then set the operational flags and confirm that the
apps reconnect.
Rules
- Purge protection MUST be on in
prd. - Every key and flag definition MUST be in Terraform.
- Operational flags that are changed at runtime MUST be listed in the runbook with their default value, so that they can be set again.
- Apps SHOULD start with cached or default values when App Configuration is unavailable, rather than fail.
Gaps
| ID | Severity | Gap | Owner |
|---|---|---|---|
| DR-15 | MEDIUM | Purge protection off on appcs-rome-prd and appcs-cnvyr-prd | CPE, Conveyor team |