Skip to content

Commit d3f5f73

Browse files
authored
Merge pull request #124811 from SteffanRostvig/patch-1
Update backup-azure-security-feature-cloud.md
2 parents f34c332 + f2e6a6b commit d3f5f73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,20 @@ Follow these steps:
130130
1. Identify the items that are in soft-deleted state.
131131

132132
```powershell
133-
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "yourResourceGroupName" -Name "yourVaultName"
134-
Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultID $vault.ID | Where-Object {$_.DeleteState -eq "ToBeDeleted"}
133+
$myVault = Get-AzRecoveryServicesVault -ResourceGroupName "yourResourceGroupName" -Name "yourVaultName"
134+
Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultID $myVault.ID | Where-Object {$_.DeleteState -eq "ToBeDeleted"}
135135
136136
Name ContainerType ContainerUniqueName WorkloadType ProtectionStatus HealthStatus DeleteState
137137
---- ------------- ------------------- ------------ ---------------- ------------ -----------
138138
VM;iaasvmcontainerv2;selfhostrg;AppVM1 AzureVM iaasvmcontainerv2;selfhostrg;AppVM1 AzureVM Healthy Passed ToBeDeleted
139139
140-
$myBkpItem = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultId $myVaultID -Name AppVM1
140+
$myBkpItem = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultId $myVault.ID -Name AppVM1
141141
```
142142

143143
2. Reverse the deletion operation that was performed when soft-delete was enabled.
144144

145145
```powershell
146-
Undo-AzRecoveryServicesBackupItemDeletion -Item $myBKpItem -VaultId $myVaultID -Force
146+
Undo-AzRecoveryServicesBackupItemDeletion -Item $myBKpItem -VaultId $myVault.ID -Force
147147
148148
WorkloadName Operation Status StartTime EndTime JobID
149149
------------ --------- ------ --------- ------- -----
@@ -152,7 +152,7 @@ Follow these steps:
152152
3. As the soft-delete is disabled, the deletion operation immediately removes the backup data.
153153

154154
```powershell
155-
Disable-AzRecoveryServicesBackupProtection -Item $myBkpItem -RemoveRecoveryPoints -VaultId $myVaultID -Force
155+
Disable-AzRecoveryServicesBackupProtection -Item $myBkpItem -RemoveRecoveryPoints -VaultId $myVault.ID -Force
156156
157157
WorkloadName Operation Status StartTime EndTime JobID
158158
------------ --------- ------ --------- ------- -----
@@ -172,4 +172,4 @@ Follow these steps:
172172
## Next steps
173173

174174
- [Overview of security features in Azure Backup](security-overview.md)
175-
- [Frequently asked questions](soft-delete-azure-backup-faq.yml).
175+
- [Frequently asked questions](soft-delete-azure-backup-faq.yml).

0 commit comments

Comments
 (0)