Forum Discussion
securityxpert1122
May 31, 2022Copper Contributor
How to close sentinel bulk incidents
I would like to know how we can close multiple incidents in bulk using KQL query or any other tested option. Appreciate quick response.
Rod_Trent
Microsoft
May 31, 2022See if the following helps: https://github.com/Azure/Azure-Sentinel/tree/master/Playbooks/Update-BulkIncidents
- KentuckyMike2085Mar 15, 2023Copper Contributor
I tried to use reference playbook however, I keep getting a failure:
$uri = "reference uri"
$header = @{'Content-Type' = 'application/json'}
$json = @"
{ "bulkoperation": {
"operationtype": "kql",
"operationquery": "SecurityIncident | where TimeGenerated >= ago(7d) | where Status == 'New'",
"operationstatus": "Closed"
}
}
"@
Invoke-WebRequest -Uri $uri -Method POST -Body $json -ContentType "application/json" - sachu245Jan 24, 2023Copper Contributornot able to access the above link