Azure Functions Timer Trigger Scheduling and Time Zone ChecklistAzure Functions Timer Trigger Scheduling and Time Zone Checklist
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Azure Functions timer triggers trip people up in three ways, so here's my checklist.
1. The schedule is NCRONTAB with six fields, seconds first. "0 0 9 * * 1-5" means 9:00 on weekdays, not "0 9 * * 1-5".
2. It runs in UTC by default. On Windows plans you can set the WEBSITE_TIME_ZONE app setting (for example "Eastern Standard Time"). On Linux, use TZ, or just write the schedule in UTC and note it in a comment.
3. Leave runOnStartup off in production. Otherwise every restart or scale-out can fire an extra run.
Bonus: check timer.IsPastDue and log it. If the app was down, you'll know the run came in late instead of wondering why a report showed up twice.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started