azure - 在 Azure 数据工厂中将值从父管道传递到子管道

标签 azure azure-data-factory

我很确定这很简单,但我似乎无法在任何地方找到它。我在数据工厂的父管道中创建了一个参数(假设管道名称为 TestParent):

enter image description here 该父管道调用子管道。我想在子管道中引用这个参数。从父级获取子级参数值的语法是什么?

最佳答案

好吧,我终于开始工作了:

我从父管道中完全删除了该参数。在子管道(称为 HubMaster)中,我们创建一个名为 MasterBatchId 的参数:

enter image description here

在父管道中,我创建了一个 Execute pipeline名为 EP_HubMaster 的节点调用名为 HubMaster 的子管道。为了在运行时填充子管道参数 MasterBatchId,我们需要编辑父管道的 JSON,如下所示:

{
"name": "TestParent",
"properties": {
    "activities": [
        {
            "name": "EP_HubMaster",
            "type": "ExecutePipeline",
            "typeProperties": {
                "pipeline": {
                    "referenceName": "HubMaster",
                    "type": "PipelineReference"
                },
                "parameters": {
                    "MasterBatchId": {
                        "value": "@pipeline().RunId",
                        "type": "Expression"
                    }
                }
            }
        }
    ],
    "folder": {
        "name": "Master"
    }
},
"type": "Microsoft.DataFactory/factories/pipelines"
}

您可以看到我们将 @pipeline().RunId 从父管道(这是最初的意图)传递到子管道中 MasterBatchId 的输入参数.

关于azure - 在 Azure 数据工厂中将值从父管道传递到子管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55320412/

相关文章:

Azure 数据工厂出站数据传输定价

git - 将 azure 数据工厂设置为 azure devops git 时出现问题

Azure Pipelines 代理代理设置未按预期工作

python - 我可以关闭 Azure DevOps 管道中的并行作业吗?

python - 函数未显示在 Azure Function App 中

Azure Synapse 创建管道 Rest API

c# - 在Azure功能中获取远程IP地址

azure - 使用 MSDeploy 将 Web 应用程序部署到 Azure 应用服务

Azure 数据工厂链接 GitHub 存储库以进行源代码管理?

azure - 通过 ADF 内的查询检索 Salesforce 数据