azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

User Experience after enabling MFA in Active Directory

Open booyaa opened this issue 5 years ago • 3 comments

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

booyaa avatar Jul 16 '20 13:07 booyaa

add to S174

yonzhan avatar Jul 16 '20 14:07 yonzhan

pls help! Identify who are not using MFA in your Azure Active Directory by azure cli command

Rajuvimal avatar Mar 28 '22 16:03 Rajuvimal

👍

cceneag avatar Jun 18 '25 00:06 cceneag