run.csx
using System;
public static void Run(TimerInfo myTimer, ILogger log)
{
log.LogInformation("Log Information");
log.LogWarning("Log Warning");
log.LogError("Log Error");
}
function.json
Schedule to run every 5 minutes.
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 */5 * * * *"
}
]
}
Comments