We have enabled Application Insights for an Azure Web App. The following highlighted Application Insights automatically added to the app service even after deleted manually. Is there anyway to permanently disable/delete this?
NOTE: We have configured Scale Out (Max: 10 instances) for the App Service.
It seems that the old extension was not properly removed when you enabled the new experience. Even though the App Service doesn't show the "Microsoft.ApplicationInsights.AzureWebSites" extension as being installed, the extension is still there and periodically writes ApplicationInsightsProfiler2.
To solve the problem open Kudu and remove this entire folder: "D:\home\SiteExtensions\Microsoft.ApplicationInsights.AzureWebSites".
You might get an access denied (some of the files might be loaded in the running process). If that happens you have 2 options:
- Stop the App Service and try removing the folder again.
- Only remove "D:\home\SiteExtensions\Microsoft.ApplicationInsights.AzureWebSites\applicationHost.xdt" & "D:\home\SiteExtensions\Microsoft.ApplicationInsights.AzureWebSites\scmApplicationHost.xdt" and then restart the AppService. Now the extension is not used anymore and you can safely remove the entire folder.
Open Kudu in your web app and browse till wwwroot
and then browse to Continuous folder under Jobs - D:\home\site\wwwroot\App_Data\jobs\continuous>
Check if you see any folder name ApplicationInsightsProfiler2. If yes then delete it.
It worked for me.