Reputation: 351
Is there any ways to paste Json code to pipeline code in azure data factory version 2? I am able to copy from pipeline code but no ways to paste there.
Upvotes: 1
Views: 142
Reputation: 3209
I created another answer because I cant format the code in a comment.
If you can get the repository to a folder, you can iterate over a folder and add everything inside with the following code:
$files = Get-ChildItem 'C:\PathToFiles'
$files | ForEach-Object($_){
Set-AzureRmDataFactoryV2Pipeline -DataFactoryName "your df name" -ResourceGroupName "your RG name" -Name "pipelineName" -DefinitionFile $_.Name
}
Hope this helped!
Upvotes: 1
Reputation: 3209
There is currently no way to do that, but you can paste the pipeline json and save it into a file, and then upload it with powershell as I explained here: Upload ADF json files to my Data Factory
Hope this helped!
Upvotes: 0