Search code examples
azureazure-worker-rolesazure-deployment

Deploy azure worker role outside of visual studio with diagnostic setting


We are creating the azure worker role deployment package via our ci server and deploy the package to the azure cloud service using Azure Powershell cmdlets script.

however the diagnostic configuration does not get apply to the deployment; it only works when we deploy manually from within visual studio.

is there a way to do that in the powershell script to take into account the diagnostic setting (performance counter..etc) ?


Solution

  • You can use Set-AzureServiceDiagnosticsExtension PowerShell Cmdlet to enable diagnostics. You may find this link useful for this purpose: http://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/ (Please see Step 5: Install Diagnostics on your Worker Role).