问题描述
我们已为Azure Web App启用了Application Insights.以下突出显示的Application Insights会自动添加到应用程序服务中,即使在手动删除之后也是如此.反正有永久禁用/删除此功能吗?
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?
注意:我们已经为App Service配置了横向扩展(最多10个实例).
NOTE: We have configured Scale Out (Max: 10 instances) for the App Service.
推荐答案
启用新的体验后,似乎似乎没有正确删除旧扩展名.即使App Service未显示已安装"Microsoft.ApplicationInsights.AzureWebSites"扩展名,该扩展程序仍然存在,并会定期编写ApplicationInsightsProfiler2.
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.
要解决此问题,请打开Kudu并删除整个文件夹:" D:\ home \ SiteExtensions \ Microsoft.ApplicationInsights.AzureWebSites ".
To solve the problem open Kudu and remove this entire folder: "D:\home\SiteExtensions\Microsoft.ApplicationInsights.AzureWebSites".
您可能会拒绝访问(某些文件可能已在运行的进程中加载).如果发生这种情况,您有2个选择:
You might get an access denied (some of the files might be loaded in the running process). If that happens you have 2 options:
- 停止App Service,然后尝试再次删除该文件夹.
- 仅删除" D:\ home \ SiteExtensions \ Microsoft.ApplicationInsights.AzureWebSites \ applicationHost.xdt "& " D:\ home \ SiteExtensions \ Microsoft.ApplicationInsights.AzureWebSites \ scmApplicationHost.xdt ",然后重新启动AppService.现在,该扩展名已不再使用,您可以安全地删除整个文件夹.
- 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.
这篇关于如何停止运行Azure Web App的多个应用程序见解?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!