Help Docs

Install the .NET agent in Azure App Services (Linux)

Monitor your .NET applications hosted on Azure App Service running on Linux by integrating the Site24x7 APM Insight .NET agent. Follow the steps below to complete the setup.

  1. Add the NuGet package Site24x7.APMInsight.Agent to your .NET project using your preferred method (e.g., Visual Studio NuGet Manager or CLI).
  2. Build and publish the application to your Azure App Service (Linux).
  3. In the Azure portal, navigate to your App Service.
  4. Go to Settings > Configuration > App settings.
  5. Click + Add and add the following environment variables:
    CORECLR_ENABLE_PROFILING=1
    CORECLR_PROFILER={9D363A5F-ED5F-4AAC-B456-75AFFA6AA0C8}
    CORECLR_PROFILER_PATH_32=/home/site/wwwroot/site24x7/x86/libClrProfilerAgent.so
    CORECLR_PROFILER_PATH_64=/home/site/wwwroot/site24x7/x64/libClrProfilerAgent.so
    DOTNET_STARTUP_HOOKS=/home/site/wwwroot/site24x7/netstandard2.0/DotNetAgent.Loader.dll
    DOTNETCOREAGENT_HOME="/home/site/wwwroot/site24x7"
    MANAGEENGINE_COMMUNICATION_MODE=direct
    S247_LICENSE_KEY=YOUR_LICENSE_KEY_HERE
    Note

    Replace YOUR_LICENSE_KEY_HERE with your actual license key copied from the Site24x7 portal.

  1. Click Save to apply the changes.
  2. Restart the App Service to apply the newly configured environment variables.
  3. Once the app is restarted, perform a few transactions to generate traffic.
Note

Ensure that all environment variables are set exactly as listed. Incorrect paths or missing variables can prevent the agent from functioning properly.

Related article

Install the .NET agent on Azure App Services Windows

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!