【问题标题】:How to pass a parameter from Azure Automation Runbook to Azure Datafactory pipeline如何将参数从 Azure 自动化 Runbook 传递到 Azure Datafactory 管道
【发布时间】:2020-10-30 09:21:22
【问题描述】:

我已经编写了下面的代码 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

但是不知道我的datafactory是怎么得到这个值的。

【问题讨论】:

    标签: azure powershell azure-data-factory azure-automation


    【解决方案1】:

    创建了一个与您在自动化运行手册中声明的名称相同的管道参数

    clientName
    

    然后在基本参数区域的笔记本活动中使用此变量

    【讨论】:

      猜你喜欢
      • 2018-06-12
      • 2016-06-22
      • 2023-04-10
      • 1970-01-01
      • 1970-01-01
      • 2021-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多