I have a few C# Azure Functions that run on a schedule using timer triggers. I\'ve set them up like so, where %TimerSchedule% refers to a cron expression in the
%TimerSchedule%
I had the same question, and used the DEBUG-flag to have the RunOnStartup only while debugging:
public static void Run( [TimerTrigger("* 0 7 * * 1-5" #if DEBUG , RunOnStartup=true #endif )]TimerInfo myTimer, TraceWriter log) {