You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/soft-delete-azure-file-share.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.author: v-mallicka
11
11
12
12
# Protect Azure Files from accidental deletion using Azure Backup
13
13
14
-
Azure Backup automatically enables [soft delete](../storage/files/storage-files-prevent-file-share-deletion.md) for all file shares in a storage account when you configure backup for any file share. With soft delete, deleted file shares and their recovery points (snapshots) are retained for at least 14 days in soft-deleted state, helping you restore data in case of accidental deletion or cyberattacks. This protection applies to both standard and premium storage accounts and is managed by Azure Backup for all storage accounts containing protected file shares.
14
+
Azure Backup automatically enables [soft delete](../storage/files/storage-files-prevent-file-share-deletion.md) for all file shares in a storage account when you configure backup for any file share. With soft delete, deleted file shares and their recovery points (snapshots) are retained for at least 14 days in soft-deleted state, helping you restore data in accidental deletion or cyberattacks. This protection applies to both standard and premium storage accounts and is managed by Azure Backup for all storage accounts containing protected file shares.
15
15
16
16
The following flow diagram shows the process and different states a file share experiences when soft delete is enabled in a storage account. It visually explains how backup items are protected and can be recovered after accidental deletion.
17
17
@@ -21,11 +21,13 @@ The following flow diagram shows the process and different states a file share e
21
21
22
22
This section answers some common questions about Soft Delete for Azure Files when using Azure Backup.
23
23
24
-
### When will soft delete be enabled for file shares in my storage account?
24
+
### When does Azure Backup enable soft delete for file shares in my storage account?
25
25
26
26
When you configure backup for the first time for any file share in a storage account, Azure Backup service enables soft delete for all file shares in the respective storage account.
27
27
28
-
### Can I configure the number of days for which my snapshots and restore points will be retained in soft-deleted state after I delete the file share?
28
+
### Can I set the retention duration of a soft-deleted file shares and snapshots?
29
+
30
+
Yes. You can set the retention period to match your needs. See [this document](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal) for steps. For backed-up file shares, the minimum retention is 14 days.
29
31
30
32
Yes, you can set the retention period according to your requirements. [This document](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal) explains the steps to configure the retention period. For storage accounts with backed-up file shares, the minimum retention setting should be 14 days.
31
33
@@ -35,15 +37,15 @@ From a security perspective, we recommend having minimum retention of 14 days fo
35
37
36
38
### What is the cost incurred during the retention period?
37
39
38
-
During the soft-deleted period, the protected instance cost and snapshot storage cost will stay as is. Also, you'll be charged for the used capacity at the regular rate for standard file shares and at snapshot storage rate for premium file shares.
40
+
During the soft-deleted period, the protected instance cost and snapshot storage cost stay as is. You're also charged for the used capacity at the regular rate for standard file shares and at snapshot storage rate for premium file shares.
39
41
40
42
### Can I perform a restore operation when my data is in soft deleted state?
41
43
42
-
You need to first undelete the soft deleted file share to perform restore operations. The undelete operation will bring the file share into the backed-up state where you can restore to any point in time. To learn how to undelete your file share, visit [this link](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal#restore-soft-deleted-file-share) or see the [Undelete File Share Script](./scripts/backup-powershell-script-undelete-file-share.md).
44
+
You need to first undelete the soft deleted file share to perform restore operations. The undelete operation brings the file share into the backed-up state where you can restore to any point in time. To learn how to undelete your file share, visit [this link](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal#restore-soft-deleted-file-share) or see the [Undelete File Share Script](./scripts/backup-powershell-script-undelete-file-share.md).
43
45
44
46
### How can I purge the data of a file share in a storage account that has at least one protected file share?
45
47
46
-
If you have at least one protected file share in a storage account, it means that soft delete is enabled for all file shares in that account and your data will be retained for 14 days after the delete operation. But if you want to purge the data right away and don’t want it to be retained then follow these steps:
48
+
If you have at least one protected file share in a storage account, it means that soft delete is enabled for all file shares in that account and your data is retained for 14 days after the delete operation. But if you want to purge the data right away and don’t want it to be retained then follow these steps:
47
49
48
50
1. If you already deleted the file share while Soft Delete was enabled, then first undelete the file share from the [Files portal](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal#restore-soft-deleted-file-share) or by using the [Undelete File Share Script](./scripts/backup-powershell-script-undelete-file-share.md).
49
51
2. Disable soft delete for file shares in your storage account by following the steps mentioned in [this document](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal#disable-soft-delete).
@@ -53,9 +55,9 @@ If you have at least one protected file share in a storage account, it means tha
53
55
>You should perform step 2 before the next scheduled backup job runs against the protected file share in your storage account. Because whenever the backup job runs, it re-enables soft delete for all file shares in the storage account.
54
56
55
57
>[!WARNING]
56
-
>After disabling soft delete in step 2, any delete operation performed against the file shares is a permanent delete operation. So if you accidentally delete the backed-up file share after disabling soft delete, you'll lose all your snapshots and won’t be able to recover your data.
58
+
>After you disable soft delete in step 2, any delete operation performed against the file shares is a permanent delete operation. So if you accidentally delete the backed-up file share after disabling soft delete, you'll lose all your snapshots and won’t be able to recover your data.
57
59
58
-
### In the context of a file share’s soft delete setting, what changes does Azure Backup do when I unregister a storage account?
60
+
### What happens to the soft delete setting for file shares when I unregister a storage account from Azure Backup?
59
61
60
62
At the time of unregistration, Azure Backup checks the retention period setting for file shares and if it's greater than 14 days or less than 14 days, it leaves the retention as is. However, if the retention is 14 days, we consider it as being enabled by Azure Backup and so we disable the soft delete during the unregistration process. If you want to unregister the storage account while keeping the retention setting as is, enable it again from the storage account pane after completing unregistration. You can refer to [this link](../storage/files/storage-files-enable-soft-delete.md?tabs=azure-portal#restore-soft-deleted-file-share) for the configuration steps.
0 commit comments