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. Enabling Profiler on Linux is currently only possible via this method.
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.
- Go to the App Services pane in the Azure portal.
Navigate to Settings > Application Insights pane.
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.
Profiler is now enabled using an App Services App Setting.
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.
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.