Application Insights with Azure App Service

Application Insights is a simple way to detect and diagnose exceptions and application performance issues in your web apps and web services. In this post, I will walk you through adding it to an ASP.NET MVC application. In order to take advantage of this, you’ll need to log into your Azure account and go to your App Service that you created and look under Monitoring then you will see Application Insights. Open it and create a new resource and press OK as shown below.  You’ll see that you can automatically instrument your ASP.NET app with a restart. Once completed, go and visit your app and refresh a couple of times and then go back and take a look at the live stream. 

If you add Application Insights to your Visual Studio project by right-clicking the project and then adding Configure Application Insights, then you can add code to collect exception telemetry. 

Copyright © All Rights Reserved - C# Learners