使用诊断设置在 visual studio 之外部署 azure worker 角色
Deploy azure worker role outside of visual studio with diagnostic setting
我们正在通过 ci 服务器创建 azure 工作者角色部署包,并使用 Azure Powershell cmdlet 脚本将该包部署到 azure 云服务。
但是诊断配置并未应用于部署;它仅在我们从 visual studio.
中手动部署时有效
有没有办法在 powershell 脚本中考虑诊断设置(性能计数器等)?
您可以使用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/(请参阅Step 5: Install Diagnostics on your Worker Role
)。
我们正在通过 ci 服务器创建 azure 工作者角色部署包,并使用 Azure Powershell cmdlet 脚本将该包部署到 azure 云服务。
但是诊断配置并未应用于部署;它仅在我们从 visual studio.
中手动部署时有效有没有办法在 powershell 脚本中考虑诊断设置(性能计数器等)?
您可以使用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/(请参阅Step 5: Install Diagnostics on your Worker Role
)。