Skip to content

Commit 42451b8

Browse files
authored
Merge pull request #93099 from xyh1/patch-76
Update storage-blob-soft-delete.md
2 parents c56a61e + a778663 commit 42451b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ When you initially turn on soft delete, we recommend using a small retention per
147147

148148
The following steps show how to get started with soft delete.
149149

150-
### Azure portal
150+
# [Portal](#tab/azure-portal)
151151

152152
To enable soft delete, navigate to the **Soft delete** option under **Blob Service**. Then click **Enabled** and enter the number of days you want to retain soft deleted data.
153153

@@ -177,7 +177,7 @@ Once you undelete a blob's snapshots, you can click **Promote** to copy a snapsh
177177

178178
![](media/storage-blob-soft-delete/storage-blob-soft-delete-portal-promote-snapshot.png)
179179

180-
### PowerShell
180+
# [Powershell](#tab/azure-powershell)
181181

182182
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
183183

@@ -214,7 +214,7 @@ To find the current soft delete retention policy, use the following command:
214214
Get-AzStorageServiceProperty -ServiceType Blob -Context $account.Context
215215
```
216216

217-
### Azure CLI
217+
# [CLI](#tab/azure-CLI)
218218

219219
To enable soft delete, update a blob client's service properties:
220220

@@ -228,7 +228,7 @@ To verify soft delete is turned on, use the following command:
228228
az storage blob service-properties delete-policy show --account-name mystorageaccount
229229
```
230230

231-
### Python client library
231+
# [Python](#tab/python)
232232

233233
To enable soft delete, update a blob client's service properties:
234234

@@ -246,7 +246,7 @@ block_blob_service.set_blob_service_properties(
246246
delete_retention_policy=DeleteRetentionPolicy(enabled=True, days=7))
247247
```
248248

249-
### .NET client library
249+
# [.NET](#tab/net)
250250

251251
To enable soft delete, update a blob client's service properties:
252252

@@ -288,6 +288,8 @@ CloudBlockBlob copySource = allBlobVersions.First(version => ((CloudBlockBlob)ve
288288
blockBlob.StartCopy(copySource);
289289
```
290290

291+
---
292+
291293
## Are there any special considerations for using soft delete?
292294

293295
If there is a chance that your data is accidentally modified or deleted by an application or another storage account user, turning on soft delete is recommended. Enabling soft delete for frequently overwritten data may result in increased storage capacity charges and increased latency when listing blobs. You can mitigate this additional cost by storing the frequently overwritten data in a separate storage account where soft delete is disabled.

0 commit comments

Comments
 (0)