az login error argument --password/-p: expected one argument after upgrading to azure cli to 2.50.0-1~focal #26815
Labels
Account
az login/account
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
When running the command from CI in the previous version
2.49.0-1~focal
it did work:However, since my CI installs the Azure CLI for every new execution (it always gets the latest version), now I'm using the version
2.50.0-1~focal
and I'm getting the error:Is that an error I'm getting? Or have the API changed?
Could anyone help me with it? I really appreciate!
Related command
az login \ --service-principal \ --tenant $AZURE_SP_TENANT \ -u $AZURE_SP \ -p $AZURE_SP_PASSWORD
Errors
argument --password/-p: expected one argument
Issue script & Debug output
Since it's running from a CI perspective, I cannot run the command using different flags
Expected behavior
I would expect a JSON with all the subscriptions I'm logged in:
Environment Summary
Since it's running from a CI perspective, I cannot run the command using different flags
Additional context
No response
The text was updated successfully, but these errors were encountered: