Error AADSTS50011 when you query the Intune Data Warehouse
Article
This article helps you fix an issue in which you receive error 'The reply url specified in the request does not match the reply urls configured for the application' when you query the Intune Data Warehouse.
Symptom
When you query the Intune Data Warehouse by using PowerShell or a custom application, you receive an error message that contains the following:
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: '<application ID assigned by Azure AD>'.
Cause
This issue occurs if the default redirect URI for the application registration or PowerShell is removed.
Solution
To fix the issue, do the following:
If you use PowerShell, make sure that the default redirect URI is set.
Here is an example:
PowerShell
$redirectUri = "urn:ietf:wg:oauth:2.0:oob"
If you use a custom application, follow these steps:
Learn how to troubleshoot AD DS service failures or degraded performance. Learn how to recover deleted security objects and the AD DS database, and how to troubleshoot hybrid authentication issues.