【问题标题】:Adding NSG to Log Analytics Workspace fails将 NSG 添加到 Log Analytics 工作区失败
【发布时间】:2018-08-06 13:59:26
【问题描述】:

尝试将网络安全组添加到 Log Analytics 工作区,出现以下错误。这曾经适用于 5.0.0 版,但不再适用于 5.0.1。

Set-AzureRmDiagnosticSetting -ResourceId $NsgFrontendSubnet.Id -WorkspaceId $LogAnalyticsWorkspace.ResourceId -Enabled $true -Categories 'NetworkSecurityGroupEvent','NetworkSecurityGroupRuleCounter'

Set-AzureRmDiagnosticSetting:异常类型:ErrorResponseException, 消息:诊断设置“服务”不存在。,代码:ResourceNotFound,状态代码:NotFound,原因 短语:未在 PAT0056-NetworkSecurityGroupNew:764 char:764 找到 +
+ CategoryInfo : CloseError: (:) [Set-AzureRmDiagnosticSetting], PSInvalidOperationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand

【问题讨论】:

    标签: azure-log-analytics


    【解决方案1】:

    这似乎是GitHub上报告的一个已知错误:https://github.com/Azure/azure-powershell/issues/6833

    解决它的唯一方法是恢复到 AzureRm.Insights 5.0.0

    【讨论】:

      猜你喜欢
      • 2023-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-30
      • 2021-06-02
      • 1970-01-01
      相关资源
      最近更新 更多