Skip to content

Commit 3f75eeb

Browse files
authored
Merge pull request #205612 from tamram/tamram22-0721
address feedback on blob soft delete defaults
2 parents b4215b0 + e19586b commit 3f75eeb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

articles/storage/blobs/soft-delete-blob-enable.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: normesta
77

88
ms.service: storage
99
ms.topic: how-to
10-
ms.date: 05/05/2022
10+
ms.date: 07/21/2022
1111
ms.author: normesta
1212
ms.subservice: blobs
1313
ms.custom: devx-track-azurepowershell
@@ -19,13 +19,15 @@ Blob soft delete protects an individual blob and its versions, snapshots, and me
1919

2020
Blob soft delete is part of a comprehensive data protection strategy for blob data. To learn more about Microsoft's recommendations for data protection, see [Data protection overview](data-protection-overview.md).
2121

22-
Blob soft delete is enabled by default for a new storage account. You can enable or disable soft delete for a storage account at any time by using the Azure portal, PowerShell, or Azure CLI.
23-
2422
## Enable blob soft delete
2523

24+
You can enable or disable soft delete for a storage account at any time by using the Azure portal, PowerShell, or Azure CLI.
25+
2626
### [Portal](#tab/azure-portal)
2727

28-
To enable blob soft delete for your storage account by using the Azure portal, follow these steps:
28+
Blob soft delete is enabled by default when you create a new storage account with the Azure portal. The setting to enable or disable blob soft delete when you create a new storage account is on the **Data protection** tab. For more information about creating a storage account, see [Create a storage account](../common/storage-account-create.md).
29+
30+
To enable blob soft delete for an existing storage account by using the Azure portal, follow these steps:
2931

3032
1. In the [Azure portal](https://portal.azure.com/), navigate to your storage account.
3133
1. Locate the **Data Protection** option under **Data management**.
@@ -37,7 +39,9 @@ To enable blob soft delete for your storage account by using the Azure portal, f
3739

3840
### [PowerShell](#tab/azure-powershell)
3941

40-
To enable blob soft delete with PowerShell, call the [Enable-AzStorageBlobDeleteRetentionPolicy](/powershell/module/az.storage/enable-azstorageblobdeleteretentionpolicy) command, specifying the retention period in days.
42+
Blob soft delete is not enabled when you create a new storage account with PowerShell. You can enable blob soft delete after the new account has been created.
43+
44+
To enable blob soft delete for an existing storage account with PowerShell, call the [Enable-AzStorageBlobDeleteRetentionPolicy](/powershell/module/az.storage/enable-azstorageblobdeleteretentionpolicy) command, specifying the retention period in days.
4145

4246
The following example enables blob soft delete and sets the retention period to seven days. Remember to replace the placeholder values in brackets with your own values:
4347

@@ -58,7 +62,9 @@ $properties.DeleteRetentionPolicy.Days
5862

5963
### [Azure CLI](#tab/azure-CLI)
6064

61-
To enable blob soft delete with Azure CLI, call the [az storage account blob-service-properties update](/cli/azure/storage/account/blob-service-properties#az-storage-account-blob-service-properties-update) command, specifying the retention period in days.
65+
Blob soft delete is not enabled when you create a new storage account with Azure CLI. You can enable blob soft delete after the new account has been created.
66+
67+
To enable blob soft delete for an existing storage account with Azure CLI, call the [az storage account blob-service-properties update](/cli/azure/storage/account/blob-service-properties#az-storage-account-blob-service-properties-update) command, specifying the retention period in days.
6268

6369
The following example enables blob soft delete and sets the retention period to seven days. Remember to replace the placeholder values in brackets with your own values:
6470

0 commit comments

Comments
 (0)