This logicapp calls Enrich-AzureResourceGraph to comment Sentinel Incident based on ResourceGraph data
After deployment,
- Allow logicapp managed identity to update incident by adding IAM role Sentinel Responder or above
- attach this playbook to an automation rule so it runs when the incident is created.
Learn more about automation rules
- Enrich-AzureResourceGraph logicapp
- Adapt query to your context
- Azure Sentinel incident trigger
- Get Hosts entities
- For each host, call Enrich-AzureResourceGraph
- Add comment and tag found/notfound depending on output