Hi, i have a problem in the file transform json, for azure webapp, because, the automate added "{\ and " \n
Example:
i want:
“ConnectionStrings”: {
“AppSql”: "Data Source=xxxxxx.yyyyyyy.zzzzzz
and the transform give:
“ConnectionStrings”: "{“AppSql”: "Data Source=xxxxxx.yyyyyyy.zzzzzz.
Thanks for getting in touch! I tried your scenario locally and can confirm that we do re-format the JSON file by adding carriage return character.
Here are the steps I did
Deploy a package with json looks like this (no line break)
{“ConnectionStrings”: {“AppSql”: “Data Source=xxxxxx.yyyyyyy.zzzzzz”}}
And I’ve set up the variables as shown in the screenshots below
To help me understand a bit better, could you clarify if the issue you’re hitting is about the reformatting? E.g. Does it cause the deployment to fail? Or you would like to compare them and the reformatting makes it hard to do so?
If that is not the case, would you be able to let me know how you setup the variable and what version of Octopus you are running?
These information would be great to continuing the investigation.
and the process config, we have activated json configuration variables and the target files is the good file.
When we reading le log of deployment the informations are good:
Extracted 214 files
08:29:10
Info
Performing JSON variable replacement on ‘D:\Octopus\Work\20180323072908-17\appsettings.json’