Share via

Is there a way to prevent application insights from attaching to a process and writing a startup message

SimonY-1215 0 Reputation points
2026-04-05T20:20:29.42+00:00

On Azure App Service, I have a long-running WebJob that creates another process (in .NET using new Process ).

Because application insights is enable on the App Service environment, it attaches to the new process and writes the following to stdout:

AppInsightsAgent: ETW could not be loaded 
AppInsightsAgent ETWLogger Application Insights was started succesfully. 
Application Insights was started succesfully. [ 
  '2.10.8', 
  '4c3e268b-51db-4634-b0cd-64aac8a9eee8', 
  '*********', 
  '1.3.7', 
  'bb8b4a86-c64b-40dc-90ac-0fb8e8c6e4fa', 
  '3000' 
]
  1. Prevent application insights from attaching to this single process (but still have it operational for the rest of the App Service), or
  2. Silence application insights so that it doesn't write this (or any other message) to the stdout for the process.

For context, the stdout from the new process is being consumed elsewhere and this injection from application insights is breaking the workflow.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-05T20:20:38.5533333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Application Insights autoinstrumentation on Azure App Service is controlled at the app level, not per child process. The available guidance in the context only covers:

    • Removing or avoiding the SDK when using autoinstrumentation.
    • Fixing cases where autoinstrumentation fails because of conflicting SDKs, unsupported .NET versions, or overridden hosting startup assemblies.
    • General troubleshooting and performance issues.

    There is no documented mechanism in the provided material to:

    1. Exclude a single spawned process from being instrumented while keeping autoinstrumentation enabled for the rest of the App Service, or
    2. Suppress or redirect the startup messages that the Application Insights agent writes to stdout for that specific process.

    The context does not describe any per-process opt-out flags, environment variables, or configuration switches for the agent’s console output.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.