Search code examples
azureazure-application-insightsazure-appservice

Azure App Service Application Insights no longer showing request data


Was working all fine then I published a code update via Visual Studio and now no longer get any request data. The Overview page in the Azure Portal just shows flatlined graphs and Live Metrics has the message "Not available: couldn't connect to your application"

This a .NET 8 Asp.Net Core app

What I can see though is under Transaction Search it will show TRACE messages, just nothing else.

enter image description here


Solution

  • The Live metrics in the Application Insights will be enabled by default when you deploy the App to Azure App Service.

    enter image description here

    • I have configured Application Insights from Connected Services.

    enter image description here

    • If you want to enable Live metrics manually, you can do it from the deployed App Service => Application Insights

    • Click on Turn on the Application Insights.

    enter image description here

    enter image description here

    • As mentioned in the MSDoc you can even enable it from code.

    • I can see both requests and traces in Transaction search.

    enter image description here

    Refer appsetting.json file setting in this SOThread for AppInsights Configuration.