Issues when running timer-triggered Azure Function

Kirill Zaitsev 10 Reputation points
2024-01-15T09:15:07.88+00:00

Today is 2024-01-15, here is the list of executions of a function from its Monitor tab:

User's image

The function is triggered with a timer once per day. On the screenshot there are two gaps marked with red blocks without anything shown in the Monitor. Although the function succeeded on 2024-01-11 there should have been no problems up until today, and I expect at least failed executions to be shown on the Monitor tab.

At the same time, there are plenty of messages that indicate that the function has started on the missing dates. For example, for today, there are six messages (there should be just one!) saying "The function is triggered"

User's image

Finally, the function contains a lot of logging at non-filtered levels, but only the first (info), "The function is triggered", makes it to the Log Analytics. Looking at real-time logs in the Monitor, I see all of the log messages I expect.

Here is the App Service Plan that runs this and other functions:

User's image

In summary, the problems I would like to ask for your help are:

  • why not all of the executions are shown in the Monitor tab, although the function was active
  • why there could be six daily executions of a function that is set up to run once per day using the timer trigger
  • why not all of the logs at not-filtered levels sent to Log Analytics, yet displayed in real-time logs
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} vote

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.