Interview Prep/Azure/Quota, Deployment and IaC Errors

`Conflict: Cannot delete resource group 'rg-shop-dev' while it contains resources protected by Azure Backup` or Recovery Services vault deletion fails.

IntermediateTroubleshootingQuota, Deployment and IaC Errors
Answer

Likely causes → Recovery Services vault has protected items or soft-deleted backup items.

Diagnose → az backup item list --vault-name rsv-shop -g rg-shop-dev -o table

Fix →

  1. Stop protection and delete backup data for each item
  2. Undelete and delete soft-deleted items, or wait for soft delete period
  3. Then delete the vault and the RG

Prevent → Lab cleanup scripts that disable soft delete in non-prod vaults (if policy allows).

Azure All Azure questions

More on Quota, Deployment and IaC Errors