Search code examples
c#azureazure-devopsazure-functionsserverless

Wake up Azure Function


I have an existing Azure Function that is on a consumption plan

I am writing another function which will call this

Once the existing function is running, it processes files in storage account.

In order the files in my storage account to be processed, we have to manually go into the portal and "wake up" the function by navigating

Is there a way to do this via C# code?

This function is hosted on a consumption based plan


Solution

  • May be this is exact solution you are looking for. I came across this article "An Azure Function to keep other Functions/URLs warmed up" while looking for such solution, haven't tried it yet but I will. If you try it first do post the result.

    https://www.sharepointnutsandbolts.com/2018/09/Azure-Function-Warmup-Cold-Start.html

    The other approach that I came across is "pinging a health endpoint within your Azure Functions through Azure Monitor." Create a URL ping test. https://learn.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability

    I am in the process of trying these out. Hope this helps.