Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure SDK v2.7 diagnostics issue is preventing publish/package

I've recently upgraded an Azure cloud service with a web role and worker role to v2.7 of the SDK.

Debugging locally works great.

When I try to publish from within VS 2015 Community, the process fails with an error in the build output:

6>Done building project "Cloud.ccproj" -- FAILED.
6>
6>Build FAILED.
========== Build: 5 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

Dropping down to msbuild I can see more verbose output and notice the following:

Failed to produce diagnostics extension's config for Cloud.WebRoleContent\diagnostics.wadcfgx. 
Error : Value cannot be null. Parameter name: input

Removing the diagnostics.wadcfgx files from the web and worker roles actually solves this issue and allows me to publish, however I'd prefer to keep my diagnostics.

Adding them back in via the UI lands me at the same error as above.

Has anyone else come across this?

like image 418
Craig Presti - MSFT Avatar asked Jul 30 '15 22:07

Craig Presti - MSFT


1 Answers

I don't remember the exact error we got but recently we had to add a storage account for diagnostics where previously we didn't. In your ServiceConfiguration you need a line like

  <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="...."/>
like image 83
Batavia Avatar answered Oct 04 '22 22:10

Batavia