Skip to content

Commit 4b09d57

Browse files
authored
Merge pull request #108613 from SumanthMarigowda-MSFT/patch-45
(AzureCXP)https://github.com/MicrosoftDocs/azure-docs/issues/50492
2 parents ea06329 + 0832036 commit 4b09d57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ $MatchingAccounts | Enable-AzStorageDeleteRetentionPolicy -RetentionDays 7
203203
You can verify that soft delete was turned on by using the following command:
204204

205205
```powershell
206-
$MatchingAccounts | Get-AzStorageServiceProperty -ServiceType Blob
206+
$MatchingAccounts | $account = Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name storageaccount
207+
Get-AzStorageServiceProperty -ServiceType Blob -Context $account.Context | Select-Object -ExpandProperty DeleteRetentionPolicy
207208
```
208209

209210
To recover blobs that were accidentally deleted, call Undelete on those blobs. Remember that calling **Undelete Blob**, both on active and soft deleted blobs, will restore all associated soft deleted snapshots as active. The following example calls Undelete on all soft deleted and active blobs in a container:

0 commit comments

Comments
 (0)