Azure File Transformation Task doesn't work for variable names with hyphen | Azure File Transformation Task | Azure Devops YAML Pipeline

{tocify} $title={Table of Contents}


Read this article on how to implement File Transformation Task implementation:


In some scenarios YAML File transformation task fails to update the variable values inside the json/xml file even though we have variables with same name matches.

One of those scenarios is that when we have hyphen in the variable name matching text then it doesn't work.

This doesn't work.

{
"element-ToBe-Replaced":""
}

Try to change those variables without any special characters then it will work fine.

This will work if you have

elementToBeReplaced

variable in pipeline variables and have following sample Json in configuration Json.

{
"elementToBeReplaced":""
}

Post a Comment

Previous Post Next Post

postad

post ad 2