Resource locks in 60 seconds
Management & GovernanceGovernanceAWS: Termination protection / SCP deny
What it is
CanNotDelete or ReadOnly locks on a subscription, resource group or resource that stop everyone, even Owners, until the lock is removed.
Simulate it »✅ Use it when
- Protecting production from accidental deletion
🚫 Not the best fit when
- As a replacement for proper RBAC
💰 Price feel: ●○○○ Free or very cheap
Free.
Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.
Simulate it
Production must never be deleted by accident. In the resource group, open <strong>Locks</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Production must never be deleted by accident. In the resource group, open Locks.
- Select + Add.
- Two lock types: Delete (CanNotDelete) and Read-only. Pick Delete.
- Even an Owner can’t delete it now. Locks apply to everyone and are inherited by every resource inside. To delete, someone must first remove the lock: a deliberate second step.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.