azure-cli
azure-cli copied to clipboard
User Experience after enabling MFA in Active Directory
Is your feature request related to a problem? Please describe.
After enabling MFA (Multi Form Authentication) on an Azure user, the CLI when try to execute a command provides a confusing error message:
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location,
you must use multi-factor authentication to access 'REDACTED'.
Trace ID: 03f51a7b-6a46-4b81-aa09-1419ef75db00
Correlation ID: f1043e2a-0237-4c23-b32a-0bb4e1c90410
Timestamp: 2020-07-16 12:58:52Z
Describe the solution you'd like
A better message would be
Due to a configuration change made by your administrator, or because you moved to a new location, you
should reauthenticate with Azure using 'az login'.
Describe alternatives you've considered n/a
Additional context n/a
add to S174
pls help! Identify who are not using MFA in your Azure Active Directory by azure cli command
👍