Hi Shree_Divya_M_V ,
i was able to do it without using az-cli but instead of using an existing task called File Transformation in the release pipeline. Link to the task: https://learn.microsoft.com/en-gb/azure/devops/pipelines/tasks/reference/file-transform-v2?view=azure-pipelines
the task can override both XML and JSON file and that too in a zip package.
we are maintaining variable groups for different environment where we store our parameter values for that environment and link the variable group to the associated stage in the release pipeline, so DEV variable group link with DEV Stage. how it works is basically if you have parameter in your file like below:
"BASE_URL": {
"type": "String",
"value": "\\server1\orders\dev\purchaseorder"
}
you can define an entry in the variable group like BASE_URL.value : \\server1\orders\qa\purchaseorder for your qa environment for example and task will override the dev environment value with QA environment from the variable group, this task need to used before the function deployment task.
enielezi you can have a look at it as well, you would then not need to maintain different parameter file your for different environment.