Guest MSFTPM Posted September 20, 2022 Posted September 20, 2022 Microsoft is committed to making Azure Container Registry (ACR) best-in-class for the storage and distribution of container artifacts. Following this commitment, we're excited to announce the public preview of Soft Delete for Azure Container Registry. When Soft Delete is enabled container artifacts that are deleted from your container registry can be restored within a time frame set by you. This feature will empower you to take more control of your registries and protect against accidental deletion of your repositories from your Azure Container Registry. What is Soft Delete? Soft Delete is a new feature added to Azure Container Registry (ACR) currently in public preview that will allow users to restore deleted repositories. When Soft Delete is enabled, deleted artifacts will be moved into a recycle bin. Users can then restore those artifacts back into their live repositories for consumption. If a user deletes an artifact while Soft Delete is disabled, the artifact will be permanently deleted. Deleted artifacts inside the recycle bin will be permanently deleted from the registry based on the user configured retention period. Want to try it out? The public preview of Soft Delete can be configured with both Azure CLI and Azure Portal. Azure CLI Step 1: Enable Soft Delete The retention policy for Soft Delete can be configured up to 90 days. In this example, the retention policy is set to 30 days: az acr config soft-delete update -r myregistry --days 30 --status enabled [*]Step 2: Delete an artifact The same ACR delete commands will still work with Soft Delete az acr repository delete --name myregistry --image hello-world:latest [*]Step 3: List your deleted artifacts You can list your deleted artifacts using the following command az acr manifest list-deleted-tags -r myregistry -n hello-world [*]Step 4: Restore!!! You can restore the deleted artifact using the following command az acr manifest restore -r myregistry -n hello-world:latest Azure Portal Step 1: Enable Soft Delete Soft Delete configuration can be found under the Update tab on the Portal Under Update you can configure Soft Delete from 1 to 90 days [*]Step 2: Delete an Artifact Deleting artifacts inside the portal still works the same way [*]Step 3: List your Deleted Artifacts You see all your deleted artifacts from the repositories menu If you're looking for deleted tags or digest, you can find them under its parent repository If you're looking for an entire deleted repo you can find it under the live repository view [*]Step 4: Restore!! You can restore the deleted artifact in the portal by clicking the restore button next to the deleted tag You can find all the commands and all the Soft Delete documentation at aka.ms/acr/soft-delete. What's Next? We’d encourage you to view all the documentation and explore our tutorials at aka.ms/acr/docs . We're looking forward to hearing all your feedback about Soft Delete. If you have any questions, feedback, use cases, or concerns please reach out to us at aka.ms/acr/feedback . Are you interested in the other features coming to ACR? You can view our public roadmap at aka.ms/acr/roadmap . If you would like to inform us of any issues with this feature or any features within ACR. Please file an issue here at aka.ms/acr/issues . We are excited about all the new improvements coming to Azure Container Registry. Please stay tuned for all the new improvements. Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.