AZDevops Sensitive Data Section transforms and ampersands '&'

Shipman, Edward (WP) 0 Reputation points
2025-04-23T13:29:33.0866667+00:00

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?

Azure DevOps
{count} votes

1 answer

Sort by: Most helpful
  1. Shipman, Edward (WP) 0 Reputation points
    2025-04-23T16:35:53.88+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.