The Application Error you're seeing is likely due to a misconfiguration in the App Settings related to your Azure Active Directory (AAD) credentials or deployment issues. Here's the exact step you need to check:
Check Azure AD Authentication Configuration
- Go to the Azure Portal and navigate to your App Service.
- Under Settings, select Configuration.
- Ensure that the following environment variables are set correctly:
- Client ID (from Azure AD)
- Tenant ID (from Azure AD)
- Client Secret (from Azure AD)
- Tenant ID (from Azure AD)
- Client ID (from Azure AD)
Make sure these values match the credentials you registered in Azure AD.
- Double-check that the Redirect URI in your Azure AD app registration matches the domain of your deployed app.
Check Logs for Errors
- In the Azure Portal, go to Monitoring > Log Stream for your App Service.
- Look for specific error messages related to authentication or missing configurations.
If you find any errors in the logs related to Azure AD or app settings, fix them, and then restart your app.
Azure Active Directory (AAD) authentication and app settings in Azure:
This guide will walk you through setting up Azure AD authentication, including how to set the Client ID, Tenant ID, and Client Secret in your App Service.