We are attempting to use MS Application Insights in a Web API deployed to a virtual application in an Azure App Service. Currently this app service is deployed using Deployment Slots.
The following conditions are true:
- ApplicationsInsights.config is being successfully deployed as verified by opening the app's console in the Azure Portal.
- A second app deployed to a separate app service and with separate instrumentation key (otherwise configuration is identical) works perfectly.
The only differences other than instrumentation key are as follows: 1. The API is deployed as a virtual application (defined in ApplicationSettings: Virtual Applications and directories) as app /1.0 to directory site\api10 2. The app service is hosted in a deployment slot called UAT.
I am suspicious the issue occurs because (a) it is a virtual app or (b) is deployed to a deployment slot.
Any insights would be greatly appreciated.