Recently I was working with a customer to troubleshoot Azure AD authentication errors logging into a custom application. I knew that there is a support page for Azure AD Authentication and authorization error codes, but as the article points out “[e]rror codes and messages are subject to change”. More interestingly they also linked to a page where you can get current information on error codes: https://login.microsoftonline.com/error.
Sample response:
Programmatic Response
If you would like to programmatically retrieve the output you can pass in the code…:
- as a query string parameter
- as a form-data submission on the body of the request.
See the sample screenshot below. Only one option is necessary.
As you may notice, the response after submission is an HTML response and not JSON, XML, or another text format. If you would like to see alternate output formats please upvote this Azure feedback suggestion to add JSON support.
Error details website – JSON support
https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/40310266-error-details-website-json-support
Conclusion
In this post I showed a quick tip on how to retrieve current information on Azure AD authentication / authorization error codes. Additionally you can retrieve it programmatically if needed as well as a feedback suggestion to upvote for additional output formats. Hopefully this can help save you time troubleshooting scenarios should you need it.
-Frog Out