title | description | ms.contributor | ms.topic | ms.date | ms.reviewer |
---|---|---|---|---|---|
Profile Azure Functions app with Application Insights Profiler |
Enable Application Insights Profiler for Azure Functions app. |
charles.weininger |
conceptual |
09/22/2023 |
ryankahng |
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.
-
An Azure Functions app. Verify your Functions app is on the App Service plan.
:::image type="content" source="./media/profiler-azure-functions/choose-plan.png" alt-text="Screenshot of where to select App Service plan from drop-down in Functions app creation.":::
-
Linked to an Application Insights resource. Make note of the instrumentation key.
App Setting | Value |
---|---|
APPINSIGHTS_PROFILERFEATURE_VERSION | 1.0.0 |
DiagnosticServices_EXTENSION_VERSION | ~3 |
APPINSIGHTS_INSTRUMENTATIONKEY | Unique value from your App Insights resource. |
From your Functions app overview page in the Azure portal:
-
Under Settings, select Configuration.
:::image type="content" source="./media/profiler-azure-functions/configuration-menu.png" alt-text="Screenshot of selecting Configuration from under the Settings section of the left side menu.":::
-
In the Application settings tab, verify the
APPINSIGHTS_INSTRUMENTATIONKEY
setting is included in the settings list.:::image type="content" source="./media/profiler-azure-functions/app-insights-key.png" alt-text="Screenshot showing the App Insights Instrumentation Key setting in the list.":::
-
Select New application setting.
:::image type="content" source="./media/profiler-azure-functions/new-setting-button.png" alt-text="Screenshot outlining the new application setting button.":::
-
Copy the App Setting and its Value from the table above and paste into the corresponding fields.
:::image type="content" source="./media/profiler-azure-functions/app-setting-1.png" alt-text="Screenshot adding the app insights profiler feature version setting.":::
:::image type="content" source="./media/profiler-azure-functions/app-setting-2.png" alt-text="Screenshot adding the diagnostic services extension version setting.":::
Leave the Deployment slot setting blank for now.
-
Click OK.
-
Click Save in the top menu, then Continue.
:::image type="content" source="./media/profiler-azure-functions/save-button.png" alt-text="Screenshot outlining the save button in the top menu of the configuration pane.":::
:::image type="content" source="./media/profiler-azure-functions/continue-button.png" alt-text="Screenshot outlining the continue button in the dialog after saving.":::
The app settings now show up in the table:
:::image type="content" source="./media/profiler-azure-functions/app-settings-table.png" alt-text="Screenshot showing the two new app settings in the table on the configuration pane.":::
Learn how to...
[!div class="nextstepaction"] Generate load and view Profiler traces