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/storage/files/storage-files-enable-soft-delete.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ services: storage
12
12
13
13
# How to enable soft delete on Azure file shares
14
14
15
-
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](storage-files-prevent-file-share-deletion.md).
15
+
Azure Files offers soft delete for file shares so that you can easily recover your data if you mistakenly the file share. To learn more about soft delete, see [How to prevent accidental deletion of Azure file shares](storage-files-prevent-file-share-deletion.md).
16
16
17
17
## Applies to
18
18
| Management model | Billing model | Media tier | Redundancy | SMB | NFS |
@@ -41,12 +41,12 @@ The following sections show how to enable and use soft delete for Azure file sha
41
41
42
42
1. Sign in to the [Azure portal](https://portal.azure.com).
43
43
1. Navigate to your storage account and select **File shares** under **Data storage**.
44
-
1. Select **Disabled** next to **Soft delete**. The **Soft delete** settings pane will appear.
44
+
1. Select **Disabled** next to **Soft delete**.
45
45
1. Select **Enabled** for **Soft delete for all file shares**.
46
46
1. Under **File share retention period in days**, use the slider to specify a number between 1 and 365 days.
47
47
1. Select **Save** to confirm your data retention settings.
48
48
49
-
:::image type="content" source="media/storage-how-to-recover-deleted-account/files-enable-soft-delete-new-ui.png" alt-text="Screenshot of the storage account soft delete settings pane. Highlighting the file shares soft delete section, enable toggle, set a retention period, and save. This will enable soft delete for all file shares in your storage account.":::
49
+
:::image type="content" source="media/storage-how-to-recover-deleted-account/files-enable-soft-delete-new-ui.png" alt-text="Screenshot of the storage account soft delete settings pane. Highlighting the file shares soft delete section, enable toggle, set a retention period, and save. This enables soft delete for all file shares in your storage account.":::
50
50
51
51
# [PowerShell](#tab/azure-powershell)
52
52
To enable soft delete, you must update the settings for all Azure file shares, also known as the `FileService` properties. The following example enables soft delete for all file shares in a storage account. Remember to replace `<resource-group>` and `<storage-account>` with the appropriate values for your environment.
@@ -99,15 +99,15 @@ az storage account file-service-properties show \
99
99
To restore a soft deleted file share:
100
100
101
101
1. Navigate to your storage account and select **File shares**.
102
-
1. On the file share blade, enable **Show deleted shares** to display any shares that have been soft deleted.
102
+
1. On the file share blade, enable **Show deleted shares** to display any shares that are soft deleted.
103
103
104
-
This will display any shares currently in a **Deleted** state.
104
+
This displays any shares currently in a **Deleted** state.
105
105
106
-
:::image type="content" source="media/storage-how-to-recover-deleted-account/undelete-file-share.png" alt-text="If the status column, the column next to the name column, is set to Deleted, then your file share is in a soft deleted state. And will be permanently deleted after your specified retention period.":::
106
+
:::image type="content" source="media/storage-how-to-recover-deleted-account/undelete-file-share.png" alt-text="If the status column, the column next to the name column, is set to Deleted, then your file share is in a soft deleted state, and is be permanently deleted after your specified retention period.":::
107
107
108
-
1. Select the share and select **undelete**. This will restore the share.
108
+
1. Select the share and select **undelete** to restore the share.
109
109
110
-
You can confirm the share is restored since its status switches to **Active**.
110
+
You can confirm the share is restored when its status switches to **Active**.
111
111
112
112
:::image type="content" source="media/storage-how-to-recover-deleted-account/restored-file-share.png" alt-text="If the status column, the column next to the name column, is set to Active, then your file share has been restored.":::
113
113
@@ -121,7 +121,7 @@ Get-AzRmStorageShare `
121
121
-IncludeDeleted
122
122
```
123
123
124
-
Once you've identified the share you'd like to restore, you can use it with the following command to restore it:
124
+
Once you identify the share you want to restore, you can use the following command to restore it:
125
125
126
126
```PowerShell
127
127
Restore-AzRmStorageShare `
@@ -140,7 +140,7 @@ az storage share-rm list \
140
140
--include-deleted
141
141
```
142
142
143
-
Once you've identified the share you'd like to restore, you can restore it with the following command:
143
+
Once you identify the share you'd like to restore, you can restore it with the following command:
@@ -155,11 +155,11 @@ If you want to stop using soft delete, follow these instructions. To permanently
155
155
# [Portal](#tab/azure-portal)
156
156
157
157
1. Navigate to your storage account and select **File shares** under **Data storage**.
158
-
1. Select **Enabled** next to **Soft delete**. The **Soft delete** settings pane will appear.
158
+
1. Select **Enabled** next to **Soft delete**.
159
159
1. Select **Disabled** for **Soft delete for all file shares**.
160
160
1. Select **Save** to confirm your data retention settings.
161
161
162
-
:::image type="content" source="media/storage-how-to-recover-deleted-account/files-disable-soft-delete.png" alt-text="Disabling soft delete will allow you to immediately and permanently delete all file shares in your storage account.":::
162
+
:::image type="content" source="media/storage-how-to-recover-deleted-account/files-disable-soft-delete.png" alt-text="Disabling soft delete allows you to immediately and permanently delete any file shares in your storage account.":::
163
163
164
164
# [PowerShell](#tab/azure-powershell)
165
165
You can use the following command to disable soft delete on your storage account.
0 commit comments