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
An Azure Functions app. Verify your Functions app is on the App Service plan.
Linked to an Application Insights resource. Make note of the instrumentation key.
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:
Under Settings, select Configuration.
In the Application settings tab, verify the
APPINSIGHTS_INSTRUMENTATIONKEY
setting is included in the settings list.Select New application setting.
Copy the App Setting and its Value from the table above and paste into the corresponding fields.
Leave the Deployment slot setting blank for now.
Click OK.
Click Save in the top menu, then Continue.
The app settings now show up in the table:
View the Profiler data for your Azure Functions app
Under Settings, select Application Insights (preview) from the left menu.
Select View Application Insights data.
On the App Insights page for your Functions app, select Performance from the left menu.
Select Profiler from the top menu of the Performance blade.
Next Steps
- Set these values using Azure Resource Manager Templates, Azure PowerShell, or the Azure CLI.
- Learn more about Profiler settings.