Shreyas Pednekar
Shreyas Pednekar

Reputation: 1305

Cron expression to run azure function every day at 1 am

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'

next 5 occurrences

but after deploying the azure function on azure portal is showing 'invalid cron expression'

invalid cron expression

what can be the issue?

Upvotes: 4

Views: 14671

Answers (1)

Ivan Glasenberg
Ivan Glasenberg

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

Related Questions