Accidentally deleted container registry

Csanád Tabajdi 0 Reputation points
2024-09-23T18:19:13.5833333+00:00

Hello there,

Today unfortunately I delete a container registry (by az cli). Is there any way to recover it?

Thanks,

Csanad

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
461 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Goud Juvvadi 1,070 Reputation points Microsoft Vendor
    2024-09-23T21:30:32.12+00:00

    Hi Csanád Tabajdi,

    Thank you for reaching out to the Microsoft Q&A platform.

    I’m sorry to hear about the accidental deletion. Unfortunately, once a container registry is deleted it cannot be recovered directly.

    If you had enabled the soft delete policy for your Azure Container Registry, you might be able to recover the deleted artifacts. The soft delete policy allows you to restore deleted artifacts within a set retention period.

    The default retention period for soft deleted artifacts is seven days, but it’s possible to set the retention period value between one to 90 days. You can set, update, and change the retention policy value. The soft deleted artifacts expire once the retention period is complete.

    PFA,User's image

    Please find the below document for your reference:

    Recover deleted artifacts with soft delete policy in Azure Container Registry

    If an answer has been helpful, please consider Accept Answer and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community. 

    User's image

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.