Skip to content

Commit f0f9d4a

Browse files
author
maddieclayton
authored
Merge pull request #5196 from jabbera/patch-1
New-AzureRmRecoveryServicesBackupProtectionPolicy: Change RemoveAll to Clear so example works
2 parents bf27632 + 40379de commit f0f9d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/help/New-AzureRmRecoveryServicesBackupProtectionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdle
3636
### Example 1: Create a Backup protection policy
3737
```
3838
PS C:\> $SchPol = Get-AzureRmRecoveryServicesBackupSchedulePolicyObject -WorkloadType "AzureVM"
39-
PS C:\> $SchPol.ScheduleRunTimes.RemoveAll()
39+
PS C:\> $SchPol.ScheduleRunTimes.Clear()
4040
PS C:\> $Dt = Get-Date
4141
PS C:\> $SchPol.ScheduleRunTimes.Add($Dt.ToUniversalTime())
4242
PS C:\> $RetPol = Get-AzureRmRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM"

0 commit comments

Comments
 (0)