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.
| Mechanism | How it works | Example |
|---|---|---|
| Service-to-service API | Microsoft services connect directly | Microsoft Defender XDR, Microsoft 365 |
| Diagnostic settings | A resource sends logs to the workspace | Azure Firewall, Azure Key Vault, Microsoft Entra ID |
| Azure Monitor Agent | An agent on a machine sends logs according to a DCR | Windows and Linux VMs |
| Codeless connector | The platform polls an API | Many 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.
How does the connector work?
Main Microsoft connectors
The following table lists connectors that security engineers meet most often.
| Connector | Data | Tables include | Notes |
|---|---|---|---|
| Azure Activity | Subscription-level control plane events | AzureActivity | Uses diagnostic settings; can be deployed by Azure Policy |
| Microsoft Entra ID | Sign-in and audit logs | SigninLogs, AuditLogs | Enabling needs suitable Entra rights and a P1 or P2 licence for sign-in logs |
| Microsoft Defender XDR | Incidents, alerts and raw events | SecurityIncident, DeviceEvents and others | Bidirectional incident sync |
| Microsoft Defender for Cloud | Security alerts | SecurityAlert | Connected per subscription, or through the tenant-based connector |
| Microsoft 365 | Exchange, SharePoint and Teams activity | OfficeActivity | Audit data |
Connectors and tables
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 descMicrosoft 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.
Free or charged?
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.
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.