通过 Script/API 关闭 Azure 安全中心警报

Close Azure Security Center Alerts via Script/API

有没有办法通过编程方法(例如 PowerShell、Cli、C#、Python...或通过 API 关闭 Azure 安全中心警报?

非常感谢您的帮助。

网上搜索也是stack overflow,没找到答案

据我所知,安全警报是根据安全策略生成的。所以如果你想关闭其中一个警报,你需要禁用相应的策略。

您可以通过rest api禁用它,请参考此教程:https://docs.microsoft.com/en-us/azure/security-center/tutorial-security-policy#configure-a-security-policy-using-the-rest-api

下面是政策名称供您参考: