Review Recovery Services Vault deleted-backup protection

Check retention and recovery of deleted backups in Recovery Services Vault.

Description

Soft delete preserves deleted backups in a Recovery Services vault for a limited time. In Azure public regions where the service enforces soft delete, a legacy soft_delete_enabled = false setting cannot disable protection for supported vaulted backups.

Potential impact

If a deletion goes unnoticed past the retention period, the recovery point you need may be gone, extending downtime.

Remediation

  • Set soft_delete_enabled = true in Terraform. In the Azure portal, open the deployed Recovery Services vault and check its soft-delete state, retention in days and support for your workload.
  • Test the deletion alerts and restore procedure so you can recover within that period. Manage immutability, backup policies and deletion permissions alongside soft delete.

Examples

The examples use different vault names. When updating an existing vault, keep its actual name and check the Terraform plan for replacement.

Before

hcl
resource "azurerm_recovery_services_vault" "recovery_vault" {
  name                = "app-recovery-vault"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"
  soft_delete_enabled = false
}

After

hcl
resource "azurerm_recovery_services_vault" "recovery_vault" {
  name                = "protected-recovery-vault"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"
  soft_delete_enabled = true
}

References