Skip to content

Commit cc7a227

Browse files
authored
instant restore retention policy - command update
1 parent 7726379 commit cc7a227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/backup/backup-azure-vms-automation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ Set-AzRecoveryServicesBackupProtectionPolicy -Policy $pol -RetentionPolicy $Ret
316316
> From Az PS version 1.6.0 onwards, one can update the instant restore snapshot retention period in policy using Powershell
317317
318318
````powershell
319-
$bkpPol = Get-AzureRmRecoveryServicesBackupProtectionPolicy -WorkloadType "AzureVM" -VaultId $targetVault.ID
319+
$bkpPol = Get-AzRecoveryServicesBackupProtectionPolicy -WorkloadType "AzureVM" -VaultId $targetVault.ID
320320
$bkpPol.SnapshotRetentionInDays=7
321-
Set-AzureRmRecoveryServicesBackupProtectionPolicy -policy $bkpPol -VaultId $targetVault.ID
321+
Set-AzRecoveryServicesBackupProtectionPolicy -policy $bkpPol -VaultId $targetVault.ID
322322
````
323323

324324
The default value will be 2, user can set the value with a min of 1 and max of 5. For weekly backup policies, the period is set to 5 and cannot be changed.

0 commit comments

Comments
 (0)