During the step "Replacing all properties environment-related" is it possible to only replace SOME Global Paramaters? #303
-
I have Terraform that creates our ADF in Dev/Qa/Uat/Prod. It also creates some specific global parameters for each of those environments. Although, my ADF repo also needs to create Global Parameters with specific values for each environment, BUT I want it to leave other values alone. (The ones I created via Terraform.) Is this possible? Perhaps, I can just take them out of the "factory" json file?? Or is there some way to specify in the parameter file to keep the existing value. Like: factory, DevFactory, "$.properties.globalParameters.'Env-Code'.value", $ExistingValue |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, it's not possible. |
Beta Was this translation helpful? Give feedback.
-
@shaynej-jackson , I have done some workaround to deploy selected Global parameters, this may not be the right way to do it. but you can achieve your purpose. |
Beta Was this translation helpful? Give feedback.
No, it's not possible.
Global parameters can be deploy ALL or nothing (excluded). This is due to how API is built.
Also, there is no option to keep the existing values - the deployment process doesn't merge objects.
I would suggest to keep complete list of global parameters in the repo. It shouldn't be part of Infra deployment.