After testing, we have found that including the escaped ampersands in the pipeline variable will ultimately be put into the sensitive data section with the escaped ampersands but when reading them, it will be returned correctly with just the ampersand.
AZDevops Sensitive Data Section transforms and ampersands '&'
We have a Service Account password that contains an ampersand in our web.config. We are using pipeline variables and transforming it during our build.
Escaping the ampersand, &
doesn't work, the transform actually put &
in the password vs. the &
.
We check the build artifacts before they are deployed to see the values that the pipeline puts into the file before they are "encrypted".
How can I set the pipeline variable to correctly transform this password where the value is put in correctly? Should we modify anything to be able to handle this in our pipeline variables that get transformed?