Skip to content

Commit 457a2e3

Browse files
authored
Merge pull request #176821 from pvrk/patch-25
Correcting PS code
2 parents 42c8592 + d02be34 commit 457a2e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ By default, a start time is defined in the Schedule Policy Object. Use the follo
161161

162162
```powershell
163163
$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType "MSSQL"
164-
$UtcTime = Get-Date -Date "2019-03-20 01:30:00Z"
165-
$UtcTime = $UtcTime.ToUniversalTime()
166-
$schpol.ScheduleRunTimes[0] = $UtcTime
164+
$UtcTime = (Get-Date -Date "2019-03-20 01:30:00Z").ToUniversalTime()
165+
$schPol.FullBackupSchedulePolicy.ScheduleRunTimes[0] = $UtcTime
167166
```
168167

169168
> [!IMPORTANT]

0 commit comments

Comments
 (0)