Open smithago opened 3 years ago
@jiasli for awareness
@smithago When you provide -u $username
this is the Service Principal right? See: az login reference
AADSTS50126: Error validating credentials due to invalid username or password.
is returned by AAD service indicating the credential is not correct.
--service-principal
is provided.
Describe the bug az login -t $tenant -u $username -p $password_raw Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: a287413d-c526-4d4a-a6eb-ac9108b03000\r\nCorrelation ID: 7f85270a-1b07-401e-b684-a19533c1b5ea\r\nTimestamp: 2021-06-25 13:16:19Z","error_codes":[50126],"timestamp":"2021-06-25 13:16:19Z","trace_id":"a287413d-c526-4d4a-a6eb-ac9108b03000","correlation_id":"7f85270a-1b07-401e-b684-a19533c1b5ea","error_uri":"https://login.microsoftonline.com/error?code=50126"}
To Reproduce The username and password is correct. I am not sure why az login complains that it is wrong.
Expected behavior Able to login
Environment summary azure-cli 2.10.0