Profile live Azure Functions app with Application Insights

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 Profiler on the Functions app.
  • Navigate to the Profiler for your Functions app to view data.

Note

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

Pre-requisites

App settings for enabling Profiler

App Setting Value
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 Configuration.

    Screenshot of selecting Configuration from under the Settings section of the left side menu.

  2. In the Application settings tab, verify the APPINSIGHTS_INSTRUMENTATIONKEY setting is included in the settings list.

    Screenshot showing the App Insights Instrumentation Key setting in the list.

  3. Select New application setting.

    Screenshot outlining the new application setting button.

  4. 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.

  5. Click OK.

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

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

    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 blade.

View the Profiler data for your Azure Functions app

  1. Under Settings, select Application Insights (preview) from the left menu.

    Screenshot showing application insights from the left menu of the Functions app.

  2. Select View Application Insights data.

    Screenshot showing the button for viewing application insights data for the Functions app.

  3. On the App Insights page for your Functions app, select Performance from the left menu.

    Screenshot showing the performance link in the left menu of the app insights blade of the functions app.

  4. Select Profiler from the top menu of the Performance blade.

    Screenshot showing link to profiler for functions app.

Next Steps