![]() ![]() ![]() The following example shows how to create a recurring schedule that runs on the first, fifteenth, and last day of a month. ]$WeekendDays = -AutomationAccountName "ContosoAutomation" -Name "Weekends 6PM" -StartTime $StartTime -WeekInterval 1 -DaysOfWeek $WeekendDays -ResourceGroupName "ResourceGroup01"Ĭreate a recurring schedule for the first, fifteenth, and last days of the month The following example shows how to create a weekly schedule that runs on weekends only. ]$WeekDays = -AutomationAccountName "ContosoAutomation" -Name "Schedule03" -StartTime $StartTime -WeekInterval 1 -DaysOfWeek $WeekDays -ResourceGroupName "ResourceGroup01"Ĭreate a weekly recurring schedule for weekends The following example shows how to create a weekly schedule that runs on weekdays only. New-AzAutomationSchedule -AutomationAccountName "ContosoAutomation" -Name "Schedule02" -StartTime $StartTime -ExpiryTime $EndTime -DayInterval 1 -ResourceGroupName "ResourceGroup01" The following example shows how to create a recurring schedule that runs every day at 1:00 PM for a year. New-AzAutomationSchedule -AutomationAccountName "ContosoAutomation" -Name "Schedule01" -StartTime "23:00" -OneTime -ResourceGroupName "ResourceGroup01" -TimeZone $TimeZone The following example creates a one-time schedule. The following examples show how to create many different schedule scenarios.Īutomation schedules do not currently support using special characters in the schedule name. You specify the start time for the schedule and the frequency it should run. Use the New-AzAutomationSchedule cmdlet to create schedules. Choose First, Second, Third, Fourth, or Last. If you select Week days, the Recur every option appears. ![]() If you want the schedule to run on the last day, select Yes under Run on last day of month. If you choose a date such as the 31st that doesn't occur in the current month, the schedule won't run. If you select Month days, a calendar appears so that you can choose as many days as you want. For the Monthly occurrences option, select either Month days or Week days.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |