How to change the location of the diagnostic data store for each service configuration in Azure SDK 2.5

In the Azure SDK 2.5, the storage account is set up in a wadcfgx 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 diagnostic accounts for production 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 intended for each role, and not for service configuration. In the previous SDK, I used two different diagnostic connection strings - "Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" - and everything worked fine.

How can I achieve this now in SDK 2.5?

+4
1

. SDK 2.5 .

- ( ). , Set-AzureServiceDiagnosticsExtension Cmdlet.

, : http://blogs.msdn.com/b/kwill/archive/2014/12/02/windows-azure-diagnostics-upgrading-from-azure-sdk-2-4-to-azure-sdk-2-5.aspx (. Enabling diagnostics extension through PowerShell). :

Azure SDK 2.5 , , cscfg. wadcfgx. , .

- - , , , , . Visual Studio, . , VS, PowerShell, PowerShell.

- 26 - 2015

SDK 2.6 . :

"" (.cscfg) , .

SDK 2.5, SDK 2.6.

+4

All Articles