How to stop running multiple application insights for Azure Web App?

给你一囗甜甜゛ 提交于 2019-12-04 10:23:34

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:

  1. Stop the App Service and try removing the folder again.
  2. 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.

Open Kudu Console: https://YOURWEBAPP.scm.azurewebsites.net/DebugConsole

To remove the WebJob from the Kudu dashboard:

rmdir /s /q D:\home\site\wwwroot\App_Data\jobs\continuous\ApplicationInsightsProfiler2

Remove the old applicationinsights folder:

rmdir /s /q D:\home\SiteExtensions\Microsoft.ApplicationInsights.AzureWebSites

Any locked files can be removed manually one by one without needing to stop the WebApp service.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!