I am quite new in Azure and i have a task to update a json file's values at deployment time. I have 3 deployment slots in Azure release pipeline Dev, Stage and Prod.
I have following Json file which need to update.
"tables": [{
"name": "CustomerContract",
"columns": [{
"name": "Year",
"dataType": "int64",
"sourceColumn": "Year",
"summarizeBy": "none"
},
{
"name": "<devname>",
"dataType": "int64",
"sourceColumn": "CustomerNumber",
"summarizeBy": "none",
"isHidden": <trueifdev>
}
],
"partitions": [{
"name": "Partition",
"dataView": "full"
}]
},
}
In above json file i need to update following key's values.
- "isHidden"
- "name"
above two key's values are different based on slots (Dev, Stage & Prod).
Please help me out how can i change/update the values of above keys at deployment time based on slots?
Following link didn't worked in my case because my json files belongs to sharepoint data models.
Azure Dev ops replace tokens per environment in release pipeline


json-Filelocated? Is it part of your repository? You could use a custom task to solve that, depends where yourjson-Fileis located. I recommad powershell task for that. - Mar Tin