我正在尝试在Data Factory管道中创建动态数量的“执行存储过程”活动。
我尝试按照如下所示在活动对象内使用'copy'属性,但似乎不起作用。 “复制”属性仅直接应用于“资源”中的对象吗?对此要求进行最佳设计的方法是什么?
"resources": [
{
"name": "[concat(parameters('factoryName'), '/mainpipeline')]",
"type": "Microsoft.DataFactory/factories/pipelines",
"apiVersion": "2018-06-01",
"properties": {
"activities": [
{
"name": "test1",
"type": "SqlServerStoredProcedure",
"condition": "[greaterOrEquals(length(variables('storedProcs')), 1)]",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"storedProcedureName": "dbo.sp1"
},
"linkedServiceName": {
"referenceName": "TargetSQLDB",
"type": "LinkedServiceReference"
},
"copy": {
"name": "spCount",
"count": "3"
}
}
],
"annotations": []
},
"dependsOn": [
"[concat(variables('factoryId'), '/linkedServices/targetdb')]"
]
}
]