We upgraded our azure deployment project from SDK 2.4 to SDK 2.5.
The project has two worker roles.
Publishing the 2.4 project to a cloud service used to work fine but after upgrading to 2.4 we see publish failing with the following output in the Microsoft Azure Activity Log Window:
4:44:19 PM - Checking for Remote Desktop certificate...
4:44:20 PM - Applying Diagnostics extension.
4:44:20 PM - Object reference not set to an instance of an object.
"Applying Diagnostics extension" is also something we used to not see in 2.4.
Any idea what causes this above error?
Turns out this can happen if you have a mix of roles on which diagnsotics is enabled / disabled. This can happen in a few situations.
The workaround is to either disable diagnostics on all roles or enable it on all roles. You can then play with the configuration in the wadcfgx file to control the data that you need to transfer / block.