Collect Azure MDM Intune logs
Parser Version: 4.0
This document explains how to collect Microsoft Intune logs to Google Security Operations. You can configure ingestion using three methods: Azure Event Hub (recommended), the Third Party API, or Microsoft Azure Blob Storage V2.
Microsoft Intune is a cloud-based endpoint management solution that manages user access to organizational resources and simplifies app and device management across devices including mobile devices, desktop computers, and virtual endpoints.
Before you begin
Make sure you have the following prerequisites:
- A Google SecOps instance
- Privileged access to the Microsoft Azure portal
- A user with the Intune Administrator or Global Administrator Microsoft Entra role for the Intune tenant
- An active Intune license for the tenant
Method 1: Azure Event Hub (recommended)
This method streams Microsoft Intune logs through Azure Event Hub using diagnostic settings. Google SecOps ingests the logs directly from the Event Hub using the Azure Event Hub feed type.
Create an Event Hub namespace
An Event Hub namespace is a management container for one or more Event Hubs.
- In the Azure portal, search for Event Hubs.
- Click + Create.
Provide the following configuration details:
Setting Value Subscription Select your Azure subscription Resource group Select existing or create new Namespace name Enter a unique name (for example, secops-intune-logs)Location Select the region closest to your Microsoft Entra tenant Pricing tier Standard (recommended for production) Throughput units Start with 1, enable Auto-inflate (recommended) Click Review + create.
Review the overview and click Create.
Wait for the deployment to complete (1-2 minutes).
Create the Event Hub
- After the namespace is deployed, go to the Event Hub namespace.
- In the left navigation, select Event Hubs under Entities.
- Click + Event Hub.
Provide the following configuration details:
Setting Value Name Enter a unique name (for example, intune-logs)Partition count 40 (recommended for optimal Google SecOps scaling) Message retention 7 days (recommended minimum) Capture Disabled (not needed for Google SecOps) Click Create.
Get an Event Hub connection string
Google SecOps requires a connection string to authenticate to the Event Hub. For security and least privilege, use a policy that grants Listen (read-only) permission only.
Option A: Event Hub-level connection string (recommended)
- Go to the Event Hub (not the namespace).
- In the left navigation, select Shared access policies under Settings.
- Click + Add to create a new policy.
- Provide the following configuration details:
- Policy name: Enter a descriptive name (for example,
chronicle-listen). - Permissions: Select Listen only (read-only access).
- Policy name: Enter a descriptive name (for example,
- Click Create.
- Click the newly created policy.
- Copy the Connection string - primary key.
Save this connection string securely.
Option B: Namespace-level connection string
- Go to the Event Hub namespace.
- In the left navigation, select Shared access policies under Settings.
- Click + Add to create a dedicated read-only policy:
- Policy name: Enter a descriptive name (for example,
chronicle-listen). - Permissions: Select Listen only.
- Policy name: Enter a descriptive name (for example,
- Click Create.
- Click the newly created policy.
- Copy the Connection string - primary key.
- Save this connection string securely.
Example:
Original: Endpoint=sb://secops-intune-logs.servicebus.windows.net/;SharedAccessKeyName=chronicle-listen;SharedAccessKey=abc123==;EntityPath=intune-logs Remove EntityPath: Endpoint=sb://secops-intune-logs.servicebus.windows.net/;SharedAccessKeyName=chronicle-listen;SharedAccessKey=abc123==
Configure Intune diagnostic settings
- Sign in to the Microsoft Intune admin center.
- Select Reports > Diagnostic settings.
- Click Add diagnostic setting.
- Provide the following configuration details:
- Diagnostic setting name: Enter a descriptive name (for example,
intune-to-eventhub). - In the Logs section, select the following categories:
- OperationalLogs
- DeviceComplianceOrg
- Devices
- In the Destination details section, select Stream to an event hub.
- Subscription: Select the subscription containing your Event Hub namespace.
- Event hub namespace: Select the namespace you created (for example,
secops-intune-logs). - Event hub name: Select the Event Hub you created (for example,
intune-logs). - Event hub policy name: Select RootManageSharedAccessKey.
- Diagnostic setting name: Enter a descriptive name (for example,
Click Save.
(Optional) Create a dedicated consumer group
By default, Event Hub provides a consumer group named $Default. For production
environments, it is recommended to create a dedicated consumer group for
Google SecOps.
- Go to the Event Hub (not the namespace).
- In the left navigation, select Consumer groups under Entities.
- Click + Consumer group.
- Provide the following configuration details:
- Name: Enter a descriptive name (for example,
chronicle)
- Name: Enter a descriptive name (for example,
Click Create.
Configure a feed in Google SecOps
- Go to Settings > Data Management > Feeds. If you are on a SIEM-only platform, go to Settings > Feeds.
- Click Add New Feed.
- On the next page, click Configure a single feed.
- In the Feed name field, enter a name for the feed (for example,
Microsoft Intune - Event Hub). - Select Microsoft Azure Event Hub as the Source type.
- Select Microsoft Intune as the Log type.
- Click Next.
Specify values for the following input parameters:
Event hub connection string: Enter the Event Hub connection string you captured earlier.
If using a namespace-level connection string:
- Make sure you removed the
EntityPathparameter. - You must also provide the Event hub name in the next field.
If using an event hub-level connection string:
- Use the connection string as-is (includes
EntityPath). The Event hub name field can be left blank.
Event hub name: Enter the Event Hub name (for example,
intune-logs).
Required if using namespace-level connection string. Optional if using event hub-level connection string.
- Consumer group (optional): Enter the consumer group name.
- Leave blank to use the default
$Defaultconsumer group. - If you created a dedicated consumer group, enter its name (for
example,
chronicle).
- Make sure you removed the
Advanced Options:
- Feed Name: A prepopulated value that identifies the feed.
- Asset namespace: The asset namespace that the feed will be associated with.
- Ingestion labels: The label to be applied to the events from this feed.
Click Next.
Review your new feed configuration in the Finalize screen, and then click Submit.
Method 2: Third Party API
This method uses the Microsoft Graph API to retrieve Intune audit and operational logs directly from your Microsoft tenant.
Configure Microsoft Entra app registration
Create app registration
- Sign in to the Microsoft Entra admin center or Azure portal.
- Go to Identity > Applications > App registrations.
- Click New registration.
- Provide the following configuration details:
- Name: Enter a descriptive name (for example,
Google SecOps Intune Integration). - Supported account types: Select Accounts in this organizational directory only (Single tenant).
- Redirect URI: Leave blank (not required for service principal authentication).
- Name: Enter a descriptive name (for example,
- Click Register.
- After registration, copy and save the following values from the Overview page:
- Application (client) ID
- Directory (tenant) ID
Configure API permissions
- In the app registration, go to API permissions.
- Click Add a permission.
- Select Microsoft Graph > Application permissions.
- Search for and select the following permissions:
- DeviceManagementApps.Read.All
- DeviceManagementConfiguration.Read.All
- DeviceManagementManagedDevices.Read.All
- DeviceManagementServiceConfig.Read.All
- DeviceManagementRBAC.Read.All
- Click Add permissions.
- Click Grant admin consent for [Your Organization].
Verify that the Status column shows Granted for [Your Organization] for all permissions.
Required API permissions
| Permission | Type | Purpose |
|---|---|---|
| DeviceManagementApps.Read.All | Application | Read app management data and audit events |
| DeviceManagementConfiguration.Read.All | Application | Read device configuration and compliance policies |
| DeviceManagementManagedDevices.Read.All | Application | Read managed device information |
| DeviceManagementServiceConfig.Read.All | Application | Read Intune service configuration |
| DeviceManagementRBAC.Read.All | Application | Read role-based access control settings |
Create client secret
- In the app registration, go to Certificates & secrets.
- Click New client secret.
Provide the following configuration details:
- Description: Enter a descriptive name (for example,
Google SecOps Feed). - Expires: Select an expiration period.
- Description: Enter a descriptive name (for example,
Click Add.
Copy the client secret Value immediately.
Important: The secret value is displayed only once and cannot be retrieved after leaving this page. If you lose the value, you must create a new client secret.
Configure a feed in Google SecOps
- Go to Settings > Data Management > Feeds. If you are on a SIEM-only platform, go to Settings > Feeds.
- Click Add New Feed.
- On the next page, click Configure a single feed.
- In the Feed name field, enter a name for the feed (for example,
Microsoft Intune Logs). - Select Third Party API as the Source type.
- Select Microsoft Intune as the Log type.
- Click Next.
Specify values for the following input parameters:
- OAuth Client ID: Enter the Application (client) ID from the app registration (for example,
1234abcd-1234-abcd-1234-abcd1234abcd). - OAuth Client Secret: Enter the client secret value you copied earlier.
- Tenant ID: Enter the Directory (tenant) ID from the app registration in UUID format (for example,
0fc279f9-fe30-41be-97d3-abe1d7681418). API Full Path: Enter the Microsoft Graph REST API endpoint URL. Default value:
graph.microsoft.com/beta/deviceManagement/auditEventsAPI Authentication Endpoint: Enter the Microsoft Active Directory authentication endpoint. Default value:
login.microsoftonline.comAsset namespace: The asset namespace.
Ingestion labels: The label to be applied to the events from this feed.
- OAuth Client ID: Enter the Application (client) ID from the app registration (for example,
Click Next.
Review your new feed configuration in the Finalize screen, and then click Submit.
After setup, the feed begins to retrieve Intune audit and operational logs from the Microsoft Graph API.
Regional endpoints
For Microsoft Intune deployments in sovereign clouds, use the appropriate regional endpoints:
| Cloud Environment | API Full Path | API Authentication Endpoint |
|---|---|---|
| Global | graph.microsoft.com/beta/deviceManagement/auditEvents |
login.microsoftonline.com |
| US Government L4 | graph.microsoft.us/beta/deviceManagement/auditEvents |
login.microsoftonline.us |
| US Government L5 (DOD) | dod-graph.microsoft.us/beta/deviceManagement/auditEvents |
login.microsoftonline.us |
| China (21Vianet) | microsoftgraph.chinacloudapi.cn/beta/deviceManagement/auditEvents |
login.chinacloudapi.cn |
Method 3: Microsoft Azure Blob Storage V2
This method collects Microsoft Intune logs by exporting diagnostic data to an Azure Storage Account and configuring a Google SecOps feed to ingest from Azure Blob Storage.
Configure Azure Storage Account
Create Storage Account
- In the Azure portal, search for Storage accounts.
- Click + Create.
Provide the following configuration details:
Setting Value Subscription Select your Azure subscription Resource group Select existing or create new Storage account name Enter a unique name (for example, intunelogs)Region Select the region (for example, East US)Performance Standard (recommended) Redundancy GRS (Geo-redundant storage) or LRS (Locally redundant storage) Click Review + create.
Review the overview and click Create.
Wait for the deployment to complete.
Get Storage Account credentials
- Go to the Storage Account you created.
- In the left navigation, select Access keys under Security + networking.
- Click Show keys.
- Copy and save the following:
- Storage account name: The name you provided during creation.
- Key 1 or Key 2: The shared access key.
Get Blob Service endpoint
- In the same Storage Account, select Endpoints from the left navigation.
- Copy and save the Blob service endpoint URL.
- Example:
https://intunelogs.blob.core.windows.net/
- Example:
Configure Microsoft Intune Diagnostic Settings
- Sign in to the Microsoft Intune admin center.
- Select Reports > Diagnostic settings.
- Click Add diagnostic setting.
- Provide the following configuration details:
- Diagnostic setting name: Enter a descriptive name (for example,
export-to-secops). - In the Logs section, select the following categories:
- OperationalLogs
- DeviceComplianceOrg
- Devices
- In the Destination details section, select the Archive to a storage account checkbox.
- Subscription: Select the subscription containing your storage account.
- Storage account: Select the storage account you created earlier.
- Diagnostic setting name: Enter a descriptive name (for example,
Click Save.
Configure a feed in Google SecOps
- Go to Settings > Data Management > Feeds. If you are on a SIEM-only platform, go to Settings > Feeds.
- Click Add New Feed.
- On the next page, click Configure a single feed.
- In the Feed name field, enter a name for the feed (for example,
Microsoft Intune Blob Storage). - Select Microsoft Azure Blob Storage V2 as the Source type.
- Select Microsoft Intune as the Log type.
- Click Next.
Specify values for the following input parameters:
Azure URI: Enter the Blob Service endpoint URL with the container path. Create separate feeds for each log category:
For Operational Logs:
https://<storage-account>.blob.core.windows.net/insights-logs-operationallogs/For Device Compliance Organizational Logs:
https://<storage-account>.blob.core.windows.net/insights-logs-devicecomplianceorg/For Devices:
https://<storage-account>.blob.core.windows.net/insights-logs-devices/
Replace
<storage-account>with your Azure storage account name.- Source deletion option: Select the deletion option according to your preference:
- Never: Never deletes any files after transfers
- Delete transferred files: Deletes files after successful transfer
- Delete transferred files and empty directories: Deletes files and empty directories after successful transfer
- Maximum File Age: Include files modified in the last number of days. Default is 180 days.
- Shared key: Enter the shared access key value from the Storage Account.
- Asset namespace: The asset namespace.
- Ingestion labels: The label to be applied to the events from this feed.
Click Next.
Review your new feed configuration in the Finalize screen, and then click Submit.
Repeat steps 1-10 to create additional feeds for each Intune log category container.
Configure Azure Storage firewall (if enabled)
If your Azure Storage Account uses a firewall, you must add Google SecOps IP ranges.
- In the Azure portal, go to your Storage Account.
- Select Networking under Security + networking.
- Under Firewalls and virtual networks, select Enabled from selected virtual networks and IP addresses.
- In the Firewall section, under Address range, click + Add IP range.
- Add each Google SecOps IP range in CIDR notation.
- See IP Allowlisting documentation
- Or retrieve them programmatically using the Feed Management API
Click Save.
UDM mapping table
| Log Field | UDM Mapping | Logic |
|---|---|---|
AADDeviceId_label |
additional.fields |
Merged |
AADTenantId_label |
additional.fields |
Merged |
ComplianceState_label |
additional.fields |
Merged |
DeviceHealthThreatLevel_loc_label |
additional.fields |
Merged |
EnrollmentType_label |
additional.fields |
Merged |
FailureCategory_label |
additional.fields |
Merged |
FailureReason_label |
additional.fields |
Merged |
InGracePeriodUntil_label |
additional.fields |
Merged |
IntuneAccountId_label |
additional.fields |
Merged |
IntuneDeviceId_label |
additional.fields |
Merged |
IntuneUserId_label |
additional.fields |
Merged |
LastContact_label |
additional.fields |
Merged |
ManagementAgents_label |
additional.fields |
Merged |
ManagementAgents_loc_label |
additional.fields |
Merged |
MessageId_label |
additional.fields |
Merged |
Os_label |
additional.fields |
Merged |
RetireAfterDatetime_label |
additional.fields |
Merged |
ScaleUnit_label |
additional.fields |
Merged |
activityOperationType_label |
additional.fields |
Merged |
activityResult_label |
additional.fields |
Merged |
category_label |
additional.fields |
Merged |
componentName_label |
additional.fields |
Merged |
correlationId_label |
additional.fields |
Merged |
current_perm |
additional.fields |
Merged |
displayName_label |
additional.fields |
Merged |
id_label |
additional.fields |
Merged |
old_label |
additional.fields |
Merged |
resultType_label |
additional.fields |
Merged |
start_time_utc |
additional.fields |
Merged |
temp_label |
additional.fields |
Merged |
tenantId_label |
additional.fields |
Merged |
properties.Description |
metadata.description |
Directly mapped |
time |
metadata.event_timestamp |
Parsed as ISO8601 |
when |
metadata.event_timestamp |
Parsed as yyyy-MM-dd HH:mm:ss |
event_type |
metadata.event_type |
Renamed/mapped |
activityType |
metadata.product_event_type |
Directly mapped |
operationName |
metadata.product_event_type |
Directly mapped |
properties.BatchId |
metadata.product_log_id |
Directly mapped |
properties.SessionId |
network.session_id |
Directly mapped |
actor.applicationDisplayName |
principal.application |
Directly mapped |
properties.Actor.Application |
principal.application |
Directly mapped |
properties.DeviceId |
principal.asset.asset_id |
Directly mapped |
_hardware |
principal.asset.hardware |
Merged |
properties.DeviceName |
principal.asset.hostname |
Directly mapped |
properties.DeviceId |
principal.asset_id |
Directly mapped |
properties.DeviceName |
principal.hostname |
Directly mapped |
properties.OS |
principal.platform |
Directly mapped |
properties.OSVersion |
principal.platform_version |
Directly mapped |
properties.OsVersion |
principal.platform_version |
Directly mapped |
actor.applicationId |
principal.resource.id |
Directly mapped |
actor_type_label |
principal.user.attribute.labels |
Merged |
auditActorType_label |
principal.user.attribute.labels |
Merged |
activityOperationType |
principal.user.attribute.roles |
Mapped: Create → role |
activityType |
principal.user.attribute.roles |
Mapped values (5 total, e.g. `Create Windows Autopilot Deployment Profile. WindowsAutopilotD... |
role |
principal.user.attribute.roles |
Merged |
properties.UserEmail |
principal.user.email_addresses |
Merged |
actor.userId |
principal.user.product_object_id |
Directly mapped |
properties.UserName |
principal.user.user_display_name |
Directly mapped |
actor.userPrincipalName |
principal.user.userid |
Directly mapped |
properties.Actor.UPN |
principal.user.userid |
Directly mapped |
properties.AlertType |
security_result.description |
Directly mapped |
detection_AlertDisplayName |
security_result.detection_fields |
Merged |
detection_DeviceDnsDomain |
security_result.detection_fields |
Merged |
detection_DeviceHostName |
security_result.detection_fields |
Merged |
detection_DeviceNetBiosName |
security_result.detection_fields |
Merged |
detection_DeviceOperatingSystem |
security_result.detection_fields |
Merged |
detection_OSDescription |
security_result.detection_fields |
Merged |
detection_OS_loc |
security_result.detection_fields |
Merged |
detection_OperationalLogCategory |
security_result.detection_fields |
Merged |
detection_ScenarioName |
security_result.detection_fields |
Merged |
detection_UPNSuffix |
security_result.detection_fields |
Merged |
detection_UserDisplayName |
security_result.detection_fields |
Merged |
detection_application_id |
security_result.detection_fields |
Merged |
detection_object_identity |
security_result.detection_fields |
Merged |
operationName |
security_result.detection_fields |
Mapped: Reprovision CloudPCModel → detection_object_identity, Reprovision CloudPCModel... |
application |
target.application |
Renamed/mapped |
deployment_status |
target.asset.deployment_status |
Renamed/mapped |
activityType |
target.asset.software |
Mapped: Patch DeviceConfiguration → software2, Patch DeviceConfiguration → software3... |
software |
target.asset.software |
Merged |
software1 |
target.asset.software |
Merged |
software2 |
target.asset.software |
Merged |
software3 |
target.asset.software |
Merged |
software4 |
target.asset.software |
Merged |
auditResourceType_label |
target.resource.attribute.labels |
Merged |
display_name_label |
target.resource.attribute.labels |
Merged |
resources.0.resourceId |
target.resource.id |
Directly mapped |
resources.0.type |
target.resource.name |
Directly mapped |
resource_type |
target.resource.resource_type |
Renamed/mapped |
operationName |
target.user.email_addresses |
Mapped: Reprovision CloudPCModel → upn_identity |
upn_identity |
target.user.email_addresses |
Mapped: ^.+@.+$ → upn_identity |
user_identity |
target.user.email_addresses |
Mapped: ^.+@.+$ → user_identity |
user_id |
target.user.userid |
Directly mapped |
user_identity |
target.user.userid |
Directly mapped |
| N/A | metadata.product_name |
Constant: AZURE MDM INTUNE |
| N/A | metadata.vendor_name |
Constant: Microsoft |
| N/A | principal.platform |
Constant: MAC |
| N/A | target.cloud.environment |
Constant: MICROSOFT_AZURE |
resources.auditResourceType |
event.idm.read_only_udm.target.resource.attribute.labels |
Mapped from changelog |
resultType", "properties.AADDeviceId", "properties.IntuneDeviceId", "properties.IntuneUserId", "properties.MessageId", "properties.ScaleUnit", and "properties.Os |
additional.fields |
Mapped from changelog |
properties.EnrollmentType" and "properties.FailureReason |
additional.fields |
Mapped from changelog |
properties.OsVersion", "principal.platform_version", and "properties.StartTimeUtc |
additional.fields |
Mapped from changelog |
properties.OperationalLogCategory", "properties.ScenarioName", "properties.UserDisplayName", "properties.UPNSuffix", "properties.DeviceOperatingSystem", "AlertDisplayNameproperties.AlertDisplayName, "properties.DeviceDnsDomain", "properties.DeviceNetBiosName", and "properties.DeviceHostName |
security_result.detection_fields |
Mapped from changelog |
identity" and "user_id |
target.user.userid |
Mapped from changelog |
properties.SerialNumber |
_hardware.serial_number |
Mapped from changelog |
tenantId", "properties.IntuneAccountId", "properties.AADTenantId", "properties.LastContact", "properties.DeviceHealthThreatLevel_loc", "properties.ComplianceState", "properties.InGracePeriodUntil", "properties.RetireAfterDatetime", "properties.ManagementAgents", and "properties.ManagementAgents_loc |
additional.fields |
Mapped from changelog |
properties.OS_loc" and "properties.OSDescription |
security_result.detection_fields |
Mapped from changelog |
Change Log
View the Change Log for this parser
Need more help? Get answers from Community members and Google SecOps professionals.