Application Insights is failing intermittently in Windows Docker

  azure-application-insights, c#, docker

I have a long-running console application that writes logs to Application Insights. I run this application inside a windows docker container. Here’s the base image:

The application itself targets .NET Framework 4.6.2 using the 2.17.0-beta1 version of Microsoft.ApplicationInsights.

Logging seems to fail intermittently in the Docker container. The same application running outside the container on the same machine works fine. Logging also seems to restore itself sometimes, though it can take multiple days and I can’t figure out if there’s a pattern.

Is there anything special about the docker container that would affect how application insights communicates with the resource in Azure? Please help!

Source: Docker Questions