Ensure that the Soft Delete protection feature is enabled for your Microsoft Azure container registries to maintain data integrity and prevent costly downtime. When enabled, Soft Delete allows for the recovery of images, tags, and other artifacts in most deletion scenarios. If you've deleted items that you want to retain, be sure to restore them before the scheduled purge date.
Enabling Soft Delete for Azure Container Registries helps protect against accidental or malicious deletions, allowing recovery of deleted images and artifacts for a specified retention period. It enhances data security, compliance, and operational continuity by preventing disruptions to DevOps pipelines and reducing the need for rebuilding lost images.
Audit
To determine if the Soft Delete feature is enabled for your Azure container registries, perform the following operations:
Remediation / Resolution
To enable and configure Soft Delete for your Microsoft Azure container registries, perform the following operations:
References
- Azure Official Documentation
- Introduction to Azure Container Registry
- Recover deleted artifacts with soft delete policy in Azure Container Registry (Preview)
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az acr list
- az acr config soft-delete show
- az acr config soft-delete update