Skip to content

Commit be30ff4

Browse files
author
AbhishekMallick-MS
committed
Addressed PR #256607
1 parent 1986fe1 commit be30ff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/backup/backup-azure-security-feature-cloud.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Soft delete for Azure Backup
33
description: Learn how to use security features in Azure Backup to make backups more secure.
44
ms.topic: how-to
5-
ms.date: 01/04/2024
5+
ms.date: 02/08/2024
66
ms.custom: devx-track-azurepowershell, engagement-fy24
77
ms.service: backup
88
author: AbhishekMallick-MS
@@ -130,8 +130,8 @@ Follow these steps:
130130
1. Identify the items that are in soft-deleted state.
131131

132132
```powershell
133-
134-
Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultId $myVaultID | Where-Object {$_.DeleteState -eq "ToBeDeleted"}
133+
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "yourResourceGroupName" -Name "yourVaultName"
134+
Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultID $vault.ID | Where-Object {$_.DeleteState -eq "ToBeDeleted"}
135135
136136
Name ContainerType ContainerUniqueName WorkloadType ProtectionStatus HealthStatus DeleteState
137137
---- ------------- ------------------- ------------ ---------------- ------------ -----------

0 commit comments

Comments
 (0)