Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure Files offers soft delete for file shares so that you can easily recover your data when it's mistakenly deleted by an application or other storage account user. To learn more about soft delete, see How to prevent accidental deletion of Azure file shares.
File share type | SMB | NFS |
---|---|---|
Standard file shares (GPv2), LRS/ZRS | ![]() |
![]() |
Standard file shares (GPv2), GRS/GZRS | ![]() |
![]() |
Premium file shares (FileStorage), LRS/ZRS | ![]() |
![]() |
The following sections show how to enable and use soft delete for Azure file shares on an existing storage account:
Sign in to the Azure portal.
Navigate to your storage account and select File shares under Data storage.
Select Disabled next to Soft delete. The Soft delete settings pane will appear.
Select Enabled for Soft delete for all file shares.
Under File share retention period in days, use the slider to specify a number between 1 and 365 days.
Select Save to confirm your data retention settings.
To restore a soft deleted file share:
Navigate to your storage account and select File shares.
On the file share blade, enable Show deleted shares to display any shares that have been soft deleted.
This will display any shares currently in a Deleted state.
Select the share and select undelete. This will restore the share.
You can confirm the share is restored since its status switches to Active.
If you want to stop using soft delete, follow these instructions. To permanently delete a file share that's been soft deleted, you must undelete the share, disable soft delete, and then delete the share again.
Navigate to your storage account and select File shares under Data storage.
Select Enabled next to Soft delete. The Soft delete settings pane will appear.
Select Disabled for Soft delete for all file shares.
Select Save to confirm your data retention settings.
To learn about another form of data protection and recovery, see Overview of share snapshots for Azure Files.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Certification
Microsoft Certified: Azure Administrator Associate - Certifications
Demonstrate key skills to configure, manage, secure, and administer key professional functions in Microsoft Azure.
Documentation
Use Azure Files share snapshots
A share snapshot is a read-only, point-in-time copy of an Azure file share that you can use to recover previous versions of a file. Learn how to take snapshots using the Azure portal, Azure PowerShell, and Azure CLI.
Restore Azure File shares - Azure Backup
Learn how to use the Azure portal to restore an entire file share or specific files from a restore point created by Azure Backup.
Prevent accidental deletion of Azure file shares
Learn about soft delete for Azure Files and how you can use it for data recovery and preventing accidental deletion of Azure file shares.