I am trying to find a solution to get WebRole to run a task every morning at 5am. I looked at Quartz.Net and examples on stackoverflow, but they all plan to run the task every 10 minutes. Are there any examples showing how I can plan it?
Quartz.Net should be good for you. Use CronTrigger (or CronTriggerImpl in version 2.x).
An example cron expression is "0 0 5 * * ?" - run every day at 5 AM .
"0 0 5 * * ?"
run every day at 5 AM
Cron trigger sub-expression position value:
0
5
*
?
You can also check the Scheduler add-on in the Windows Azure Store (log in to the portal on manage.windowsazure.com, go to add-ons, then click Application Services and select Scheduler).
Up to 5000 scheduled tasks / month are free.