Yes, Azure does automatically delete old backups and snapshots based on the retention policy you set. The retention policy specifies how long backups and snapshots are kept before they are deleted. This helps manage storage costs and ensures that only necessary backups are retained.
However, if a backup or snapshot is locked, it won't be deleted automatically. Locks in Azure are used to prevent accidental deletion or modification of critical resources3. There are two types of locks:
Read-only Lock: Prevents modification or deletion but allows reading.
CanNotDelete Lock: Prevents deletion but allows modification.
To delete a locked backup or snapshot, you'll need to first remove the lock.