disable send diagnostics data to application insights on publish settings

空扰寡人 提交于 2019-12-06 04:50:52

问题


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

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?


回答1:


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

  • 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

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.



来源:https://stackoverflow.com/questions/37052111/disable-send-diagnostics-data-to-application-insights-on-publish-settings

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