How to Setup Application Insights in an Azure WebJob
I just spent way too much time getting AppInsights working in an Azure WebJob.
Here are a couple of tips:
1. Make sure you are using the right InstrumentationKey. Go here to find out how: https://azure.microsoft.com/en-us/documentation/articles/app-insights-start-monitoring-app-health-usage/
2. Make sure you programmatically set your InstrumentationKey (Also store it in Azure app settings in case you need to change it.
3. Make sure you call Flush after you write any events
4. Install the following Nuget packages
5. Make sure you do not have an
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
š” Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.