Function App Function Execution Count at zero

Cheah, Felix FC 20 Reputation points
2025-05-04T20:59:54.8633333+00:00

I have a function app with several functionthat is triggered when there's a new file in a blob storage.User's image

For some reason the metric "Function Execution Count" keeps going to zero. I've checked individual function and have seen they have defeintely run. I've also looked in the log analytics workspace and can see the functions running. Any reason why the Function Execution Count is showing zero? I use this metric to alert me and the fuction app isn't running

User's image

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

1 answer

Sort by: Most helpful
  1. Madugula Jahnavi 495 Reputation points Microsoft External Staff Moderator
    2025-05-20T10:31:33.25+00:00

    Hello Cheah, Felix FC,

    Check below troubleshooting to resolve the issue:

    Add below "host.json" in your code and make changes (function name) accordingly and check if the metrics are working.

    {
      "version": "2.0",
      "logging": {
        "logLevel": {
          "default": "Information",
          "Function": "Information",
          "Host.Aggregator": "Information",
          "Host.Results": "Information",
          "Function.Function1": "Information",
          "Function.Function1.User": "Information"
        }
      },
      "applicationInsights": {
        "samplingSettings": {
          "isEnabled": false
        },
        "enableLiveMetricsFilters": true
      },
      "concurrency": {
        "dynamicConcurrencyEnabled": true,
        "snapshotPersistenceEnabled": true
      }
    }
    

    Check the hosting plan of the dedicated function app and see if any one of the limitations are being hit.

    You can go to the "Diagnose and solve problems" option under the Function App's resource menu contains scenario-based troubleshooting step that can be used to get more inputs on the Statistics related to function execution. Once you visit the above path, you can check for execution then it provides you the function execution counts related details.

    User's image

    Also, verify if you have configured and enabled the application insights properly regarding the logs and metrics part.

    If the answer is helpful, please click on Accept Answer and upvote it. If you still have any queries, click on comment.


Your answer

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