Azure / Azure/azure-cli

User Experience after enabling MFA in Active Directory

Open
#14,395 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad customer-reported Error Handling feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.