Skip to content

Commit be361d6

Browse files
authored
Merge pull request #110372 from dcurwin/patch-15
Remove invalid parameters
2 parents 511bd9d + 49ab1ea commit be361d6

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
@@ -195,7 +195,7 @@ A backup protection policy is associated with at least one retention policy. A r
195195
By default, a start time is defined in the Schedule Policy Object. Use the following example to change the start time to the desired start time. The desired start time should be in UTC as well. The below example assumes the desired start time is 01:00 AM UTC for daily backups.
196196

197197
```powershell
198-
$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType "AzureVM" -VaultId $targetVault.ID
198+
$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType "AzureVM"
199199
$UtcTime = Get-Date -Date "2019-03-20 01:00:00Z"
200200
$UtcTime = $UtcTime.ToUniversalTime()
201201
$schpol.ScheduleRunTimes[0] = $UtcTime
@@ -207,7 +207,7 @@ $schpol.ScheduleRunTimes[0] = $UtcTime
207207
The following example stores the schedule policy and the retention policy in variables. The example uses those variables to define the parameters when creating a protection policy, *NewPolicy*.
208208

209209
```powershell
210-
$retPol = Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM" -VaultId $targetVault.ID
210+
$retPol = Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM"
211211
New-AzRecoveryServicesBackupProtectionPolicy -Name "NewPolicy" -WorkloadType "AzureVM" -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $targetVault.ID
212212
```
213213

0 commit comments

Comments
 (0)