Flea
Flea

Reputation: 11284

Application Insights stops working after deployment to Azure App Service

My team has a .NET MVC 4.6 application we deploy to Azure App Services. We are using the Agent-based application monitoring implementation, thus, we turn on Application Insights at the App Server level and it should just work.

Every time we deploy the application to Azure (using Azure DevOps); Application Insights while showing still enabled; no longer works.

The only way to get Application Insights to work again is to Disable it; wait a few seconds and Re-Enable it. Then Live Metrics fires up and everything works fine.

This happens in our Dev, QA and Production environment. We are clearly missing something but unsure what to look for. We have the following configuration settings that Azure put there for us:

I have validated the Instrumentation Key is correct.

Upvotes: 2

Views: 3157

Answers (1)

WaitingForGuacamole
WaitingForGuacamole

Reputation: 4301

The troubleshooting documentation for App Insights Agent at https://learn.microsoft.com/en-us/azure/azure-monitor/app/status-monitor-v2-troubleshoot points out that the existence of the following assemblies could cause conflicts with App Insights Agent:

  • Microsoft.ApplicationInsights.dll
  • Microsoft.AspNet.TelemetryCorrelation.dll
  • System.Diagnostics.DiagnosticSource.dll

Upvotes: 3

Related Questions