If you want to know more Azure App Insight, please visit the documentation here.
Why I write this? Yeah, to remember what I’ve learned. This article only summary from this module.
Note: Hemm… Because some features from Azure very quick to changes, somehow the guide from that module not relevant again. This article also maybe not relevant after some months!
In this article, we use NetCore. So we can install the library Microsoft.ApplicationInsights.AspNetCore
The repositories come from here, you also can deploy from there!
I just add this one line to ConfigureServices after install the library/nuget
Check your apps
I assume you know how to deploy the Web Apps. After finished deploy, visit this link: https://.azurewebsites.net/api/v1.0/WeatherForecast.
In that link, we also trigger the app insight event.
Because Azure will not track Free/Shared plan, please make sure your AppServicePlan is Basic or more. Sadly, the sandbox not allowed it (when I try the sandbox from that module). :(
In my case, I still need to turn on the App Insight to Recommended (previously Basic), don’t forget to turn on the Profiler.
You can check to Investigate > Transaction Search for more information about your previous custom event.
In my side, will looks like this.
Yeah! You’re setup it correctly. Anyway, if you still confused. You can visit the module for the basic knowledge. I know some steps is outdate!
Don’t forget always to clean up your resource whenever you don’t need it again.