azure - 停止应用程序洞察

标签 azure azure-web-app-service azure-application-insights

我们为 Azure 门户中托管的 Web 应用程序安装了 Application Insights。

现在它发送报告等,应用程序刚刚启动,我们不需要所有数据。有没有办法完全停止/禁用 Application Insights 的所有数据收集/报告?

我的应用程序是 ASP.NET Core 一个,我在“Application Insights”文件夹下有一个 ConnectedService.json 文件,其中包含以下内容

{
  "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
  "Version": "8.6.404.2",
  "GettingStartedDocument": {
    "Uri": "https://go.microsoft.com/fwlink/?LinkID=798432"
  }
}

最佳答案

据我所知,目前似乎不支持停止收集报告,除非我们删除WebApp和application Insight之间的关系或删除application Insight。如果您坚持停止应用程序洞察,您可以将反馈发送至 Azure team .

以下方法是删除WebApp与application Insight之间的关系或删除application Insight。

如果我们不想使用 Application Insights 收集应用程序的报告,我们可以按照 Peter Bons 的说法从 .config 文件中删除检测 key

如果我们将应用程序洞察添加为扩展,我们可以将其从 Azure kudu ( https://youwebsite.scm.azurewebsites.net ) 中删除。在这种情况下,您似乎

enter image description here

更新:

对于 Asp.net core 项目,我们可以从 appsettings.json 文件中删除 InstrumentationKey

enter image description here

关于azure - 停止应用程序洞察,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46365347/

相关文章:

sql-server - 在租户中找不到 Active Directory 对象 ''

c# - 从 Azure 网站连接到 SSAS 多维数据集

azure - 使用 Azure CLI 设置 Azure 网站 AlwaysOn

azure - 将 TypeScript 部署到 Azure - 您的项目文件使用不同版本的 TypeScript 编译器

azure - Azure Web App 中的可用计数器

azure - 在应用程序见解中禁用另存为查询

azure - Azure 信号中的 serverExceptions 和异常之间有什么区别?

c# - UseWindowsAzureActiveDirectoryBearerAuthentication 与 UseOpenIdConnectAuthentication 之间有什么区别?

azure - 使用 IP 地址而不是主机名访问 azure 应用程序服务

.net - 数千个类的机器学习多类分类