Query Details
id: 7b8c9d10-aaaa-4001-8001-000000000009
name: HUNT - Intune operational errors by category
description: |
Aggregates IntuneOperationalLogs failures (policy application errors, enrollment
errors, app install errors). Spikes often precede compliance bypass or indicate
misconfiguration that lowers the security posture.
requiredDataConnectors:
- connectorId: AzureMonitor(IntuneLogs)
dataTypes:
- IntuneOperationalLogs
tactics:
- DefenseEvasion
relevantTechniques:
- T1562
query: |
IntuneOperationalLogs
| where TimeGenerated > ago(7d)
| where tostring(Result) =~ "Failure"
| extend Props = parse_json(tostring(Properties))
| extend Reason = tostring(coalesce(tostring(Props.ResultReason),
tostring(Props.ResultDescription),
tostring(Props.ErrorDescription)))
| summarize Count = count(),
Examples = make_list(Reason, 5)
by Category = tostring(Category), OperationName
| order by Count desc
version: 1.0.0
This query is designed to analyze and summarize operational errors from Intune, a Microsoft service for mobile device management. Here's a simple breakdown of what it does:
Data Source: It uses data from the "IntuneOperationalLogs" provided by the Azure Monitor connector.
Time Frame: The query looks at logs from the past 7 days.
Filter: It specifically filters for logs where the result is marked as "Failure."
Error Details: It extracts detailed error reasons from the log properties, such as the result reason or error description.
Aggregation: The query counts the number of failures and lists up to five examples of error reasons for each category and operation name.
Sorting: The results are sorted by the number of failures in descending order, highlighting the most frequent issues.
Purpose: The query helps identify spikes in operational errors, which might indicate potential security issues or misconfigurations that could weaken security defenses.
Overall, this query is used for monitoring and identifying patterns in Intune operational errors to preemptively address security and compliance issues.

David Alonso
Released: April 22, 2026
Tables
Keywords
Operators