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!