Integrating Application insights to asp.net mvc

BLAISE SEBAGABO 1 Reputation point
2020-06-22T17:24:11.207+00:00

I am trying to integrate app insight to an http://asp.net MVC trying to add it through vs2019 it says configured but when I go to the portal to look at the live metrics or requests nothing is there. I am able to see request on local 10437-image-2020-06-22-at-112618-am.png

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,309 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,466 Reputation points
    2020-06-23T12:19:45.143+00:00

    Hello @BLAISESEBAGABO-1109,

    From the Debug logs seen in the screenshot above, it appears that you have not configured your Application to pump telemetry to an Application Insights resource on Azure, i.e., you have configured it in local-only mode.

    Doing so just adds the Application Insights SDK to your app but doesn't configure it to send telemetry to the App Insights resource in the portal. Therefore, you will be able to see telemetry only in Visual Studio while you are debugging.

    Now, you can return to this configuration page (Project > Application Insights > Configure Application Insights...) and complete configuration, or you could wait until after you have deployed your app and switch on telemetry at run time.

    Please check and reach out in case you run into issues or have further questions.


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.