Unable to add Azure AD authentication method

Cannot add an Azure AD authentication method. Returns error: Failed to fetch Azure AD Authentication Context. Please make sure you have granted the correct API permissions. Permissions are configured per the requirement for Azure AD /Entra ID.