Reputation: 1305
I'm working on azure function time trigger using visual studio. I have set cron expression "TimerTrigger("0 1 * * *")" to run my azure function every day at 1 am. after running the function locally it is showing correct 'next 5 occurrences'
but after deploying the azure function on azure portal is showing 'invalid cron expression'
what can be the issue?
Upvotes: 4
Views: 14671
Reputation: 29940
You're missing a "0", the correct one should be "0 0 1 * * * ".
A CRON expression includes six fields:
{second} {minute} {hour} {day} {month} {day-of-week}
Upvotes: 7