在发布设置上禁用将诊断数据发送给应用程序见解 [英] disable send diagnostics data to application insights on publish settings

查看:130
本文介绍了在发布设置上禁用将诊断数据发送给应用程序见解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在vs2013上创建了一个Web角色,最近将其升级到了vs2015.

I've created a web role on vs2013 and recently upgraded it to vs2015.

将角色发布到Azure时,将打开send diagnostics data to application insights.

When publishing the role to Azure, the send diagnostics data to application insights is turned on.

由于我不想每次都使用应用程序见解,因此当我需要发布角色时,需要取消选中该复选框.

Since I don't want to use the application insights each time, when I need to publish my role I need to uncheck the checkbox.

是否有一种方法可以永久取消选中此选项?

Is there a way to permanently uncheck this option?

推荐答案

您可以按照以下步骤避免在发布"对话框中获得诊断"标签:

You can avoid getting the "Diagnostics" tab in the publish dialog by following these steps:

  • 打开项目的其中一个角色的属性页面
  • 诊断下,选中将诊断数据发送到Application Insights" 复选框
  • 选择以手动指定Application Insights工具键
  • 在文本框中输入一些值(无关紧要什么值),然后单击确定
  • 对话框关闭后,您输入的值将出现在上一步中提到的复选框下方的文本框中
  • 删除该值,然后单击保存
  • Open the Properties page for one of the roles in your project
  • Under Diagnostics, check the "Send diagnostics data to Application Insights" checkbox
  • Select to manually specify the Application Insights instrumentation key
  • Enter some value in the textbox (doesn't matter what value) and click OK
  • After the dialog closes, the value you have entered will appear in a textbox under the checkbox mentioned in the previous step
  • Delete that value and click save

这样做之后,您将不再看到在发布过程中将诊断数据发送到Application Insights的选项.另外,由于将不会提供有效的检测密钥,因此不会启动将诊断数据发送到Application Insights的扩展.

After doing this, you should no longer see the option to send diagnostics data to Application Insights during the publish process. Also, because a valid instrumentation key wan't provided, the extention that sends the diagnostics data to Application Insights will not be started.

这篇关于在发布设置上禁用将诊断数据发送给应用程序见解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆