我们正在通过ci服务器创建azure worker角色部署包,并使用Azure Powershell cmdlet脚本将包部署到azure Cloud 服务 .
但是诊断配置不适用于部署;它仅在我们从visual studio中手动部署时才有效 .
有没有办法在powershell脚本中执行此操作以考虑诊断设置(性能计数器......等)?
您可以使用Set-AzureServiceDiagnosticsExtension PowerShell Cmdlet启用诊断 . 您可能会发现此链接对此有用:http://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/(请参阅 Step 5: Install Diagnostics on your Worker Role ) .
Step 5: Install Diagnostics on your Worker Role
1 回答
您可以使用Set-AzureServiceDiagnosticsExtension PowerShell Cmdlet启用诊断 . 您可能会发现此链接对此有用:http://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/(请参阅
Step 5: Install Diagnostics on your Worker Role
) .