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/blobs/soft-delete-blob-enable.md
+71-1Lines changed: 71 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: normesta
6
6
7
7
ms.service: azure-blob-storage
8
8
ms.topic: how-to
9
-
ms.date: 07/21/2022
9
+
ms.date: 06/10/2024
10
10
ms.author: normesta
11
11
ms.custom: devx-track-azurepowershell
12
12
---
@@ -80,6 +80,41 @@ az storage account blob-service-properties show --account-name <storage-account>
80
80
--resource-group <resource-group>
81
81
```
82
82
83
+
### [Template](#tab/template)
84
+
85
+
To enable blob soft delete with an Azure Resource Manager template, create a template that sets the **deleteRetentionPolicy** property. The following steps describe how to create a template in the Azure portal.
86
+
87
+
1. In the Azure portal, choose **Create a resource**.
88
+
1. In **Search the Marketplace**, type **Deploy a custom template**, and then press **ENTER**.
89
+
1. Choose **Build your own template in the editor**.
90
+
1. In the template editor, paste in the following JSON. Replace the `<account-name>` placeholder with the name of your storage account.
@@ -168,6 +203,41 @@ To enable blob soft delete for your storage account by using the Azure portal, f
168
203
az storage fs service-properties update --delete-retention false --connection-string $con
169
204
```
170
205
206
+
### [Template](#tab/template)
207
+
208
+
To enable blob soft delete with an Azure Resource Manager template, create a template that sets the **deleteRetentionPolicy** property. The following steps describe how to create a template in the Azure portal.
209
+
210
+
1. In the Azure portal, choose **Create a resource**.
211
+
1. In **Search the Marketplace**, type **Deploy a custom template**, and then press **ENTER**.
212
+
1. Choose **Build your own template in the editor**.
213
+
1. In the template editor, paste in the following JSON. Replace the `<account-name>` placeholder with the name of your storage account.
0 commit comments