Azure functions not starting execution unless I open the function in portal

Deep Thakkar 10 Reputation points
2024-02-05T08:27:42.96+00:00

I was trying to deploy two function apps using one arm template arm_template: twoFunc_deployment.txt. Now the two function apps are getting deployed correctly but the expected behavior that it must start execution automatically as per the given trigger that is '0 */3 * * * *' so it must execute every 3 minutes, but that is not happening. But once I open the function app in the portal then the function app starts executing as per the given interval. Assuming an issue with the approach, I deployed a Single Azure Function App which has only one timer trigger function which is supposed to run at an interval of every 3 minutes, arm_template: single_deployment.txt. Now after the deployment the function app is not starting any form of execution. I deployed the function app at 11:20 am IST and waited for 20 minutes then opened the function app on the portal. Now actual behavior should have been that there would be around 5-6 executions but there were none. Then when checked into the traces, it shows the logs starting from 11:41 am IST which is the time at which I opened the function app in the portal. This shows that the function app is only starting execution once I open it in the portal. Please someone help me regarding this issue. image (2)

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. Punam 75 Reputation points Microsoft Employee
    2024-02-07T10:10:14.3966667+00:00

    This is expected behaviour either you can move to elastic premium plan or keep your function app alive by writing some custom api which keep hitting the function app https://microsoft.github.io/AzureTipsAndTricks/blog/tip260.html


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.