Lesson 4 of 7 Microsoft Sentinel Collection

Connecting Microsoft Data Sources

This lesson explains the main connectors for Azure resources, and how to confirm that data is flowing.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the connector mechanisms.
  • Identify the main Microsoft connectors.
  • Deploy diagnostic settings at scale.
  • Verify that data is arriving.

Connector types

A data connector is the way to bring in a source's data. Microsoft services use several underlying mechanisms, and it helps to know which one a connector uses.

MechanismHow it worksExample
Service-to-service APIMicrosoft services connect directlyMicrosoft Defender XDR, Microsoft 365
Diagnostic settingsA resource sends logs to the workspaceAzure Firewall, Azure Key Vault, Microsoft Entra ID
Azure Monitor AgentAn agent on a machine sends logs according to a DCRWindows and Linux VMs
Codeless connectorThe platform polls an APIMany partner SaaS products

Connecting a data source needs Write permission on the workspace, and often rights on the source as well. Connectors are found on the Data connectors page once a solution is installed. Each page shows its status, the last time data arrived, the tables it writes and the steps required.

Sort into groups

How does the connector work?

Exam skills 4.2.4

Decide which mechanism each connector uses.

Log in to try this activity Interactive activities are free with an account.

Main Microsoft connectors

The following table lists connectors that security engineers meet most often.

ConnectorDataTables includeNotes
Azure ActivitySubscription-level control plane eventsAzureActivityUses diagnostic settings; can be deployed by Azure Policy
Microsoft Entra IDSign-in and audit logsSigninLogs, AuditLogsEnabling needs suitable Entra rights and a P1 or P2 licence for sign-in logs
Microsoft Defender XDRIncidents, alerts and raw eventsSecurityIncident, DeviceEvents and othersBidirectional incident sync
Microsoft Defender for CloudSecurity alertsSecurityAlertConnected per subscription, or through the tenant-based connector
Microsoft 365Exchange, SharePoint and Teams activityOfficeActivityAudit data
Match the pairs

Connectors and tables

Exam skills 4.2.4

Match each connector with a table it writes.

Log in to try this activity Interactive activities are free with an account.

Diagnostic settings at scale

Many Azure resources produce logs only if a diagnostic setting sends them somewhere. An organization cannot configure each one by hand, so Azure Policy with a DeployIfNotExists effect is the normal approach. A built-in initiative can deploy settings to a Log Analytics workspace, and new resources are then covered automatically. Existing ones need a remediation task.

Each resource has its own log categories, and they are not equally useful. Choose the ones that matter, since sending everything increases ingestion costs. Key Vault's AuditEvent, for instance, is highly valuable, whereas verbose metrics may not be.

Verifying data flow

A connector's status can be misleading, so confirm with a query. The following example shows when each table last received data, which is a simple health check.

union withsource=TableName AzureActivity, SigninLogs, AuditLogs, SecurityAlert
| summarize LastEvent = max(TimeGenerated), Events = count() by TableName
| order by LastEvent desc

Microsoft Sentinel also offers a data connectors health feature, with the SentinelHealth table, once health monitoring is turned on. An analytics rule can alert when a critical source goes silent, which matters because a quiet log may mean that a connector has failed, not that nothing has happened.

Costs and free data

Some Microsoft data is free to ingest. Azure Activity logs, for example, and alerts from Defender products are included at no ingestion cost, whereas Microsoft Entra sign-in logs and raw Defender XDR events are charged. Plan for this before enabling broad collection. Defender for Servers Plan 2 provides a benefit of 500 MB per server per day for certain security data.

Sort into groups

Free or charged?

Exam skills 4.2.4

Decide whether each kind of data is free to ingest.

Log in to try this activity Interactive activities are free with an account.
Worked example

Covering all key vaults

A company wants all Key Vault audit logs across 40 subscriptions to reach a central Sentinel workspace, including vaults created in future. The security team cannot edit each vault. What is the best approach?

Assign a built-in Azure Policy that deploys diagnostic settings for Key Vault to the workspace, at the management group that holds the subscriptions, using DeployIfNotExists. Run a remediation task for the existing vaults, and make sure that the assignment's managed identity has the required roles.

A script would miss new vaults. Installing a solution alone would not create the diagnostic settings. The Azure Monitor Agent runs on machines, not on PaaS resources.

Check yourself

Why does a quiet data source deserve an alert?

Show answer

Silence may mean that a connector has failed, so a detection gap can open without notice.

Exam Tips

Remember for the exam

  • Connecting data needs Write on the workspace.
  • Many Azure resources need diagnostic settings, deployed at scale by policy.
  • Azure Activity and Defender alerts are free to ingest.
  • Alert on a silent data source, since silence can mean failure.