How can I call my Azure function once on startup and then triggered every 5 minutes after that?
I have a Function that triggers every 5 minutes, during testing it is a pain to wait 5 minutes for it to trigger, so I would like it to trigger once on start up, and then use the every 5 minutes trigger after.
Here is my code
[Function("Function")]
public async Task Run([TimerTrigger("0 */5 * * * *")] MyInfo myTimer)
{
//do stuff
}
which triggers it every 5 minutes, but not on start up.