Microsoft Sentinel
Workspaces · roles · content hub · data connectors · Syslog, CEF and Windows events with DCRs · custom tables · automation rules and playbooks · retention · Purview Audit
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Workspaces, the Defender portal and roles
- Create: Microsoft Sentinel must be added to a Log Analytics workspace. You can run it on more than one workspace, but data is isolated to a single workspace. Plan to start with a single workspace and add more only for a reason such as different regions, tenants or retention needs.
- Permissions: enabling Sentinel needs Contributor on the subscription that holds the workspace. Using it needs Microsoft Sentinel Contributor or Microsoft Sentinel Reader on the workspace's resource group. Installing content hub solutions needs Microsoft Sentinel Contributor on the resource group.
- Limits: default workspaces created by Defender for Cloud are not shown and cannot host Sentinel. After deployment, the workspace cannot be moved to another resource group or subscription.
- Raise retention to 90 days to use all Sentinel features if the workspace has a 30-day default under legacy pricing tiers.
- Each workspace sits in one Azure region. With several Microsoft Entra tenants you usually create a workspace in each. Separate workspaces are needed for different retention settings on the same tables.
- Defender portal: after March 31, 2027, Sentinel is no longer supported in the Azure portal and is available only in the Microsoft Defender portal. Starting July 2025, new customers (onboarding the first workspace in their tenant) with Owner or User Access Administrator permissions are automatically onboarded. The Defender portal supports multiple workspaces with one primary workspace per tenant.
- After onboarding to the Defender portal, Microsoft Sentinel Contributor is assigned to the Microsoft Threat Protection and WindowsDefenderATP apps. Alerts and incidents are no longer encrypted with a customer-managed key after onboarding.
| Role | Grants |
|---|---|
| Microsoft Sentinel Reader | View data, incidents, workbooks, recommendations |
| Microsoft Sentinel Responder | Reader plus manage incidents |
| Microsoft Sentinel Contributor | Responder plus install or update solutions, create or edit resources, manage content hub |
| Microsoft Sentinel Playbook Operator | List, view and manually run playbooks |
| Microsoft Sentinel Automation Contributor | Lets Microsoft Sentinel add playbooks to automation rules. Not used for user accounts. |
| Logic App Contributor | Create and edit playbooks (a Logic Apps role) |
- Assign roles at the resource group that holds the workspace for best results. Assigning at the workspace means also assigning the same roles on the SecurityInsights solution resource.
- Connecting data sources needs write permission on the workspace. Guest users who assign incidents need Directory Reader and Microsoft Sentinel Responder. Creating or deleting workbooks needs Workbook Contributor as well.
- Recommended: analysts get Responder (Sentinel resource group) and Playbook Operator (playbook resource group); engineers get Contributor and Logic App Contributor; service principals get Contributor.
- Role assignments are cumulative. For access to specific data only, use resource-context RBAC or table-level RBAC.
Content hub and connectors for Azure resources
- The content hub is the central place to discover and manage out-of-the-box content. Installing, updating or deleting needs Microsoft Sentinel Contributor at the resource group level. Search results are limited to 50 items.
- To use a content item that is part of a solution, install the entire solution. Use Install with dependencies when the solution needs data connectors (for example Syslog, CEF or custom logs via AMA). Standalone content updates automatically; solutions show Update in the status column.
- Manage an installed solution (version 2.0.0 or higher) with Manage: open connector pages, enable analytics rules from templates, clone hunting queries, save workbooks from templates, create playbooks from templates. Parsers become workspace functions in Log Analytics.
| Connector type | Needs | Example |
|---|---|---|
| API-based | Read and write on the workspace; Security administrator on the tenant (or equivalent); service-specific licenses | Microsoft Entra ID Protection (needs Entra ID P2) |
| Diagnostic settings, standalone | Read and write on the workspace; add a diagnostic setting with Send to Log Analytics | Resource types without a policy-managed connector |
| Diagnostic settings, Azure Policy managed | Owner on the policy assignment scope; Launch Azure Policy Assignment wizard; remediation task for existing resources | Azure Activity, Azure Storage Account |
| Windows agent-based | Azure Monitor Agent; Arc for non-Azure machines | Windows Security Events via AMA |
- Azure Policy-managed connectors show connected only if data arrived in the past 14 days. The policy applies to resources added later; select Create a remediation task to cover existing ones.
- Azure Activity now uses the diagnostic settings pipeline. If you used the legacy method, disconnect existing subscriptions first. Azure DDoS Protection shows Connected only when protected resources are under a DDoS attack.
- For a storage account, configure the parent account (Transaction metric) and each child storage type (all logs and metrics).
- Many connectors have a Create incidents - recommended! section; select Enable to create incidents from alerts automatically.
Syslog, CEF and Windows events with data collection rules
| Source | Connector | Stream and table |
|---|---|---|
| Linux machines, appliances (Syslog) | Syslog via AMA | Microsoft-Syslog stream, Syslog table |
| Security appliances (CEF) | Common Event Format (CEF) via AMA | Microsoft-CommonSecurityLog stream, CommonSecurityLog table |
| Windows security events | Windows Security Events via AMA | SecurityEvent table; non-Azure VMs need Azure Arc |
| Windows Event Forwarding (WEF) | Windows Forwarded Events (AMA) | WindowsEvent table |
| Standard Azure Monitor Windows events DCR | Windows Event Logs data source | Event table (Log Analytics workspace only) |
Syslog and CEF via AMA
- Install the solution for the device from the Content hub, which gives you Syslog via AMA or CEF via AMA.
- Prepare a Linux log forwarder: a Linux VM (Python 2.7 or 3,
rsyslogorsyslog-ngenabled). If it is not an Azure VM it needs the Azure Arc Connected Machine agent. - On the connector page select +Create data collection rule, pick the forwarder VM on the Resources tab, and set the minimum log level per facility. The connector installs Azure Monitor Agent.
- Run the installation script on the forwarder so the syslog daemon listens for messages from other machines, and point devices at the forwarder.
- Roles to deploy: Virtual Machine Contributor or Azure Connected Machine Resource Administrator (deploy the agent), a role with
Microsoft.Resources/deployments/*(deploy ARM templates), and Monitoring Contributor (create or edit data collection rules). - A minimum log level collects that level and everything more severe. For example
LOG_ERRcollects LOG_ERR, LOG_CRIT, LOG_ALERT and LOG_EMERG. Using the same facility for syslog and CEF can duplicate data. Add more than one workspace to a DCR and Learn says this sends duplicate data to each, which results in additional cost. - With the API route, the DCR
streamsfield isMicrosoft-SyslogorMicrosoft-CommonSecurityLog, and a DCR association (DCRA) ties the DCR to the forwarder VM. - Devices that send over TLS need the syslog daemon configured for TLS. Open port 514 (TCP or UDP, depending on the source) on the forwarder. The Heartbeat table check confirms the agent is running.
- Legacy: the Log Analytics agent was retired on 31 August 2024. The AMA connectors replace the old Syslog connector.
Windows events
- DCR Windows events data source: pick logs and severity, or Custom with an XPath query in the form
LogName!XPathQuery. A DCR supports up to 20 XPath expressions (Get-WinEventup to 23); test a query withGet-WinEvent -FilterXPathfirst. - AMA collects only from event logs on a local disk (not network shares or UNC paths) and cannot subscribe to Analytic or Debug channels.
- Predefined event sets for the Security Events connector include All events, Minimal and Common; DCRs also allow custom filters so the agent filters at the source and you ingest only what you need.
Custom log tables and data retention
- Custom tables end in
_CL. The portal adds the suffix; with CLI, PowerShell or API you add it yourself, and the DCR data flow stream must match the name. - Portal steps: Log Analytics workspace > Tables > Create; name; plan (Analytics default, Basic, or Auxiliary / Lake); choose or create a DCR and a data collection endpoint; upload a sample JSON file; optionally add a KQL transformation.
- Needs:
Microsoft.OperationalInsights/workspaces/*to manage tables (for example Log Analytics Contributor) andMicrosoft.Insights/dataCollectionRules/writeto create the DCR (for example Monitoring Contributor). - Every table needs a
TimeGeneratedcolumn; Azure Monitor adds it to the transformation when it is missing. Auxiliary / Lake plans accept only ISO 8601 with six decimal places. Table names are used for billing, so keep sensitive data out of them. - Table types in the Defender portal: Microsoft Sentinel (built-in), Custom (
_CL,_SRCH), XDR (view only).
| Analytics tier | Data Lake tier | |
|---|---|---|
| Use | Real-time analytics rules, alerting, hunting, workbooks, all Sentinel features | Low-cost long-term retention, forensics, compliance; slower queries |
| Analytics rules and hunting | Work | Stop working if you move a table here |
| Retention | Extend up to two years (prorated long-term retention charge) | Same as analytics retention by default; up to 12 years total |
| Restore and data export | Yes | No (KQL and notebook jobs can promote data) |
- Shorten total retention: Microsoft waits 30 days before removing data, so you can revert. Increase total retention: applies to data already ingested and not yet removed. Change analytics retention: takes effect immediately.
- Extend Sentinel solution tables to 90 days for free. Retention is set per table at Data management > Tables.
- In the Defender portal, Data & connectors (Setup & configuration > Data & connectors) is in preview at the time of writing. It needs unified RBAC and the Data (manage) permission, plus workspace rights equivalent to Log Analytics Contributor. Basic Logs tables can be viewed there but managed only in the Log Analytics workspace.
Microsoft's pages differ on default analytics retention: "Manage data tiers and retention" says Sentinel and Defender XDR retain analytics tier data for 30 days by default in one place and 90 days for Microsoft Sentinel (30 days for Defender XDR) in its table, "Reduce costs" says 90 days, and the onboarding page mentions a 30-day default under legacy pricing tiers. Set retention explicitly rather than relying on a default.
Automation rules and playbooks
| Automation rule | Playbook | |
|---|---|---|
| What it is | Centrally managed rule: trigger, conditions, actions | Logic Apps workflow (Consumption or Standard) |
| Runs when | Incident created or updated, or alert created | Called by a rule, an analytics rule, or run manually on an incident, alert or entity |
| Can do without a playbook | Add tasks, change status or severity, assign owner, add tags, suppress noise | Complex actions and external systems (enrichment, ticketing, containment) |
- Triggers: when an incident is created, when an incident is updated, when an alert is created (alert trigger: Scheduled, NRT and Microsoft security analytics rules). Incident-triggered automation is usually preferred.
- Playbook match: only incident-trigger playbooks run from incident-trigger rules, and only alert-trigger playbooks from alert-trigger rules.
- Order: rules run sequentially, each trigger type has its own queue, incident-create rules run before incident-update rules, and actions run in the listed order. Rules made in the Azure portal get the next order number automatically; via API or CLI you set it manually. Equal order numbers run in random order.
- Expiration date: the rule is disabled after the date (useful for penetration testing noise).
- Permissions: an automation rule runs playbooks with a Microsoft Sentinel service account that needs the Microsoft Sentinel Automation Contributor role on the playbook resource group. Granting it needs Owner or User Access Administrator. Playbooks it cannot reach show grayed out; use Manage playbook permissions.
- To run a playbook manually: Microsoft Sentinel Playbook Operator. To edit: Logic App Contributor (Consumption) or the Logic Apps Standard roles. To attach a playbook to a rule: Microsoft Sentinel Contributor. Responder gives access to the incident but does not allow running the playbook.
- Create under Configuration > Automation > Create > Logic App playbook. For private network access use a Standard workflow (private endpoints inbound, virtual network integration outbound). Playbooks can cost extra because Logic Apps are billed.
- Playbook templates are in preview at the time of writing, per Microsoft Learn.
Microsoft Purview Audit
- Audit log search is on by default for Microsoft 365 and Office 365 enterprise organizations. Check
UnifiedAuditLogIngestionEnabledin Exchange Online PowerShell (in Security & Compliance PowerShell it always reads False). - You need the Audit Logs or View-Only Audit Logs role in the Microsoft Purview portal to search.
- Search in the Microsoft Purview portal: Audit solution > Search: date range up to 180 days (UTC), keywords, users, activities by friendly name or exact operation name, record types, workloads. Up to 10 search jobs run in parallel per user; completed jobs are kept for 30 days.
- Retention: 180 days for non-E5 licenses; one year by default for Microsoft Entra ID, Exchange and SharePoint activity for E5 licenses.
- The cmdlet behind the search is
Search-UnifiedAuditLog(Exchange Online PowerShell). For programmatic download use the Office 365 Management Activity API. - Export limits: 50,000 rows for Audit (Standard), 1,000,000 for Audit (Premium). Admin units scope what a restricted admin can search.
Not verified from Learn: the SC-500 objective says "Query Microsoft Purview Audit in Defender XDR". The cached Learn pages for this study guide describe searching Purview Audit in the Microsoft Purview portal and with Exchange Online PowerShell, not a Defender XDR audit query experience. Check Microsoft Learn before the exam for the Defender portal path.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create a custom table in a Log Analytics workspace | az monitor log-analytics workspace table create --resource-group "$resourceGroupName" --workspace-name "$workspaceName" --name "$tableName" --plan Analytics --columns TimeGenerated=datetime RawData=string | New-AzOperationalInsightsTable @newAzOperationalInsightsTableParams |
| Test an XPath query for a Windows events DCR | - | Get-WinEvent -LogName 'Application' -FilterXPath $XPath |
| Check whether audit log search is on (Exchange Online PowerShell) | - | Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled |
| Turn audit log search off (Exchange Online PowerShell) | - | Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false |
| Search the audit log from PowerShell (Exchange Online PowerShell) | - | Search-UnifiedAuditLog |
Exam Tips
Tick each tip once you can answer it without looking.
“Sentinel workspace: who can enable it” → Contributor on the subscription to enable; Microsoft Sentinel Contributor or Reader on the resource group to use. Trap: Sentinel roles do not let you enable Sentinel on the subscription.
“Defender for Cloud default workspace not listed for Sentinel” → Not shown and cannot host Sentinel; use another workspace. Trap: The Defender for Cloud default workspaces are not shown in the Sentinel workspace list.
“Move a Sentinel workspace to another subscription” → Not supported once Sentinel is deployed on it. Trap: Neither a resource group move nor a subscription move is supported after Sentinel is deployed.
“Azure portal support for Sentinel” → Ends March 31, 2027; Defender portal only after that. Trap: New Owner or User Access Administrator customers have been auto-onboarded to the Defender portal since July 2025.
“Tier 1 analyst manages incidents but cannot install content” → Microsoft Sentinel Responder. Trap: Contributor adds content and resource management; Reader cannot manage incidents.
“Install or update content hub solutions” → Microsoft Sentinel Contributor at resource group level. Trap: Reader and Responder cannot manage the content hub.
“Solution depends on a connector (CEF, Syslog, custom logs via AMA)” → Install with dependencies. Trap: You must install the whole solution to use its content items.
“Azure Policy-managed connector must also cover existing resources” → Owner on the assignment scope; tick Create a remediation task. Trap: The policy otherwise applies only to resources added later.
“On-premises Linux CEF forwarder missing from the DCR resource list” → Install the Azure Arc Connected Machine agent. Trap: The Log Analytics agent is the legacy agent, retired 31 August 2024.
“Syslog or CEF stream and table names” → Syslog: Microsoft-Syslog / Syslog. CEF: Microsoft-CommonSecurityLog / CommonSecurityLog. Trap: Using one facility for both syslog and CEF can duplicate data.
“Windows tables: Event vs SecurityEvent vs WindowsEvent” → Standard DCR Windows events: Event. Security Events via AMA: SecurityEvent. WEF connector: WindowsEvent. Trap: Selecting the Security log in a plain DCR does not fill SecurityEvent.
“Collect Windows events from a network share or Analytic and Debug channels” → Not supported: local disk logs only; no Analytic or Debug channels. Trap: Windows event log collection with Azure Monitor Agent is supported only for logs on a local disk, and Analytic and Debug channels cannot be collected.
“Custom table created outside the portal” → Add the _CL suffix yourself; the DCR stream must match. Trap: The portal adds _CL automatically; CLI, PowerShell and API do not.
“Cut cost by moving a table to the Data Lake tier” → Analytics rules and hunting queries on it stop working. Trap: Shortening total retention waits 30 days before deleting data.
“Automation rule cannot select a playbook” → Trigger mismatch (incident vs alert) or Sentinel lacks Automation Contributor on the playbook resource group (grayed out; fix needs Owner). Trap: Playbook Operator is for running playbooks manually, not for rules.
“Audit search property reads False in Security & Compliance PowerShell” → Always False there; check UnifiedAuditLogIngestionEnabled in Exchange Online PowerShell. Trap: The audit search may still be on.
Sources
- Onboard to Microsoft Sentinel
- Microsoft Sentinel overview (Azure portal retirement timeline)
- Transition your Microsoft Sentinel environment to the Defender portal
- Design a Log Analytics workspace architecture
- Roles and permissions in the Microsoft Sentinel platform
- Discover and deploy content from the content hub
- Connect with diagnostic settings-based connectors
- Connect with API-based connectors
- Connect Sentinel to Azure, Windows, and Microsoft services
- Ingest syslog and CEF messages with AMA
- Tutorial: Forward Syslog data with Azure Monitor Agent
- Connect Syslog data (deprecated)
- Collect Windows events with Azure Monitor Agent
- Microsoft Sentinel data connectors reference
- Reduce costs in Microsoft Sentinel
- Add or delete tables and columns in Azure Monitor Logs
- Manage data tiers and retention in Microsoft Sentinel
- Configure interactive and long-term data retention
- Automate threat response with automation rules
- Automate threat response with playbooks
- Create and manage Microsoft Sentinel playbooks
- Search the audit log (Microsoft Purview)
Checked against Microsoft Learn on November 13, 2026.