Forum Discussion
How can the incident information be accessed inside Azure Sentinel ?
sirferl There is a great article at https://azsec.azurewebsites.net/2019/12/16/extract-all-azure-sentinel-incidents/ about how to get this information.
Hello Gary,
thanks for the link. Actually I tried that one before I wrote the post here.
What I have in mind is the following:
A Logic App that is scheduled to loop through recent incidents and act on some of them (depending on type) with actions like sending eMail and then changing the state of the incident.
Scheduled, because AFAIK triggering is not available for externally (e.g. Azure AD IP) created incidents.
I am under the impression, that I cannot do this via the API and I have no idea how to schedule powershellscripts...
- GaryBusheyJan 16, 2020Bronze Contributor
1) You can create a Incident (AKA case) using the REST API so you should be able to update (I have not tried this but will soon). The example listed at https://github.com/Azure/azure-rest-api-specs/tree/master/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases
may help
2) Inside a Logic App you can schedule the trigger to run on an interview so you can use that to run your PowerShell command every so often (or make an Azure Function would probably be better)
- sirferlJan 16, 2020Tin Contributor
GaryBushey : thank you for the recommendations. I will try that.