我正在针对无法正常运行的azure数据工厂中的每个活动

时间:2019-08-29 11:29:47

标签: arm-template azure-data-factory-2

我正在使用的每个活动实际上是从现有的管道复制的,该管道是从UI手动创建的。当我使用手臂模板并且无法弄清楚如何将动态内容传递到我的数组时,以便对每个活动都对其执行操作。

活动”:[                     {                         “ name”:“ ForEach_vup”,                         “ type”:“ ForEach”,                         “取决于”: [],                         “ userProperties”:[],                         “ typeProperties”:{                             “项目”:{                                 “ value”:“ @pipeline()。parameters.cw_items”,                                 “ type”:“表情”                             },                             “活动”:[                                 {                                     “ name”:“ Copy_vup”,                                     “ type”:“复制”,                                     “取决于”: [],                                     “政策”:{                                         “ timeout”:“ 7.00:00:00”,                                         “重试”:0,                                         “ retryIntervalInSeconds”:30,                                         “ secureOutput”:否,                                         “ secureInput”:否                                     },                                     “ userProperties”:[                                         {                                             “ name”:“ Source”,                                             “ value”:“ @ {item()。source.collectionName}”                                         },                                         {                                             “ name”:“目的地”,                                             “ value”:“ dailybackups / @ {item()。destination.fileName}”                                         }                                     ],                                     “ typeProperties”:{                                         “资源”: {                                             “ type”:“ DocumentDbCollectionSource”,                                             “ nestingSeparator”:“。                                         },                                         “接收器”:{                                             “ type”:“ BlobSink”                                         },                                         “ enableStaging”:false                                     },                                     “输入”:[                                         {                                             “ referenceName”:“ src_cosmosdb”,                                             “ type”:“ DatasetReference”,                                             “参数”:{                                                 “ cw_collectionName”:“ @item()。source.collectionName”                                             }                                         }                                     ],                                     “输出”:[                                         {                                             “ referenceName”:“ dest_blob”,                                             “ type”:“ DatasetReference”,                                             “参数”:{                                                 “ cw_fileName”:“ @item()。destination.fileName”                                             }                                         }                                     ]                                 }                             ]                         }                     }                 ],                 “参数”:{                     “ cw_items”:{                         “ type”:“ Array”,                         “默认值”: [                             {                                 “资源”: {                                     “ collectionName”:“ xxx”                                 },                                 “目的地”:{                                     “ fileName”:“ xx.json”                                 }                             },                             {                                 “资源”: {                                     “ collectionName”:“ xxx”                                 },                                 “目的地”:{                                     “ fileName”:“ xxx.json”                                 }                             },                             {                                 “资源”: {                                     “ collectionName”:“ xxxx”                                 },                                 “目的地”:{                                     “ fileName”:“ xxx.json”                                 }                             },                             {                                 “资源”: {                                     “ collectionName”:“ xxx”                                 },                                 “目的地”:{                                     “ fileName”:“ xxx.json”                                 }                             },                             {                                 “资源”: {                                     “ collectionName”:“ xx”                                 },                                 “目的地”:{                                     “ fileName”:“ xx.json”                                 }                             }                         ]                     }                 },                 “注释”:[]             }         }

我只想在这里使用一些动态参数,而不是命名每个集合,以便每个活动从数据库中拾取每个集合并将其映射到具有相应名称的json。

https://github.com/sai-dvenkatesh/datafactory/blob/master/myscript3.json

0 个答案:

没有答案