Here is my function:
using Microsoft.Extensions.Logging;
using System;
namespace ExpDataIngestionBot.AzureFunctions
{
public static class RecurringFetch
{
[FunctionName("RecurringFetch")]
public static void Run(
[TimerTrigger("%TriggerIntervalInCRON%", RunOnStartup = true)]
TimerInfo myTimer,
ILogger log,
ExecutionContext context)
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
}
}
}
It does not execute at startup when ran locally from the Visual Studio instance.