我很确定这很简单,但我似乎无法在任何地方找到它。我在数据工厂的父管道中创建了一个参数(假设管道名称为 TestParent):
最佳答案
好吧,我终于开始工作了:
我从父管道中完全删除了该参数。在子管道(称为 HubMaster)中,我们创建一个名为 MasterBatchId 的参数:
在父管道中,我创建了一个 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/