I have an Azure Function written in C# and deployed as pre-compiled using Zip deploy directly from Visual Studio. Although on local everything works the function throws an error upon starting
Function (RunStatsRecalculation) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'RunStatsRecalculation'. Microsoft.Azure.WebJobs.Host: '%TimerInterval%' does not resolve to a value.
The CRON expression for timer setting is stored in the settings under key TimerInterval with value "0 0 0 * * *"
The function is defined as follows
[FunctionName("RunStatsRecalculation")]
public static async Task Run(
[TimerTrigger("%TimerInterval%")]TimerInfo myTimer,
ILogger logger,
ExecutionContext context,
CancellationToken ct)
{
Any idea what could be wrong?