Get-d365lcsapitoken and passwords with special characters like $ #542
Unanswered
gammelgaard52
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Usually in these cases I put my password in single quotes, example: '56Fg9u8$%"0ca' it has worked for me |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Does anybody have some input on how to handle passwords with special characters like $ in a DevOps release pipeline?
When I use a DevOps variable, marked as secret, with password: 123$abc - the API returns errors because of faulty password.
I can make it work from my local Visual Studio code, by using escape characters or using single quotes around hard-coded password. But when I use the DevOps variable like $(LcsPassword), it won't work. I've also tried to implement logic in the DevOps pipeline, like this:
$pw = $pw -replace ([Regex]::Escape("$")),"`$"
and
$pw = $pw -replace "$","`$"
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions