Can Azure Function be triggered by a Queue message or by HTTP trigger or whatever and after the triggering it starts to run on a schedule, for example every 1 minute?
Asked
Active
Viewed 59 times
1 Answers
0
Not directly. You'd have to define 2 functions: one for triggering (queue / HTTP), and one timer-based, and store the state "enabled/disabled" somewhere. That can be a value in Table Storage, or you could store an App Setting enabling/disabling the timer function.
If you want to avoid doing that by hand and paying for all the invocations of disabled timer, have a look at Durable Functions, where your trigger could start an orchestration, and orchestration would schedule time recurring actions. Check Timers in Durable Functions.

Mikhail Shilkov
- 34,128
- 3
- 68
- 107