【问题标题】:Azure CloudService: Adding Diagnostics extension to Role <XYZ> failedAzure CloudService:将诊断扩展添加到角色 <XYZ> 失败
【发布时间】:2016-04-15 14:02:56
【问题描述】:

当我尝试使用 Visual Studio 2015 中的服务器资源管理器在 Azure 云服务 webrole 上启用诊断时,我不断收到此错误:

向角色添加诊断扩展失败:验证失败 在扩展的 PublicConfig 元素上出现错误:该元素 命名空间中的“指标” 'http:schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration' 内容不完整。预期的可能元素列表: 命名空间中的“MetricAggregation” 'http:schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration'。 Microsoft.Cct.StatusWindow.DispatchedStatusItemContainer

选择存储帐户后会弹出此消息,然后在诊断配置中单击“确定”。

如何才能成功启用诊断?

Error message

【问题讨论】:

  • 你在 Visual Studio 中安装了最新的 azure 工具吗?

标签: c# visual-studio azure azure-cloud-services diagnostics


【解决方案1】:

为什么是服务器资源管理器而不是网络角色设置?有你需要的,甚至更多 - Application Insights。

【讨论】:

  • 因为我们不使用 Visual Studio 进行部署,而是使用 powershell 脚本。我已经更新了脚本以通过调用“New-AzureDeployment”中的参数“-ExtensionConfiguration”包含诊断配置和“设置 Azure 部署”。我同意这是一个更好的解决方案,但它仍然困扰着我,Visual Studio 显示这样的错误并且没有提示我做错了什么。 :)
猜你喜欢
  • 1970-01-01
  • 2017-06-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多