Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 557
Shreyas Pednekar Avatar asked Oct 29 '25 07:10

Shreyas Pednekar


1 Answers

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}

like image 65
Ivan Yang Avatar answered Oct 31 '25 07:10

Ivan Yang