How to pass arguments to ADF pipeline using powershell

落花浮王杯 提交于 2020-01-11 07:18:08

问题


I have created a pipeline which has two parameters at pipeline level. I want to send the values to these parameters using powershell and trigger the pipeline. Any idea how to do it using Powershell.


回答1:


I'll leave a script that you can then modify to your needs:

Login-AzureRmAccount
Select-AzureRmSubscription -Subscription "yourSubId"

$dfname = "youDataFActoryName"
$rgName = "yourResourceGroupName"
$pipe = "pipeName"
$parameters = @{
    "param1" = "asdasd"
    "param2" = "123456"
}

Invoke-AzureRmDataFactoryV2Pipeline -DataFactoryName $dfname -ResourceGroupName $rgName -PipelineName $pipe -Parameter $parameters

Hope this helped!



来源:https://stackoverflow.com/questions/53756570/how-to-pass-arguments-to-adf-pipeline-using-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!