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?
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