I want my Azure Function to look at an SFTP folder, and move new files to their parent folders.
My scaffolding looks like this.
public static class OnMoveFilesHttpTriggered
{
[FunctionName("OnMoveFilesHttpTriggered")]
public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log)
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
}
}
How do we enforce that there will be one and only one instance of this function running at any given time?