Could not retrieve deleted containers with List Containers > include=deleted URI parameter

sandboxtray 41 Reputation points
2020-11-04T15:53:22.427+00:00

Hello,

I am trying to retrieve the deleted containers, making a postman request to:
GET https://mystorage.blob.core.windows.net/?comp=list&include=deleted
But this returns an error message:

<Error>
<Code>InvalidQueryParameterValue</Code>
<Message>Value for one of the query parameters specified in the request URI is invalid.
RequestId:1052e347-601e-0025-6cbd-b2fc81000000
Time:2020-11-04T15:16:05.5191877Z</Message>
<QueryParameterName>include</QueryParameterName>
<QueryParameterValue>deleted</QueryParameterValue>
<Reason>Invalid query parameter value.</Reason>
</Error>

Is there a way I can opt-in on a per-subscription basis to utilize container soft delete through the platform? At the moment my storage doesn't have the Turn on soft delete for containers box checked and it's disabled.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,570 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 34,841 Reputation points Microsoft Employee
    2020-11-04T19:11:24.077+00:00

    @sandboxtray
    You can opt-in to container soft delete either via the CLI or PowerShell, see here for the commands. If a container was deleted prior to this feature being enabled you will not be able to restore it with this feature. If you have accidentally deleted the data and wish to recover it this might not be possible. I would reach out via a Support Request right away if there is data that needs to be restored.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful