Infrastructure

Azure Key Vault: recover a deleted vault before restoring applications

A runbook for recovering a deleted vault, rebuilding access and integrations, and validating application recovery without broadening privileges.

03 Dec 2026 azurekey-vaultsoft-deleterecoveryrbacevent-grididentitysecurityobservabilityrunbookrollbackproduction

An application can no longer read its configuration after its Azure Key Vault is accidentally deleted. The vault appears among deleted resources and can be recovered. But seeing it in Azure again does not prove that applications, permissions or notifications are working.

In this fictional incident, a production vault uses Azure RBAC and serves both an application and an Event Grid-triggered automation. The goal is to recover the existing vault and prove each dependency before restoring traffic.

Contain the incident and qualify the deletion

Assign an incident owner and pause deployments that might recreate or change the vault. Record the subscription, resource group, region, vault name and UTC deletion time. Review the Activity Log and the associated change; preserve correlation IDs without collecting secret values.

Inventory affected applications, identities, keys, certificates and secrets, their referenced versions and any suspended processing. An application may continue to work from cache: that temporary success does not prove vault access.

In the correct subscription, find the vault among deleted resources and record its retention deadline. Confirm that the operator has the required rights to inspect and recover it. If the vault was purged, retention has expired or its identity cannot be established, stop and use the applicable restoration or escalation plan. Do not purge it to free the name: purging removes the recovery option.

Recover the vault and rebuild its dependencies

Approve and perform recovery using an authorized identity and Microsoft’s documented procedure. Track the operation to completion, then verify the resource ID, region and effective configuration. This is a whole-vault recovery, not recovery of an individual secret.

Recovering the vault does not automatically recreate integrations deleted with it. Microsoft specifically identifies vault-scoped Azure RBAC role assignments and Event Grid subscriptions. Compare the recovered state with approved infrastructure definitions and inventory: principal ID, role, scope and conditions for each assignment; destination, filters and configuration for each event subscription. Also check diagnostic settings, alerts, networking and other dependencies. Verify their actual state rather than assuming they all disappeared or survived.

Do not blindly rerun an entire deployment to restore access. Review the change plan and restore only the required permissions and integrations. Account for roles inherited from higher scopes. Verify the applications’ actual identities and preserve least privilege; a Contributor role on the vault does not automatically grant access to secret values.

Prove the application path

From a representative environment and identity, separately check DNS resolution and the authorized network path, then authentication and authorization for the expected operation. Verify the required object names, versions, states and dates without displaying their values. A reference to a specific version can behave differently from one using the current version, so test the reference actually in use.

Run a canary with the application owner, then a negative test that must remain denied. For Event Grid, use an appropriate test event or controlled operation and verify delivery through to the destination and processing, without triggering an unintended business effect. Check that logs and alerts have resumed, and account for access errors and possible authorization propagation delays.

CheckExpected evidence
VaultResource ID and configuration match the inventory
AccessActual identity can perform only the intended operation; negative test is denied
IntegrationSubscription and destination verified; delivery and processing observed
ApplicationCanary transaction and telemetry agree, without exposing a secret

Decide whether to resume or roll back

Resume consumers progressively and monitor for a window agreed with the application owners. Compare access errors, availability and pending work with the expected state. Reconcile missed business operations separately: vault recovery does not automatically replay them.

If a check fails, stop expansion, maintain the agreed degraded mode and assess the impact before reverting the most recent permission or integration change. Do not reflexively delete the vault again as a rollback: that would cause another outage and could remove its integrations again. Record the current state, changes made and owner of the next decision.

Recovery is complete only when legitimate access works, expected denials remain in place and critical dependencies are demonstrated. Otherwise, keep the incident contained and escalate.

References