无法在 Azure App Insights 中设置警报

Unable to setup alerts in Azure App Insights

我无法通过门户在 Azure 上的 Application Insights 实例中设置警报。 这是我收到的错误:

Failed to create alert rule 'XWRANotification'. The client 'sk@org.com' with object id 'xxx-3525-48c6-97ad-xxx' does not have authorization to perform action 'microsoft.insights/scheduledqueryrules/write' over scope '/subscriptions/xxx-d404-4748-a3e8-09afe0bbea49/resourceGroups/RG-XWRA-01/providers/microsoft.insights/scheduledqueryrules/XWRANotification' or the scope is invalid. If access was recently granted, please refresh your credentials..

我在此 App Insights 实例上为我的用户配置了以下访问权限:

根据我们的评论,除了您列出的 3 个角色之外,您还需要另一个 Contributor 角色来为您将在其中创建操作组的资源组角色。

如果您已经拥有此角色,则应该能够设置警报。正如它所建议的:如果最近授予访问权限,请刷新您的凭据。