The below error occurs for the application registered with Azure AD (Delegated Permissions), which requires either user or an administrator’s consent for the permissions it needs. “Azure.Identity.AuthenticationFailedException: ‘UsernamePasswordCredential authentication failed: