1

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

1 Answer 1

2

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 * * *

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I even thought that it is impossible to do it in the same function as the times that I have selected were not able to fit in CRON expression.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.