bippan
bippan

Reputation: 289

Using different time for same azure time trigger function

Can I trigger the same azure function for 2 different times say one for 9:30 AM and another for 5:00 PM everyday.

Upvotes: 1

Views: 143

Answers (1)

suziki
suziki

Reputation: 14088

No, it is impossible.

You should divided into two parts, your requirements cannot be written in only one cron expression.

You should use two timetrigger with below expression:

0 30 9 * * *

0 0 17 * * *

Dividing into two functions is not very complicated. If you are based on a consumption plan, charges are based on the number of runs, this means it doesn’t cost more in terms of cost. In short, a single cron expression cannot achieve your needs.


By the way, if you want 9:00 AM and 5:00 PM, you can use:

0 0 9,17 * * *

Upvotes: 2

Related Questions