In Azure SDK 2.5 the storage account is set in the wadcfgx of the role like this :
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="myDiagnosticAccount" endpoint="https://core.windows.net/" />
The problem is that I want to have separate diagnostics accounts for staging and production. Like this:
For staging
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="myProductionDiagStorageAccount" endpoint="https://core.windows.net/" />
</PrivateConfig>
and for production
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="myStageDiagStorageAccount" endpoint="https://core.windows.net/" />
</PrivateConfig>
But I do not see any possible way to do this since this config is per role and not per service configuration. In the previous SDK I used to set two different diagnostics connection string - “Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString” - and everything worked fine.
How can I achieve this now in SDK 2.5?