Azure / Azure/azure-cli

Login Authentication Failure on 2.63.0: Error code: -2147221164

Open
#29,666 10 comments 2 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team Broker question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

When running `az login -u $user -p $pass --tenant $tenant --allow-no-subscriptions` we hit this error:

WARNING: Authentication with username and *** in the command line is strongly discouraged. Use one of the recommended authentication methods based on your requirements. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314
ERROR: (pii). Status: Response_Status.Status_Unexpected, Error code: -2147221164, Tag: 557973639
Please explicitly log in with:

This is happening on CLI version 2.63.0 and not on 2.62.0

### Related command

az login

### Errors

WARNING: Authentication with username and *** in the command line is strongly discouraged. Use one of the recommended authentication methods based on your requirements. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314
ERROR: (pii). Status: Response_Status.Status_Unexpected, Error code: -2147221164, Tag: 557973639
Please explicitly log in with:

### Issue script & Debug output

N/A

### Expected behavior

Should be able to login as normal

### Environment Summary

{
"azure-cli": "2.63.0",
"azure-cli-core": "2.63.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}

### Additional context

_No response_

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.