尝试在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
我错过了什么?
1 回答
(Get-AzureServiceAvailableExtension -ExtensionName'PaaSDiagnostics'-ProviderNamespace'Microsoft.Azure.Diagnostics') . PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath'WadConfig.xsd'
现在,为您的辅助角色启用了PaaS诊断扩展 . 查看更多详情here .