3
votes

I have an ARM Template to deploy a WebApp in Azure. I also have a AppSettings configuration in WebApp (which is used for sending emails) "EmailPassword" to be deployed along with the ARM Template.

The actual value for variable "EmailPassword" is"Test$am123" in ARM Template.

But when I execute the ARM Template during deployment, the value is stored as "Test123" in the AppSettings of the created WebApp.

I hope this happens because of the $ (dollar) sign in the variable.

How to escape the Dollar sign in the ARM Template variables

Update: With the help of 4c74356b41, I found the Issue is not with ARM Template and its Parameters.Json. Instead, I am using the VSO Deployment and trying to pass the values to Parameters from the Environment Variables. I overriding the Parameters.json using the "Override Template Parameters" input in VSO.

The Issue is with VSO and it removes the "$am" characters while passing the values to the ARM Deployment.

1
So "Test@am123" turns into "Test123"?...what $ dollar sign? - Hackerman
Sorry. Edited the Original Post. The value is "Test$am123" and not "Test@am123" - samjayander

1 Answers

1
votes

I think that escaping is done using \ character.

update: for me $ doesnt need escaping.