Microsoft Sentinel does two jobs. As a security information and event management (SIEM) system, it collects security data and raises alerts and incidents. Microsoft's automation overview says that Sentinel, in addition to being a SIEM system, is also a platform for security orchestration, automation, and response (SOAR): it can act on what it finds. Our earlier article, Sentinel is a security operations system, not just a workspace, covered the SIEM half. This one covers the response half.
The point of this article is simple: automate response in stages. Start with actions that cannot disrupt anyone, add a person's approval before any action that can, and give each piece of automation only the access it needs. The examples are illustrative and do not assume a particular customer, staffing model, or security outcome.
SIEM finds, SOAR acts
The SIEM side answers "what happened?" Data connectors bring records into a workspace, analytics rules query them, and matches become alerts and incidents. The SOAR side answers "what do we do about it?" Sentinel has two building blocks for that.
- Automation rules. Microsoft's automation rule guidance describes them as a way to centrally manage automation. A rule runs when an incident is created or updated, or when an alert is created. Without any playbook, a rule can add tasks for analysts, change an incident's status or severity, assign an owner, and add a tag.
- Playbooks. A playbook is a workflow built in Azure Logic Apps, Microsoft's cloud workflow service. Microsoft's playbook guidance says a playbook can run automatically when an automation rule calls it, or be run manually. Playbooks are how Sentinel reaches other systems, such as a ticketing tool, a chat channel, or Microsoft Entra ID.
An automation rule changes the incident record. A playbook can change the environment. That difference is the reason to treat them with different levels of care.
Start with automation that cannot disrupt anyone
Microsoft's playbook guidance gives an example in which a playbook isolates a machine and blocks an account before the security team is even notified. That is possible, but it is the last stage, not the first. A staged path lets the team learn how the automation behaves while the cost of a mistake is still small.
| Stage | What the automation does | What can go wrong |
|---|---|---|
| 1. Organize | An automation rule tags the incident, assigns an owner, and adds a task list. No playbook. | An incident is routed to the wrong person. Easy to see and correct. |
| 2. Inform | A playbook opens a ticket, posts to the security channel, or adds context to the incident. | Noise or a missed message. Nothing in the environment changes. |
| 3. Act with approval | A playbook proposes an action, such as disabling a user, and waits for a named person to decide. | A wrong decision is still possible, but a person made it with the facts in front of them. |
| 4. Act alone | A playbook takes the action with no one in the path. | A false positive locks out a real user or isolates a working device. |
Move a detection to the next stage only after its results at the current stage have been reviewed and found reliable. Many small organizations may find that stage 3 is where most response actions should stay.
Put a person in the approval path
Microsoft's own sample scenario, stopping a potentially compromised user, is a stage 3 design. The playbook opens a ticket, alerts the security channel, and emails the incident details to the administrators with Block and Ignore buttons. It then waits for a response. If the administrators choose Block, the playbook disables the user in Microsoft Entra ID and blocks the IP address at the firewall. If they choose Ignore, it closes the incident and the ticket.
Before building a flow like this, the organization should decide a few things that the product does not decide for it:
- Who is allowed to approve, and who covers when that person is away.
- What the playbook does if no one answers.
- How each action is reversed, and who is allowed to reverse it.
- Which accounts must never be acted on automatically, such as emergency access accounts.
Scope each rule narrowly
An automation rule runs only when its conditions are satisfied, and those conditions can include the analytics rule that produced the incident. Tie a response playbook to the specific analytics rules it was designed for, not to every incident.
This matters more in the Microsoft Defender portal. Microsoft states that after March 31, 2027, Microsoft Sentinel will no longer be supported in the Azure portal and will be available only in the Defender portal. The automation overview lists several behaviors to plan for there:
- Incident names can change when the Defender portal correlates alerts. Microsoft recommends against using incident titles as rule conditions and suggests the analytics rule name, plus tags where more precision is needed.
- The correlation engine may combine alerts from several signals into one incident, so automation can receive data it was not designed for.
- It might take up to 10 minutes from an alert to the automation rule running.
- If several changes are made to one incident within 5 to 10 minutes, a single update is sent with only the most recent change.
Two more rule features help keep scope tight. Rules run one after another in the order set, never in parallel, so a later rule sees the incident as earlier rules left it. A rule can also carry an expiration date, after which it is disabled. Microsoft's example is closing expected incidents during a penetration test without leaving that rule in place afterward.
Give the automation only the access it needs
Three separate permissions are involved, and each deserves its own decision.
- Sentinel's permission to run the playbook. Automation rules run playbooks through a Microsoft Sentinel service account, not a user account. That account needs the Microsoft Sentinel Automation Contributor role on the resource group that holds the playbook. Microsoft notes that once the permission is granted, any automation rule can run any playbook in that resource group. A practical consequence: keep playbooks that take response actions in a separate resource group from playbooks that only notify.
- The playbook's permission in Sentinel. Microsoft's authentication guidance says a playbook can connect as a managed identity, a registered application, or a user, and recommends a registered application over a user account. Its playbook creation steps go further: Microsoft recommends a managed identity when possible, because no one has to store or manage a credential for it. The authentication guidance also matches the role to the need: Microsoft Sentinel Reader when the playbook only receives incidents, Microsoft Sentinel Responder when it updates them.
- The playbook's permission in the target system. Logic Apps authenticates separately to every resource it touches. A playbook that disables users needs rights in Microsoft Entra ID to do so. Grant only what that one action requires, and review it like any other privileged identity.
People need roles too. The playbook guidance lists Microsoft Sentinel Playbook Operator as the role for running a playbook manually, and Logic App Contributor for editing one. Decide who holds each, because the person who can edit a response playbook can change what it does.
Test it, then watch it run
Microsoft's playbook workflow includes a plain instruction: test the logic app by running it manually before setting it to run automatically. Do that against a test account or a test incident, and confirm both the action and the way to undo it.
After that, watch the automation itself. Microsoft's automation health guidance explains that, once health monitoring is turned on, the SentinelHealth table records each automation rule run with a status of Success, Partial success, or Failure. The query below, written in Kusto Query Language (KQL), summarizes those records. It only reads data.
SentinelHealth
| where TimeGenerated >= ago(7d)
| where OperationName == "Automation rule run"
| summarize Runs = count() by SentinelResourceName, Status
| order by SentinelResourceName asc
Read the result with one caution from the same guidance: Success means only that the automation rule triggered the playbook. It does not show the results of the actions inside the playbook. To see those, turn on diagnostics in Azure Logic Apps for each playbook and send the logs to the Sentinel workspace. Microsoft also provides an Automation health workbook that brings the two sets of records together.
Plan the cost as well. Because playbooks use Azure Logic Apps, Microsoft notes that additional charges can apply. Check the current Logic Apps pricing for the plan type in use.
Common mistakes and how to avoid them
Security and technical readiness
Automated response can help with compliance work, especially where a requirement calls for incidents to be handled promptly, response actions to be approved by named people, and a record to be kept of what was done. This article describes technical implementation only. It is not an assessment or a guarantee of any compliance result.
Sources
- Automation in Microsoft Sentinel: Security orchestration, automation, and response (SOAR)Source checked:
- Automate threat response in Microsoft Sentinel with automation rulesSource checked:
- Automate threat response with playbooks in Microsoft SentinelSource checked:
- Use a Microsoft Sentinel playbook to stop potentially compromised usersSource checked:
- Authenticate playbooks to Microsoft SentinelSource checked:
- Create and manage Microsoft Sentinel playbooksSource checked:
- Monitor the health of your automation rules and playbooksSource checked: