Sentinel Setup & Automation
Sentinel roles · automation rules · playbooks · data tiers and retention · workbooks · SOC optimization
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Roles and permissions
Microsoft Sentinel SIEM uses Azure RBAC roles. The Microsoft Sentinel data lake uses Microsoft Entra ID RBAC roles. Assign the Sentinel roles at the resource group level for best results.
| Role | What it grants |
|---|---|
| Microsoft Sentinel Reader | View data, incidents, workbooks, recommendations and other resources |
| Microsoft Sentinel Responder | All Reader permissions, plus manage incidents |
| Microsoft Sentinel Contributor | All Responder permissions, plus install/update solutions, create/edit resources |
| Microsoft Sentinel Playbook Operator | List, view, and manually run playbooks |
| Microsoft Sentinel Automation Contributor | Allows Microsoft Sentinel to add playbooks to automation rules. Not used for user accounts. |
- Connect data sources: write permission on the workspace.
- Content hub: Microsoft Sentinel Contributor at the resource group level.
- Run playbooks: Playbook Operator. Create or edit playbooks: Logic App Contributor.
- Create or delete workbooks: Microsoft Sentinel Contributor or a lesser Sentinel role, and Workbook Contributor.
- Guest users assigning incidents: Directory Reader and Microsoft Sentinel Responder. Directory Reader is a Microsoft Entra ID role that regular (nonguest) users have by default.
- Role assignments are cumulative: a user with Sentinel Reader and Contributor may have more permissions than intended.
- To limit access to specific data instead of the whole workspace, use resource-context RBAC or table-level RBAC.
- Data lake jobs: creating scheduled jobs or managing jobs requires a Microsoft Entra ID role (Security operator, Security administrator or Global administrator).
After March 31, 2027, Microsoft Sentinel is no longer supported in the Azure portal and is available only in the Microsoft Defender portal.
Automation rules
Automation rules manage incident handling from one place. They can add tasks, tag, assign, change severity or status, and close incidents without a playbook, and they can run playbooks.
| Piece | Detail |
|---|---|
| Triggers | When an incident is created, when an incident is updated, when an alert is created |
| Alert trigger | Fires for alerts created by a Scheduled or NRT analytics rule; the only condition is the set of analytics rules |
| Conditions | Evaluated against the current state of the incident when the rule runs (equals, contains, starts with, ends with). The update trigger adds state-change checks and Updated by. |
| Actions | Add task, change status (with closing reason and comment), change severity, assign owner, add tag, run playbook |
| Expiration | Optional date after which the rule is disabled (for example for penetration-test noise) |
| Order | Order number sets execution. Each trigger type has its own queue; create-trigger rules run before update-trigger rules; same order number means random order; rules never run in parallel. |
- Incident-triggered automation is the preferred approach. Use alert-triggered automation mainly for alerts from analytics rules that don't create incidents.
- Only incident-trigger playbooks run from incident-trigger rules, and only alert-trigger playbooks from alert-trigger rules.
- A later rule evaluates the incident as changed by earlier rules.
- To run a playbook, the Sentinel service account needs explicit permission on the playbook's resource group. Granting it needs Owner on that resource group (the Manage playbook permissions link).
In the Defender portal
- Alert-trigger rules act only on Microsoft Sentinel alerts. For Defender XDR alerts too, use the Enhanced Alert Trigger.
- Microsoft incident creation rules aren't supported.
- Create automation rules from the Automation page; creating one directly from an incident is supported only in the Azure portal.
- If several changes hit one incident within 5-10 minutes, one update carrying only the latest change is sent; intermediate updates are lost.
- It might take up to 10 minutes from the alert to the automation rule running.
Playbooks
A playbook is a collection of response and remediation actions built on Azure Logic Apps. It can run automatically from an automation rule or manually on demand.
| Role | Lets you |
|---|---|
| Owner (or User Access Administrator) | Grant Microsoft Sentinel access to playbooks in the resource group |
| Microsoft Sentinel Contributor | Attach a playbook to an analytics or automation rule |
| Microsoft Sentinel Responder | Access an incident to run a playbook manually, but not run it |
| Microsoft Sentinel Playbook Operator | Run a playbook manually |
| Microsoft Sentinel Automation Contributor | Let automation rules run playbooks (not for other purposes) |
| Logic App Contributor (Consumption) | Edit and manage logic apps |
| Logic Apps Standard Developer / Contributor / Operator | Create and edit workflows / manage all aspects / enable, resubmit and disable workflows |
- Microsoft Sentinel uses a service account to run playbooks on incidents (incident-triggered, or run manually on an incident). That account needs the Automation Contributor role on the playbook's resource group; you need Owner or User Access Administrator to grant it.
- By default a playbook can be used only within its own subscription unless Sentinel gets permissions on the playbook's resource group.
- Consumption playbook options: alert trigger and case trigger (Defender wording; shown as Microsoft Sentinel incident in Logic Apps), plus the legacy incident, alert and entity triggers. Standard workflows start from a blank playbook and don't support playbook templates.
- For authentication, Microsoft recommends a managed identity when possible.
- Standard workflows support private endpoints for inbound traffic.
- Playbook templates are in preview, per Microsoft Learn.
- Typical uses: enrichment, bi-directional sync with ticketing systems, orchestration in chat, and response.
Data tiers and retention
| Tier / state | What it does | Retention |
|---|---|---|
| Analytics tier (analytics retention) | Real-time analytics: analytics rules, hunting, alerting, workbooks | Up to two years (30 days to two years in the table settings) |
| Total retention | Analytics data is mirrored to the data lake; extend beyond analytics retention | Up to 12 years |
| Data lake tier | Low-cost data lake only; no real-time analytics or threat hunting. Query with KQL jobs, Spark jobs, notebooks, summary rules | 30 days to 12 years |
| XDR default tier | Defender XDR threat hunting data | 30 days by default; extend up to 90 days in the Analytics tier (ingestion costs, free storage) |
- Manage tables in the Defender portal: Microsoft Sentinel > Configuration > Tables, select a table, then Manage table.
- Permissions: Security data basics (read) (Security operations group) to view; Data (manage) (Data operations group) to configure. With workspace permissions, view needs table read (Log Analytics Reader) and configure needs workspace and table write (Log Analytics Contributor).
- Switching a table from Analytics to Data Lake stops alerting, advanced hunting, analytics rules and custom detection rules on that table.
- Not every table can change tier: some XDR and Sentinel solution tables must stay in the Analytics tier.
- Shortening total retention: Microsoft waits 30 days before removing the data. Increasing total retention applies to data already ingested and not yet removed. Changing analytics retention takes effect immediately.
- Example: 180 days analytics and total retention, analytics changed to 90 days: data 90-180 days old stays in the Data Lake tier.
- Extending XDR table retention beyond 90 days in the Analytics tier also incurs storage costs.
- XDR default tier tables (for example
IdentityInfo) can be viewed but not managed in the Defender portal. Basic Logs tables can be viewed there but managed only from the Log Analytics workspace. - Table insights shows ingestion health (last data received, fluctuations, cost). It is a visualization surface only; to alert, use a scheduled analytics rule on
SentinelHealth. By default fluctuations need at least a 10 percent and 1 MB change. - The Data & connectors experience is in preview, per Microsoft Learn.
- Specific records can't be purged from the data lake.
Workbooks
- Each workbook is an Azure resource, so Azure RBAC controls who can access it. You need at least Workbook reader or Workbook contributor on the workspace's resource group.
- To use a template, install its solution (or the standalone workbook) from the Content hub. Then Workbooks > Templates tab, Save, View saved workbook, Edit. Saving stores only the workbook JSON, no data.
- Templates can't be deleted; delete saved workbooks from My workbooks.
- Queries: set Data source to Logs and Resource type to Log Analytics. Prefer an ASIM parser over a built-in table.
- Auto refresh runs from 5 minutes to 1 day and is off by default. Create a custom tile in Log Analytics, then Pin it.
- In the Defender portal some visualizations open only in the Azure portal (Open in Azure); print and Save as PDF are Azure-portal only.
SOC optimization
SOC optimization gives actionable recommendations to close coverage gaps and to tighten ingestion of data that adds no security value. Recommendations are calculated every 24 hours. Onboard Microsoft Sentinel to the Defender portal to use it there; it uses the standard Sentinel roles.
| Type | What it recommends |
|---|---|
| Data value | Better use of ingested data or a better data plan; looks only at billable tables that ingested data in the past 30 days |
| Coverage: threat-based | Missing detections, missing data sources, or both. Considers predefined and user-defined detections |
| Coverage: AI MITRE ATT&CK tagging (preview) | Suggests MITRE tactics and techniques for untagged detections |
| Coverage: risk-based (preview) | Controls for gaps tied to business risks |
| Similar organizations | Data sources used by organizations with similar ingestion trends and industry profiles |
| Observation | Action |
|---|---|
| Table not used at all in the last 30 days | Turn on analytics rule templates, or stop ingestion and remove the table, or move it to long-term retention |
| Table used only by Azure Monitor | Turn on relevant analytics rule templates, or move it to a nonsecurity Log Analytics workspace |
| Data sources exist, detections missing | Turn on analytics rule templates |
| Templates on, data sources missing | Connect new data sources |
- Threat-based coverage indicator (Defender portal): High over 75% of recommended rules active, Medium 30%-74%, Low 0%-29%.
- A table chosen for UEBA or a threat intelligence matching analytics rule gets no ingestion-change recommendation.
- Take action from the card: Go to Content Hub to add analytics rules, Change plan to move a table to basic logs.
- Open it from SOC optimization in the Defender portal, or Threat management > SOC optimization in the Azure portal.
Exam Tips
Tick each tip once you can answer it without looking.
“Analysts must manage incidents but not edit rules or resources” → Microsoft Sentinel Responder. Trap: Reader only views; Contributor also installs solutions and creates or edits resources.
“Create or edit playbooks” → Logic App Contributor (Consumption) or a Logic Apps Standard role. Trap: Playbook Operator only lists, views and manually runs playbooks.
“Attach a playbook to an analytics or automation rule” → Microsoft Sentinel Contributor. Trap: Responder can open the incident but can't run the playbook; Automation Contributor isn't for user accounts.
“Automation rule can't run a playbook (playbook grayed out)” → Grant the Sentinel service account Automation Contributor on the playbook's resource group (needs Owner). Trap: Giving your own account Playbook Operator doesn't give the service account access.
“Create or delete a workbook” → Sentinel Contributor or a lesser Sentinel role, plus Workbook Contributor. Trap: A Sentinel role alone isn't enough.
“Close noisy pen-test incidents automatically for a limited time, no playbook” → Automation rule on incident creation with a close action and an expiration date. Trap: A playbook isn't needed to close or tag incidents.
“Two automation rules on the same trigger; the first changes severity” → Later rules see the changed incident; order numbers decide the sequence; rules never run in parallel. Trap: Equal order numbers run in random order.
“Playbook for Defender XDR alerts when onboarded to the Defender portal” → Enhanced Alert Trigger. Trap: The normal alert trigger acts only on Microsoft Sentinel alerts there.
“Defender portal automation: incident updates in quick succession” → Within 5-10 minutes only the latest change is sent; intermediate updates are lost. Trap: Don't build logic that needs every state change.
“Keep data for years at low cost, query occasionally” → Data Lake tier or extended total retention (up to 12 years). Trap: Analytics retention tops out at two years and data lake data has no real-time analytics.
“Move a table from Analytics to Data Lake” → Alerting, advanced hunting, analytics rules and custom detection rules on it stop. Trap: You can switch back at any time, but some tables must stay in Analytics.
“Shorten total retention by mistake” → Microsoft waits 30 days before removing the data, so you can revert. Trap: Changing analytics retention, by contrast, takes effect immediately.
“Defender XDR hunting data retention” → 30 days by default; up to 90 days in the Analytics tier with free storage. Trap: Beyond 90 days storage costs apply.
“View table settings vs change them with unified RBAC” → Security data basics (read) vs Data (manage). Trap: Table insights is a visualization surface, not an alerting surface.
“SOC optimization shows Medium threat-based coverage” → 30%-74% of recommended rules are active. Trap: High is over 75%; Low is 0%-29%.
“Table not used at all for 30 days” → Turn on analytics rule templates, or stop ingestion or use long-term retention. Trap: Moving to a nonsecurity workspace is for tables used only by Azure Monitor.
“Suggest MITRE ATT&CK tags for untagged detections” → AI MITRE ATT&CK tagging recommendation (preview). Trap: Threat-based recommendations add detections or data sources instead.
Sources
- Roles and permissions in the Microsoft Sentinel platform
- Automate threat response in Microsoft Sentinel with automation rules
- Automation in Microsoft Sentinel
- Create and manage Microsoft Sentinel playbooks
- Run playbooks in Microsoft Sentinel
- Automate threat response with playbooks in Microsoft Sentinel
- Manage data tiers and retention in Microsoft Sentinel
- Configure table settings in Microsoft Sentinel
- Microsoft Sentinel data lake overview
- Visualize and monitor your data by using workbooks in Microsoft Sentinel
- Use SOC optimization recommendations
- SOC optimization reference of recommendations
- Microsoft Sentinel data connectors
Checked against Microsoft Learn on November 13, 2026.