This app demos using Application Insights in a Console app, with several examples of various API usages. Also included are examples of dependency tracking with a Python and HTTP Request.
If you want to remove the Python depdendency, just comment out the line that calls the Python script.
- Create an Application Insights Resource in Azure
- Note down it's Instrumentation Key, as you'll need it in the next step
- Add an appsettings.json file in your root directory with the following contents:
{
"ConnectionStrings": {
"DefaultConnection": ""
},
"MySettings": {
"InstrumentationKey": "<Your App Insights Instrumentation key>",
"UserId": "<Any Id you want to mock>"
}
}
Python 3.6+