← cd ~/events
// events/1022 · Primary Refresh Token
Event ID 1022URL being accessed
Analytic event that records the URL CloudAP is calling. The first 1022 before a 1081 or 1088 shows which endpoint failed.
| Log | Microsoft-Windows-AAD/Analytic |
|---|---|
| Source | Microsoft-Windows-AAD |
| Area | Primary Refresh Token |
What to check
Use it to identify which endpoint (Entra ID, MEX or WS-Trust) returned the error or unexpected response.
Find it with PowerShell
Run on the machine that logs it. Analytic and Debug logs are hidden and turned off by default: in Event Viewer choose View › Show Analytic and Debug Logs, then enable the log.
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-AAD/Analytic'; Id = 1022 } -Oldest -MaxEvents 50 |
Format-List TimeCreated, Id, MessageHunt for it in Sentinel or Log Analytics
This works once a data collection rule sends the Microsoft-Windows-AAD/Analytic log to your workspace, where it lands in the Event table.
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-AAD/Analytic" and EventID == 1022
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated descRelated Primary Refresh Token events
- Event ID 1006: PRT acquisition started
- Event ID 1007: PRT acquisition finished (final error code)
- Event ID 1081: Error from the Microsoft Entra authentication service
- Event ID 1088: Error from the WS-Trust (federation) endpoint
- Event ID 1084: Network error reaching an endpoint
- Event ID 1144: UPN provided for sign-in
- Event ID 1098: Token broker operation failed (0xCAA5001C)