启用Azure PaaS诊断sdk 2.8
正在尝试对azure中的工作角色启用paas诊断 以下是我尝试过的: 1.在VS2015中,右键单击角色并启用诊断。结果:1分钟后超时。试了好几次。 2.使用powershell启用:启用Azure PaaS诊断sdk 2.8,azure,diagnostics,Azure,Diagnostics,正在尝试对azure中的工作角色启用paas诊断 以下是我尝试过的: 1.在VS2015中,右键单击角色并启用诊断。结果:1分钟后超时。试了好几次。 2.使用powershell启用: $storage_name = "mystorageaccount" $key = "typedstoragekeyhere" $publicconfigpath = "C:\Temp\diagnostics.wadcfgx" $servicename = "cloudservicename" $storageC
$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
结果:设置AzureServiceDiagnosticsExtension:BadRequest:扩展公共配置。。。对架构无效
然后
在底部:
+CategoryInfo:NotSpecified:(:)[Set-AzureServiceDiagnosticsExtension],CloudException
+FullyQualifiedErrorId:Hyak.Common.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.SetAzureServiceDiagnosticsExtensionCommand
我错过了什么
$storage_name = "storageName"
$key = "StorageAccountKey"
$config_path="the xml path created in step 3"
$service_name="serviceName"
$storageContext = New-AzureStorageContext -StorageAccountName $storage_name -StorageAccountKey $key
Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $config_path -ServiceName $service_name -Slot Staging -Role WorkerRole1