Dear community !
I want to dismiss all or most of Microsoft Defender for Cloud Security Alerts in Azure to get a "clean slate" and tune our policies for adaptive application control.
I have tried scripting this using REST API, Azure CLI and the Powershell library.
All of the scripts created does close off some alerts, but they don't really close all the alerts it says it does. Looking at the GUI I see that I am getting some errors when trying to manually dismiss the alerts. I suspect this is what happens with my scripts as well, they run without exceptions but Azure is throwing an error in the backend when processing the dismiss action and never returns the error to my scripts.
I get two types of failures in the GUI while manually dismissing them:
Failure to update security alert status
Failed to update security alert Adaptive application control policy violation was audited (ALERT-ID-GOES-HERE) to 'Dismissed'. Please try again later.
Failed to update some security alerts
Some security alerts have failed to update. Please check previously received notifications for more information.
I can't make anything of these errors and google doesen't really give me anything of value either so I am really hoping to get some assistance here. Thanks for all help in advance ! :)