Skip to content

Add-AzureAccount doesn't like credentials with & #125

@bmoore-msft

Description

@bmoore-msft

If I pass a creds object that has a password with an ampersand, the password seems to get munged and auth fails... try:

$securepass = ConvertTo-SecureString -string 'foobar&d' -Force -AsPlainText
$creds = New-Object System.Management.Automation.PSCredential('[email protected]', $securepass)
Add-AzureAccount -credential $creds
(note using Add-AzureAccount interactively with the same set of creds works fine)


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions