525d001024 | ||
---|---|---|
.. | ||
Graphics | ||
azuredeploy.json | ||
readme.md |
readme.md
Close-SentinelIncident-From-Snow
Author: Yaniv Shasha This Logic App act as listener for a incident close event in ServiceNow and will close the incident in Sentinel.
Closing the incident in Azure Sentinel when it is closed in ServiceNow requires two components:
- A Business Rule in ServiceNow that run custom JS code when the incident is closed.
- A Logic App in Azure Sentinel that waits to the Business Rule POST request.
The playbook, available here and presented below, works as follows:
- Triger when an HTTP POST request hits the endpoint (1)
- Get relevant properties from the ServiceNow Incident.
- Close the incident on Azure Sentinel (4)
- Add comment with the name of the user who closed the incident in ServiceNow into an Azure sentinel incident comment (5)
After Deploying the logicApp you will see the above workflow.
This flow assume that customer use the above logic app found here to export the incident into ServiceNow.
The incident properties that exported from Azure sentinel into ServiceNow incident page looks:
- Copy the HTTP endpoint URL from the Logic App trigger part.
- In “run query and list results” (2) authenticate with user that has log analytics read permission or Azure Sentinel Reader role as a minimum requirement.
- In “get incident – bring fresh ETAG” (3) authenticate to AAD APP with a user that has an Azure Sentinel Reader role, or with a Managed identity with the same permission.
- On the close incident step (4) we will need to use a user that has an Azure Sentinel Responder role as the identity for
- On “add comment to incident” (5) use a user that has an Azure Sentinel Contributor account.