How to declare an escape character using ARM templates

In our template especially the database names are like xxx\xxx-yyy.

How am I supposed to declare those variables for octopus ?

Hi,

Thanks for reaching out. I believe that simply creating a variable with the value xxx\xxx-yyy and then using it in your template/parameters file like #{variableName] should be enough.

If that didn’t work, could you share us more info like:

  • What have you tried already.
  • Your ARM template/Parameters file so we can see where/how you are using the variable.
  • A full deployment log following the below instructions:
1) Add these 2 variables to your project http://docs.octopusdeploy.com/display/OD/Debug+problems+with+Octopus+variables

2) Create a new release (so the new variables take effect) and deploy it. If possible skip as many steps as you can and only leave step we are troubleshooting in order to avoid the noise in the log.

3) Send us the raw log of that deployment http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

Best regards,
Dalmiro