@@ -72,9 +72,19 @@ PS C:\> New-AzAutomationSchedule -AutomationAccountName "Contoso17" -Name "Sched
7272```
7373
7474The first command gets the time zone ID from the system and stores it in the $TimeZone variable.
75- The second command creates a schedule that runs one time on the current date at 11:00 PM in the specified time zone..
75+ The second command creates a schedule that runs one time on the current date at 11:00 PM in the specified time zone.
7676
77- ### Example 2: Create a recurring schedule
77+ ### Example 2: Create a one-time schedule in another time zone
78+ ```
79+ PS C:\> $TimeZone = "Europe/Paris"
80+ PS C:\> New-AzAutomationSchedule -AutomationAccountName "Contoso17" -Name "Schedule01" -StartTime "23:00Z" -OneTime -ResourceGroupName "ResourceGroup01" -TimeZone $TimeZone
81+ ```
82+
83+ The first command initializes a $TimeZone variable with value ` Europe/Paris `
84+ The second command creates a schedule that runs one time on the current date at 23:00 UTC in the specified time zone.
85+ > Note: Schedule * StartTime* is calculated by adding the * TimeZone* Offset to provided * StartTime*
86+
87+ ### Example 3: Create a recurring schedule
7888```
7989PS C:\> $StartTime = Get-Date "13:00:00"
8090PS C:\> $EndTime = $StartTime.AddYears(1)
@@ -87,7 +97,7 @@ The second command creates a date object by using the **Get-Date** cmdlet, and t
8797The command specifies a future time.
8898The final command creates a daily schedule named Schedule02 to begin at the time stored in $StartDate and expire at the time stored in $EndDate.
8999
90- ### Example 3 : Create a weekly recurring schedule
100+ ### Example 4 : Create a weekly recurring schedule
91101```
92102PS C:\> $StartTime = (Get-Date "13:00:00").AddDays(1)
93103PS C:\> [System.DayOfWeek[]]$WeekDays = @([System.DayOfWeek]::Monday..[System.DayOfWeek]::Friday)
@@ -345,7 +355,7 @@ Accept wildcard characters: False
345355### -StartTime
346356Specifies the start time of a schedule as a **DateTimeOffset** object.
347357You can specify a string that can be converted to a valid **DateTimeOffset**.
348- If the *TimeZone* parameter is specified, the offset will be ignored and the time zone specified is used .
358+ If the *TimeZone* is provided, *StartTime* is calculated by adding the Offset of Input *TimeZone* .
349359
350360` ` ` yaml
351361Type : System.DateTimeOffset
0 commit comments