← cd ~/events
// events/1081 · Primary Refresh Token
Event ID 1081Error from the Microsoft Entra authentication service
Contains the server error code and description returned by Entra ID during PRT acquisition, such as AADSTS50155 or AADSTS50126.
| Log | Microsoft-Windows-AAD/Operational |
|---|---|
| Source | Microsoft-Windows-AAD |
| Area | Primary Refresh Token |
What to check
Match the AADSTS code: 50155 means device authentication failed (device deleted or disabled), 50126 means bad credentials or a password not yet synced.
Find it with PowerShell
Run on the machine that logs it.
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-AAD/Operational'; Id = 1081 } -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/Operational log to your workspace, where it lands in the Event table.
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-AAD/Operational" and EventID == 1081
| 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 1088: Error from the WS-Trust (federation) endpoint
- Event ID 1084: Network error reaching an endpoint
- Event ID 1022: URL being accessed
- Event ID 1144: UPN provided for sign-in
- Event ID 1098: Token broker operation failed (0xCAA5001C)