When I try to Set up a work or school account on a Win10 device, using my Azure AD creds, I get the error, "Something went wrong. We weren't able to register your device and add your account to Windows. Your access to org resources may be limited.
I find four entries in the AAD Event Log. All are Event ID 1098. I also find a failure logged in the Azure AD Sign-Ins Log (last log entry at the bottom).
Also
When I try to use Azure OOBE I get the error: "Looks like we can't connect to the URL for your organization's MDM terms of use. Try again, or contact your administrator with the problem information from this page"
That error is repeated if I try to join the Azure AD from Settings > Accounts > Access work or school > Connect > Join this device to Azure Active Directory.
In my environment, I'm using the Airwatch MDM app. I have it properly configured with the enrollment and terms of use URLs. The scope is set to all. I have tried setting the scope to none, and then creating on On-Prem MDM app and setting
the scope to ALL for that one. NOTE: The errors below do NOT appear in the event logs when I try this. I get no errors beyond the message I've mentioned above.
Going off the information from the Azure AD Sign-Ins log, I connected to my tenant with powershell and tried to search for the app ID (29d9ed98-a469-4536-ade2-f981bc1d605e) for Microsoft Authentication Broker. I couldn't find it listed at all.
Any thoughts were I should go from here?
Log Name: Microsoft-Windows-AAD/Operational
Source: Microsoft-Windows-AAD
Date: 12/13/2018 9:03:51 AM
Event ID: 1098
Task Category: AadTokenBrokerPlugin Operation
Level: Error
Keywords: Operational,Error
User: DESKTOP-OIKD7A1\rickboyett
Computer: DESKTOP-OIKD7A1
Description:
Error: 0xCAA2000B The resource is invalid due to configuration state or not existing.
Code: invalid_resource
Description: AADSTS50001: The application named https://enrollmentUrl/ was not found in the tenant named a4912529-4a73-4fc3-94b9-5f54a0fb2cda. This can happen if the application has not been installed by the administrator of the tenant or consented to
by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: b2563cb9-b23e-43db-8633-353474915700
Correlation ID: 056db927-f8af-4144-8ce0-06b32f0da014
Timestamp: 2018-12-13 16:03:54Z
Logged at addaccounttokenrequest.cpp, line: 248, method: AddAccountTokenRequest::ProcessAuthCodeResponse.
Request: authority: https://login.microsoftonline.com/common, client: 29d9ed98-a469-4536-ade2-f981bc1d605e, redirect URI: ms-appx-web://Microsoft.AAD.BrokerPlugin, resource: 01cb2876-7ebd-4aa4-9cc9-d28bd4d359a9, correlation ID (request): 056db927-f8af-4144-8ce0-06b32f0da014
Log Name: Microsoft-Windows-AAD/Operational
Source: Microsoft-Windows-AAD
Date: 12/13/2018 9:03:51 AM
Event ID: 1098
Task Category: AadTokenBrokerPlugin Operation
Level: Error
Keywords: Operational,Error
User: DESKTOP-OIKD7A1\rickboyett
Computer: DESKTOP-OIKD7A1
Description:
Error: 0xCAA9003A Request for authorization code for MDM is failed.
Logged at addaccounttokenrequest.cpp, line: 233, method: AddAccountTokenRequest::ProcessAuthCodeResponse.
Request: authority: https://login.microsoftonline.com/common, client: 29d9ed98-a469-4536-ade2-f981bc1d605e, redirect URI: ms-appx-web://Microsoft.AAD.BrokerPlugin, resource: 01cb2876-7ebd-4aa4-9cc9-d28bd4d359a9, correlation ID (request): 056db927-f8af-4144-8ce0-06b32f0da014
Log Name: Microsoft-Windows-AAD/Operational
Source: Microsoft-Windows-AAD
Date: 12/13/2018 9:03:51 AM
Event ID: 1098
Task Category: AadTokenBrokerPlugin Operation
Level: Error
Keywords: Operational,Error
User: DESKTOP-OIKD7A1\rickboyett
Computer: DESKTOP-OIKD7A1
Description:
Error: 0xCAA2000B The resource is invalid due to configuration state or not existing.
Code: invalid_resource
Description: AADSTS50001: The application named https://enrollmentUrl/ was not found in the tenant named <Tenant ID GUID Removed>. This can happen if the application has not been installed by the administrator of the tenant or consented
to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: b2563cb9-b23e-43db-8633-353474915700
Correlation ID: 056db927-f8af-4144-8ce0-06b32f0da014
Timestamp: 2018-12-13 16:03:54Z
Logged at addaccounttokenrequest.cpp, line: 248, method: AddAccountTokenRequest::ProcessAuthCodeResponse.
Request: authority: https://login.microsoftonline.com/common, client: 29d9ed98-a469-4536-ade2-f981bc1d605e, redirect URI: ms-appx-web://Microsoft.AAD.BrokerPlugin, resource: 01cb2876-7ebd-4aa4-9cc9-d28bd4d359a9, correlation ID (request): 056db927-f8af-4144-8ce0-06b32f0da014
Log Name: Microsoft-Windows-AAD/Operational
Source: Microsoft-Windows-AAD
Date: 12/13/2018 9:03:51 AM
Event ID: 1098
Task Category: AadTokenBrokerPlugin Operation
Level: Error
Keywords: Operational,Error
User: DESKTOP-OIKD7A1\rickboyett
Computer: DESKTOP-OIKD7A1
Description:
Error: 0xCAA2000B The resource is invalid due to configuration state or not existing.
Code: invalid_resource
Description: AADSTS50001: The application named https://enrollmentUrl/ was not found in the tenant named <Tenant ID GUID Removed>. This can happen if the application has not been installed by the administrator of the tenant or consented
to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: b2563cb9-b23e-43db-8633-353474915700
Correlation ID: 056db927-f8af-4144-8ce0-06b32f0da014
Timestamp: 2018-12-13 16:03:54Z
Logged at addaccounttokenrequest.cpp, line: 248, method: AddAccountTokenRequest::ProcessAuthCodeResponse.
Request: authority: https://login.microsoftonline.com/common, client: 29d9ed98-a469-4536-ade2-f981bc1d605e, redirect URI: ms-appx-web://Microsoft.AAD.BrokerPlugin, resource: 01cb2876-7ebd-4aa4-9cc9-d28bd4d359a9, correlation ID (request): 056db927-f8af-4144-8ce0-06b32f0da014
Log Name: Microsoft-Windows-AAD/Operational
Source: Microsoft-Windows-AAD
Date: 12/13/2018 9:03:51 AM
Event ID: 1098
Task Category: AadTokenBrokerPlugin Operation
Level: Error
Keywords: Operational,Error
User: DESKTOP-OIKD7A1\rickboyett
Computer: DESKTOP-OIKD7A1
Description:
Error: 0xCAA9003A Request for authorization code for MDM is failed.
Logged at addaccounttokenrequest.cpp, line: 233, method: AddAccountTokenRequest::ProcessAuthCodeResponse.
Request: authority: https://login.microsoftonline.com/common, client: 29d9ed98-a469-4536-ade2-f981bc1d605e, redirect URI: ms-appx-web://Microsoft.AAD.BrokerPlugin, resource: 01cb2876-7ebd-4aa4-9cc9-d28bd4d359a9, correlation ID (request): 056db927-f8af-4144-8ce0-06b32f0da014
From the Azure AD Sign-Ins log
Request ID: b2563cb9-b23e-43db-8633-353474915700
Correlation ID: 056db927-f8af-4144-8ce0-06b32f0da014
User Name: rboyett@<removed>
User ID: 09962dbc-ed15-4668-a1fc-f65dc8f3337f
Application: Microsoft Authentication Broker
Application ID: 29d9ed98-a469-4536-ade2-f981bc1d605e
Date: 12/13/2018, 9:03:54 AM
Sign-in error code: 50001
Failure Reason: The service principal name was not found in this tenant. This can happen if the application has not been installed by the administrator of the tenant. Or Resource principal was not found in the directory or is invalid.
Client App: Mobile Apps and Desktop clients