-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az login fails with Azure AD service principal and certain client secrets. #12105
Comments
Hi @jiasli , could you please help with this ? |
add to S166. |
This was referenced May 15, 2020
mcasperson
added a commit
to OctopusDeploy/Calamari
that referenced
this issue
May 25, 2020
This was referenced May 25, 2020
mcasperson
added a commit
to OctopusDeploy/Calamari
that referenced
this issue
May 25, 2020
* Use full password argument because of Azure/azure-cli#12105 * added extra dash
This was referenced May 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When attempting to login using az cli using Azure AD service princiapal, certain client secrets are causing errors.
Here's an example of a client secret that failed and the error message.
az login --service-principal --username <service_principal_application_id> --password "-6fkdUrc:x-]M63JPPosVWJS47cWiiUX" --tenant <azure_ad_tenant_id>
ERROR: az login: error: argument --password/-p: expected one argument
usage: az login [-h] [--verbose] [--debug]
[--output {json,jsonc,table,tsv,yaml,none}] [--query JMESPATH]
[--username USERNAME] [--password PASSWORD]
[--service-principal] [--tenant TENANT]
[--allow-no-subscriptions] [-i] [--use-device-code]
[--use-cert-sn-issuer]
Seems like an issue with the format of the password. I tried the password, enclosing in single-quotes, double-quotes and no-quotes and resulted in the same error message.
The text was updated successfully, but these errors were encountered: