How to delete container without key, if it already encrypted by deleted key

Дмитро Величко 21 Reputation points
2022-12-20T16:13:51.39+00:00

Can't delete container, because i had deleted the key with which it was encrypted .
container and key"customer managed keys" created through terraform
my error "
Failed to delete container instances
Failed to delete the container instances in container group 'my-resource-group'. Error: The key vault key is not found to unwrap the encryption key.
"
How to delete container without key, if it already encrypted by deleted key?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
0 comments No comments
{count} votes

Accepted answer
  1. Arun Siripuram 911 Reputation points
    2022-12-20T16:22:29.993+00:00

    @Дмитро Величко

    It is not possible to delete an container that has been encrypted with a deleted key. The encryption key is used to decrypt the data in the container, and without the key, the data cannot be accessed or deleted.

    However, if you have access to the encryption key that was used to encrypt the container, you can delete the container by following these steps:

    1. Retrieve the key that was used to encrypt the container.
    2. Use the Azure Storage Explorer or Azure Portal to connect to the storage account that contains the encrypted container.
    3. Select the container that you want to delete, and click the "Delete" button.
    4. Confirm that you want to delete the container and its contents.

    If you do not have access to the encryption key, you will need to contact the owner of the key or the Azure support team for assistance in deleting the container.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.