Help APM Configure APM in Azure

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.

Table of contents

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.
    Function App tab
  2. Now, navigate to the Extensions tab in the Azure function app and click + Add.
    Add option
  3. In the Add site extension pop-up, choose APM Insight .NET Core Agent(version)--Site24x7 from the Choose an Extension drop-down menu.
    Add site extension pop-up
  4. Accept the license agreement and click Add to install the agent.
    Accept the license agreement
  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.
    Add/Edit application setting pop-up

        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.
       Name and Value

    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

    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_HERECopy paste the license key

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

 

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.
    Update Available icon
  4. Once the agent update is finished, restart the Azure function app and access the Azure function to continue monitoring.
    Restart the Azure function app
Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help APM Configure APM in Azure