Help Docs

Configure the APM agent in Azure functions (.NET Core)

Monitor the performance of your Azure function application by tracking important key metrics, such as response time, throughput, and Apdex score, using the APM Insight .NET Core agent integrated within Azure functions.

Installing the APM Insight .NET Core agent extension via the Azure portal

  1. Log in to the Azure portal and navigate to your function app listed in the Function App tab.
  2. Now, navigate to the Extensions tab in the Azure function app and click + Add.
  3. In the Add site extension pop-up, choose APM Insight .NET Core Agent(version)--Site24x7 from the Choose an Extension drop-down menu.
  4. Accept the license agreement and click Add to install the agent.
  5. Click your function app and go to Configuration > Application settings > + New application setting. In the Add/Edit application setting pop-up, you can configure the following key values one by one.

    Note

        i. Provide the Name and Value as shown in the screenshot below and click Ok.
       ii. Click + New application setting again to add the next value.
       iii. Repeat the above steps until you have finished adding all the key values.
       

    CORECLR_ENABLE_PROFILING=1 
    CORECLR_PROFILER={9D363A5F-ED5F-4AAC-B456-75AFFA6AA0C8}
    CORECLR_PROFILER_PATH_64=C:\Home\Site24x7DotNetCoreAgent\x64\ClrProfilerAgent.dll
    CORECLR_PROFILER_PATH_32=C:\Home\Site24x7DotNetCoreAgent\x86\ClrProfilerAgent.dll
    CORECLR_SITE24X7_HOME=C:\Home\Site24x7DotNetCoreAgent
    DOTNET_ADDITIONAL_DEPS=C:\Home\Site24x7DotNetCoreAgent\additionalDeps
    DOTNET_SHARED_STORE=C:\Home\Site24x7DotNetCoreAgent\store
    S247_LICENSE_KEY=YOUR_LICENSE_KEY_HERE
    Note

    You can get the S247_LICENSE_KEY from the Site24x7 web client. To obtain the license key, 
         i. Log in to your Site24x7 account.
        ii. Navigate to APM > APM Insight > .NET agent > Copy the license key.
        iii. Replace the copied license key in place of YOUR_LICENSE_KEY_HERE

  6. Restart the Azure function app and access the Azure function to start monitoring.
  7. That's it. You can view the metrics once your app is functional and some transactions take place.

Upgrading the APM Insight .NET Core agent via the Azure portal

To upgrade the .NET Core agent for monitoring your Azure function app, follow the instructions given below:

  1. Log in to the Azure portal and navigate to the Function App tab.
  2. Click Extensions under the Development Tools section.
  3. Click the Update Available icon to upgrade the agent.
  4. Once the agent update is finished, restart the Azure function app and access the Azure function to continue monitoring.

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!