4

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.

enter image description here

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 Answer 1

3

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.

5
  • I don't see any diagnostics tab when right clicking a role project in VS2015
    – Frank Q.
    Feb 18, 2017 at 0:42
  • What version of Azure SDK do you have installed? Feb 19, 2017 at 7:53
  • Azure SDK 2.9. I think this is the latest
    – Frank Q.
    Feb 20, 2017 at 4:43
  • And just to make sure, are you right-clicking the Cloud Service node (and not the role project node)? This option is available on the publish wizard of the Cloud Service node Feb 21, 2017 at 6:21
  • VS 2015 there is no checkbox 'Send diagnostics data to Application Insights' in the Properties pages that I can find.
    – Mikee
    May 5, 2017 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.