如何使用Powershell将参数传递给ADF管道 [英] How to pass arguments to ADF pipeline using powershell
本文介绍了如何使用Powershell将参数传递给ADF管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个在管道级别具有两个参数的管道. 我想使用Powershell将值发送到这些参数并触发管道. 知道如何使用Powershell做到这一点.
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.
推荐答案
我将留下一个脚本,然后可以根据需要进行修改:
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
希望这对您有帮助!
这篇关于如何使用Powershell将参数传递给ADF管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文