How to display the invocations for a Function App using Application Insights?

Rosa Junior, Carlos 20 Reputation points
2025-11-27T13:15:21.75+00:00

Hi! I have activated Application Insights for a function app and then I could see its invocations, as shown:User's image

However, when I changed the configuration in Diagnostic Setting to ingest logs from the same function to a Log Analytics workspace, it stopped working. As you can see, the last register was from 25/11/2025 19:28:24, then there were some other register from manual calls, but this function is being called multiple times and there is nothing to see there. Here is my Diagnostic setting screen:
User's image

I've also made a few changes to the host.json file after activating logs to the Log Analytics workspace, this is how it looks now:

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    },
    "console": {
      "isEnabled": true
    },
    "logLevel": {
      "default": "Warning",
      "Function": "Debug"
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}

What should I do to get to see the invocations too?

Thanks in advance!

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

1 answer

Sort by: Most helpful
  1. Rakesh Mishra 4,030 Reputation points Microsoft External Staff Moderator
    2025-11-27T15:44:27.7566667+00:00

    Hi @Rosa Junior, Carlos ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Could you please modify host.json by removing/commenting as below and share if it works. Could you please confirm if using inProcess or Isolated function app.

    {
      "version": "2.0",
      "logging": {
        "applicationInsights": {
          "samplingSettings": {
            "isEnabled": true,
            "excludedTypes": "Request"
          },
          "enableLiveMetricsFilters": true
        }
      },
      "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle",
        "version": "[4.*, 5.0.0)"
      }
    }
    
    0 comments No comments

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.