Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article, you 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.
- Go 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
An Azure Functions app. Verify your Functions app is on the App Service plan.
Link your app to an Application Insights resource. Make note of the connection string.
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
In the Azure portal, open your Function app Overview page:
Under Settings, select Environment variables. Verify that the
APPLICATIONINSIGHTS_CONNECTION_STRINGsetting is included in the settings list.
Select Add.
Copy the setting and its Value from the preceding table into the corresponding fields.
Leave the Deployment slot setting blank for now.
Select Apply for each value.
In the Environment variables pane, select Apply, then Confirm.
The app settings now show up in the table:
Note
You can also enable the .NET Profiler by using: