0

我们正在通过 ci 服务器创建 azure worker 角色部署包,并使用 Azure Powershell cmdlet 脚本将该包部署到 azure 云服务。

但是诊断配置不适用于部署;它仅在我们从 Visual Studio 中手动部署时才有效。

有没有办法在powershell脚本中考虑到诊断设置(性能计数器..etc)?

4

1 回答 1

0

您可以使用Set-AzureServiceDiagnosticsExtensionPowerShell Cmdlet 启用诊断。您可能会发现此链接对此很有用:http ://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/ (请参阅参考资料Step 5: Install Diagnostics on your Worker Role)。

于 2015-04-16T19:00:11.203 回答