Jump to content

Announcing Public Preview of Soft Delete for Azure Container Registry


Recommended Posts

Posted

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 Portallargevv2px999.png.739fdd4604b5664f106b671c8a4b21a4.png
      • Under Update you can configure Soft Delete from 1 to 90 days
      • largevv2px999.png.2163b63f5ea57f89b9d589d79865a700.png

    [*]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 repositorylargevv2px999.png.92f5e20ca2c4ede901f97a6b96d385f9.png
      • If you're looking for an entire deleted repo you can find it under the live repository viewlargevv2px999.png.7e7a65c1c17d70c129e38745b41d8ac7.png

    [*]Step 4: Restore!!

    • You can restore the deleted artifact in the portal by clicking the restore button next to the deleted taglargevv2px999.png.5c5a04acc48679dcad68452cd7bc2170.png

 

 

 

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...