I'm currently experimenting with the new beta asp.net core app insights profiler.
However I see the error message:
2019-02-11T11:36:22 PID[6036] Information 02-11 11:36:22 Error: Unexpected exception in agent main process. Details: Microsoft.ServiceProfiler.Utilities.AppIdNotFoundException: Unable to find AppId for iKey
In the diagnostic logs.
Asking the question on github https://github.com/Microsoft/ApplicationInsights-Profiler-AspNetCore/issues/36, I was kindly informed that it's likely due to the old profiler becoming active and given some hints upon how to disable it.
Setting APPINSIGHTS_PROFILERFEATURE_VERSION to disabled unfortunately didn't work for me (though might be due to my particular ARM template setup).
Instead disabling via Kudu was what helped me (as I need to do it as part of a release pipeline):