You will have to make your linked services configurable via ARM Template parameters. When you generate the ARM template for your Data Factory,you will need to include a parameters file (arm_template_parameters.json
).
{
"parameters": {
"linkedServiceName_baseUrl": {
"value": "your-production-keyvault-url"
},
// other parameters...
}
}
Then when deploying, supply a different parameters file depending on the environment, using either PowerShell or Azure CLI. For GitHub Actions, you can store these parameter files in your repository and choose the correct one depending on the branch or other conditions.
There is another approach if you are opting for post-deployment scripts then you can run Azure PowerShell or Azure CLI scripts to update the linked services with the necessary properties for each environment.