Recover deleted files from azure

Peter Clegg 25 Reputation points
2023-06-22T09:31:37.26+00:00

In azure storage explore I accidently started to delete a folder within a file share. I cancelled but lost alot of file (over 50,000). The file share was set to soft delete and I don't have a backup restore point. Can I recover the files and if so how?

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
240 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 44,996 Reputation points Microsoft Employee
    2023-06-22T17:14:50.0133333+00:00

    @Peter Clegg Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I would recommend to contact Azure support, If there any possibilities to recovery the data they can help you out immediately : https://azure.microsoft.com/en-in/support If you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support. In this case, could you send an email to AzCommunity[at]Microsoft[dot]com referencing this thread as well as your subscription ID. Please mention "ATTN subm" in the subject field. Thank you for your cooperation on this matter and look forward to your reply.

    When soft delete for Azure file shares is enabled on a storage account, if a file share is deleted, it transitions to a soft deleted state instead of being permanently erased. You can configure the amount of time soft deleted data is recoverable before it's permanently deleted, and undelete the share anytime during this retention period. After being undeleted, the share and all of contents, including snapshots, will be restored to the state it was in prior to deletion. Soft delete only works on a file share level - individual files that are deleted will still be permanently erased.

    Soft delete can be enabled on either new or existing file shares. Soft delete is also backwards compatible, so you don't have to make any changes to your applications to take advantage of the protections of soft delete. Soft delete doesn't work for NFS shares, even if it's enabled for the storage account.

    To permanently delete a file share in a soft delete state before its expiry time, you must undelete the share, disable soft delete, and then delete the share again. Then you should re-enable soft delete, since any other file shares in that storage account will be vulnerable to accidental deletion while soft delete is off.

    For soft-deleted premium file shares, the file share quota (the provisioned size of a file share) is used in the total storage account quota calculation until the soft-deleted share expiry date, when the share is fully deleted.

    Additional information: Prevent accidental deletion of Azure file shares

    Please let us know if you have any further queries. I’m happy to assist you further.


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


1 additional answer

Sort by: Most helpful
  1. Rohit Kumar Sinha 1,321 Reputation points
    2023-06-22T10:03:02.09+00:00

    HI Peter ,

    If Soft delete is enabled , you can recover the data , please check link below.

    https://video2.skills-academy.com/en-us/azure/storage/files/storage-files-enable-soft-delete?tabs=azure-portal

    If this helps , please click on Accept Answer