This article will guide you to add Application Insight on Azure for an existing ASP.NET Web Application. If you are starting a new project or have an existing Web Application and want to use Application Insights, Visual Studio 2013 and later now has a built-in capability to add Application Insights to your Application.
Step 1
Open “MyWebsite” ASP.NET Web Application in Visual studio 2013.
Note
This is an existing ASP.NET Web Application, which you already have and you want to add “Application Insights” to capture telemetry data.
Step 2
Add Microsoft.ApplicationInsights.Web package from nuget package manager
https://www.nuget.org/packages/Microsoft.ApplicationInsights.Web
This package is required .Net framework 4.6.1 or greater version
it will add following dependency in project and add applicationinsight.config in root path
Open Web.config file and check the modules added to the configuration.
Add InstrumentationKey key at the top in ApplicationInsight.config
No comments:
Post a Comment