Skip to content

Problem in using az login password with special char #25173

Description

Describe the bug

Special chars in password are not handled properly. No matter what format I use it always ends at the ')' parenthesis.

Command Name
``
az login --username --password "+SybA?;E)UWYsn12"
az login --username --password '+SybA?;E)UWYsn12'

Errors:

UWYsn12 was unexpected at this time.
C:\>  "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\\..\python.exe" -IBm azure.cli login --username <username> --password +SybA?;E)UWYsn12

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Create a user account and use close parenthesis char in password
  • Use Az login to login to account

Expected Behavior

Password string is not fully read, it stop till parenthesis

Environment Summary

Windows-10-10.0.19044-SP0
Python 3.10.8
Installer: MSI

azure-cli 2.42.0 *

Extensions:
databricks 0.8.0
datafactory 0.7.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamShell - PowerShellcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions