Repro Steps dotnet publish --os linux --arch x64 /t:PublishContainer docker run -it -rm --port 8080:8080 --env APPLICATIONINSIGHTS_CONNECTION_STRING=$DEV_APP_INSIGHTS azuremonitorloggingscopes curl http://localhost:8080/