Repro app for Azure bug with Trace warning:
AI: TelemetryChannel found a telemetry item without an InstrumentationKey. This is a required field and must be set in either your config file or at application startup.
See: microsoft/ApplicationInsights-dotnet#2070
Steps:
- Change
ConnectionString
inappsettings.json
- Build Docker image:
docker build --pull -t appinsightstracewarning -f .\AppInsightsTraceWarning\Dockerfile .
- Tag and push your Docker image:
docker tag appinsightstracewarning your_container_registry.azurecr.io/appinsightstracewarning
docker push your_container_registry.azurecr.io/appinsightstracewarning
- Deploy new App Service with Docker image on Azure
- Every ~15 minutes you will see trace warning in your App Insights