Enable the .NET Profiler for Azure Functions apps

In this article, you'll use the Azure portal to:

  • View the current app settings for your Functions app.
  • Add two new app settings to enable the .NET Profiler on the Functions app.
  • Navigate to the Profiler page for your Functions app to view data.

Note

You can enable the Application Insights Profiler for .NET for Azure Functions apps on the App Service plan.

Prerequisites

App settings for enabling the .NET Profiler

App Setting Value
APPLICATIONINSIGHTS_CONNECTION_STRING Unique value from your App Insights resource.
APPINSIGHTS_PROFILERFEATURE_VERSION 1.0.0
DiagnosticServices_EXTENSION_VERSION ~3

Add app settings to your Azure Functions app

From your Functions app overview page in the Azure portal:

  1. Under Settings, select Environment variables, verify the APP_INSIGHTS_CONNECTION_STRING setting is included in the settings list.

    Screenshot showing the App Insights connection string setting in the list.

  2. Select New application setting.

    Screenshot outlining the new application setting button.

  3. Copy the App Setting and its Value from the table above and paste into the corresponding fields.

    Screenshot adding the app insights profiler feature version setting.

    Screenshot adding the diagnostic services extension version setting.

    Leave the Deployment slot setting blank for now.

  4. Click OK.

  5. Click Save in the top menu, then Continue.

    Screenshot outlining the save button in the top menu of the configuration pane.

    Screenshot outlining the continue button in the dialog after saving.

The app settings now show up in the table:

Screenshot showing the two new app settings in the table on the configuration pane.

Note

You can also enable the .NET Profiler using:

Next Steps

Learn how to...