简体   繁体   English

如何将参数从 Azure 自动化运行手册传递到 Azure Datafactory 管道

[英]How to pass a parameter from Azure Automation Runbook to Azure Datafactory pipeline

I have written below code powershell script to pass the get the value from the logic apps and pass it to Azure data factory.我在下面编写了代码 powershell 脚本来传递从逻辑应用程序获取值并将其传递给 Azure 数据工厂。

#I am sharing a part of the code which is should pass the parameter to the data factory
# get the clientName value from the logic apps.
Param (
Param (
[Parameter (Mandatory = $true)]
[string]
$clientName
)

$parameters = @{
    "clientName" = $clientName
}

#
$Pipeline1 = Invoke-AzureRmDataFactoryV2Pipeline -ResourceGroupName $rg1 -DataFactoryName $adf1 -PipelineName $pn1 -Parameter $parameters

But do not know how does my datafactory would get this value.但不知道我的数据工厂如何获得这个值。

Created a pipeline parameter with the name as same you have used in the declared in automation runbook创建了一个与您在自动化运行手册中声明的名称相同的管道参数

clientName

then use this variable in notebook activities at base parameter area然后在基本参数区域的笔记本活动中使用此变量

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM