Profile live Azure web apps with Application Insights

Profiler currently works for ASP.NET and ASP.NET Core web apps that are running on Web Apps. The Basic service tier or higher is required to use Profiler.

Enable Profiler for your Web Apps

To enable Profiler for a web app, follow the instructions below. If you are running a different type of Azure service, here are instructions for enabling Profiler on other supported platforms:

Application Insights Profiler is pre-installed as part of the App Services runtime, but you need to turn it on to get profiles for your Azure Web Apps. Once you have deployed a Web App, even if you have included the App Insights SDK in the source code, follow the steps below to enable the profiler.

  1. Go to the App Services pane in the Azure portal.
  2. Navigate to Settings > Monitoring pane.

    Enable App Insights on App Services portal

  3. Either follow the instructions on the pane to create a new resource or select an existing App Insights resource to monitor your web app. Also make sure the Profiler is On.

    Add App Insights site extension

  4. Profiler is now enabled using an App Services App Setting.

    App Setting for Profiler

Disable Profiler

To stop or restart Profiler for an individual web app's instance, under Web Jobs, go to the Web Apps resource. To delete Profiler, go to Extensions.

Disable Profiler for a web job

We recommend that you have Profiler enabled on all your web apps to discover any performance issues as early as possible.

If you use WebDeploy to deploy changes to your web application, make sure you exclude the App_Data folder from being deleted during deployment. Otherwise, the Profiler extension's files are deleted the next time you deploy the web application to Azure.

Next steps