【发布时间】:2016-03-24 14:51:03
【问题描述】:
尝试在 azure 中启用对工作角色的 paas 诊断 这是我尝试过的: 1、在VS2015中,右键角色并启用诊断。结果:1 分钟后超时。试了几次。 2. 使用powershell启用:
$storage_name = "mystorageaccount"
$key = "typedstoragekeyhere"
$publicconfigpath = "C:\Temp\diagnostics.wadcfgx"
$servicename = "cloudservicename"
$storageContext = New-AzureStorageContext -StorageAccountName $storage_name -StorageAccountKey $key
Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $publicconfigpath -ServiceName $servicename -Slot Production
结果:Set-AzureServiceDiagnosticsExtension:BadRequest:扩展公共配置... ...对架构无效 其次是
在底部: + CategoryInfo : NotSpecified: (:) [Set-AzureServiceDiagnosticsExtension], CloudException + FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.SetAzureServiceDiagnosticsExtensionCommand
我错过了什么?
【问题讨论】:
标签: azure diagnostics