Locking manifests in Azure Container Registry
So a consequence of wanting to purge images from your container registry is sometimes you need to keep some of them.
One example is that in regulated industries you must be able to produce software that was deployed to production for audit/legal purposes, so if you are purging images that are over 3 months old you might have an issue.
You can update an image so that it can’t be overridden or deleted via the az acr repository update command e.