I am trying to build the CI/CD for Azure Data Factory using Azure DevOps. I am able to setup the Pipeline and Release. However I have a problem:
Dataset
I have 2 environments, DEV and PROD, How can I pass parameter in the CD pipeline to change the File path (e.g. dev and prod) in different deployment stage (dev and prod environment) in Sink and Source
enter image description here
Thank you for your help!
There is another approach to publish ADF, from master (collaboration) branch. You can define (replace) value for every single node (property) in json file (ADF object). It will resolve your problem as you can provide separate CSV config file per each environment (stage).
Example of CSV config file (config-stage-UAT.csv):
type,name,path,value
pipeline,PL_CopyMovies,activities[0].outputs[0].parameters.BlobContainer,UAT
Then just run such cmdlet in PowerShell:
Publish-AdfV2FromJson -RootFolder "$RootFolder" -ResourceGroupName "$ResourceGroupName" -DataFactoryName "$DataFactoryName" -Location "$Location" -Stage "stage-UAT"
Check this out: azure.datafactory.tools (PowerShell module)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With