简体   繁体   中英

Azure Automation Complex Schedule

Is there a way we can specify a Complex Schedule for an Azure Automation Runbook?

Currently we can only configure if the Runbook needs to run Hourly,Daily,Weekly / Monthly. I want to set up something like "Run from Tuesday to Saturday, Daily at 1 PM".

Only way I can think of right now is to code it inside the RunBook.

Please let me know if there's any other way.

Thanks

Automation offers weekly and monthly schedules in the new Azure portal. This service announcement talks a bit about how you can use weekly/monthly schedules to do what you are looking for. You can also use the New-AzureRMAutomationSchedule cmdlet to create weekly schedules and specify the days (use the ByWeekly parameter set).

WeeklySchedules

You have to write custom powershell script within your runbook and schedule your runbook to run every hour or probably everyday at 1PM.

The custom powershell script will have code which checks if a day is NOT Sunday, Monday and Saturday!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM