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-prevent-file-share-deletion.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,18 @@ services: storage
14
14
Azure Files offers soft delete, which allows you to recover your file share when it's mistakenly deleted by an application or other storage account user.
15
15
16
16
## Applies to
17
-
18
-
| File share type | SMB | NFS |
19
-
|-|:-:|:-:|
20
-
| Standard file shares (GPv2), LRS/ZRS |||
21
-
| Standard file shares (GPv2), GRS/GZRS |||
@@ -32,7 +38,7 @@ Soft delete can be enabled on either new or existing file shares. Soft delete is
32
38
33
39
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, because any other file shares in that storage account will be vulnerable to accidental deletion while soft delete is off.
34
40
35
-
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.
41
+
For soft-deleted provisioned 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.
36
42
37
43
## Configuration settings
38
44
@@ -47,12 +53,11 @@ If you delete some file shares with soft delete enabled and then disable soft de
47
53
When you enable soft delete, you also need to configure the retention period. The retention period is the amount of time that soft deleted file shares are stored and available for recovery. For file shares that are explicitly deleted, the retention period clock starts when the data is deleted. You can specify a retention period between 1 and 365 days. You can change the soft delete retention period at any time. An updated retention period will only apply to shares deleted after the retention period has been updated. Shares deleted before the retention period update will expire based on the retention period that was configured when that data was deleted.
48
54
49
55
## Pricing and billing
56
+
Billing for soft-delete depends on the billing model of the file share. For more information, see the following:
50
57
51
-
Both standard and premium file shares are billed on the used capacity when soft deleted, rather than provisioned capacity. Additionally, premium file shares are billed at the snapshot rate while in the soft delete state. Standard file shares are billed at the regular rate while in the soft delete state. You won't be charged for data that's permanently deleted after the configured retention period.
52
-
53
-
For more information on prices for Azure Files, see the [Azure Files Pricing Page](https://azure.microsoft.com/pricing/details/storage/files/).
54
-
55
-
When you initially enable soft delete, we recommend using a small retention period to better understand how the feature affects your bill.
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
37
43
38
44
Sign in to the [Azure portal](https://portal.azure.com).
39
45
40
-
### Create a FileStorage storage account
46
+
### Create a storage account
41
47
42
-
Before you can work with an NFS 4.1 Azure file share, you have to create an Azure storage account with the premium performance tier. Currently, NFS 4.1 shares are only available as premium file shares.
48
+
Before you can work with an NFS file share, you have to create a storage account for SSD file shares.
43
49
44
50
1. On the Azure portal menu, select **All services**. In the list of resources, type **Storage Accounts**. As you begin typing, the list filters based on your input. Select **Storage Accounts**.
45
51
1. On the **Storage Accounts** window that appears, choose **+ Create**.
46
52
1. On the **Basics** tab, select the subscription in which to create the storage account.
47
53
1. Under the **Resource group** field, select **Create new** to create a new resource group to use for this tutorial.
48
54
1. Enter a name for your storage account. The name you choose must be unique across Azure. The name also must be between 3 and 24 characters in length, and may include only numbers and lowercase letters.
49
-
1. Select a region for your storage account, or use the default region. Azure supports NFS file shares in all the same regions that support premium file storage.
55
+
1. Select a region for your storage account, or use the default region. Azure supports NFS file shares in all the same regions that support SSD file shares.
50
56
1. Select the *Premium* performance tier to store your data on solid-state drives (SSD). Under **Premium account type**, select *File shares*.
51
57
1. Leave replication set to its default value of *Locally redundant storage (LRS)*.
52
58
1. Select **Review + Create** to review your storage account settings and create the account.
0 commit comments