Adding credential: TrainingCredential01
Adding dataflow: MappingOrderAggregation Adding dataset: LakeFileOrderHeaderParquet Adding dataset: LakeFileOrderDetailLinesParquet Adding dataset: TableOrderSummary Adding linkedService: traininglake01noneKV Adding linkedService: trainingdb01 Adding linkedService: TrainingKeys01 Adding dataflow: WranglingOrderAggregation Adding dataset: GetSetMetadata Adding dataset: AnyDatabaseTable Adding linkedService: AnyDatabaseConnection Adding dataset: LaptopFolders Adding linkedService: LaptopFiles Adding integrationRuntime: PaulsLaptopIR Adding dataset: LaptopFilePersonCSV Adding dataset: LakeFiles Adding linkedService: traininglake01 Adding dataset: LaptopsFiles Adding dataset: LakeFilePersonCSV Adding dataset: LakeFileParquet Adding integrationRuntime: ForDataFlowDemos Adding integrationRuntime: VNetEnabledIR Adding managedVirtualNetwork: default Adding linkedService: traininglak01 Adding linkedService: TrainingKeys01withUMI Adding linkedService: TrainingStore01 Adding linkedService: BatchForTraining01 Adding pipeline: Scale Out Level 2 Adding pipeline: Scale Out Level 1 Adding pipeline: Lazy Replication Adding pipeline: 03 - Upload - From Discovery Adding pipeline: 01 - Upload - Simple Adding pipeline: 04 - Upload - From Metadata Adding pipeline: Order Summary with Mapping Adding pipeline: 02 - Upload - Copy Params Adding pipeline: 1950 Activities Adding pipeline: Custom Activity Adding managedPrivateEndpoint: AzureKeyVault1 Adding factory: TrainingFactoryDev
This commit is contained in:
71
Code/DataFactory/pipeline/01 - Upload - Simple.json
Normal file
71
Code/DataFactory/pipeline/01 - Upload - Simple.json
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "01 - Upload - Simple",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Upload Person",
|
||||
"description": "hfdhgfdhfd",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "DelimitedTextSource",
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
}
|
||||
},
|
||||
"sink": {
|
||||
"type": "DelimitedTextSink",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSWriteSettings"
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextWriteSettings",
|
||||
"quoteAllText": true,
|
||||
"fileExtension": ".txt"
|
||||
}
|
||||
},
|
||||
"enableStaging": false,
|
||||
"translator": {
|
||||
"type": "TabularTranslator",
|
||||
"typeConversion": true,
|
||||
"typeConversionSettings": {
|
||||
"allowDataTruncation": true,
|
||||
"treatBooleanAsNumber": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "LaptopFilePersonCSV",
|
||||
"type": "DatasetReference"
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "LakeFilePersonCSV",
|
||||
"type": "DatasetReference"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Data Uploads"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-09-29T13:50:28Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
78
Code/DataFactory/pipeline/02 - Upload - Copy Params.json
Normal file
78
Code/DataFactory/pipeline/02 - Upload - Copy Params.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"name": "02 - Upload - Copy Params",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Upload Any File",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "DelimitedTextSource",
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
}
|
||||
},
|
||||
"sink": {
|
||||
"type": "DelimitedTextSink",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSWriteSettings"
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextWriteSettings",
|
||||
"quoteAllText": true,
|
||||
"fileExtension": ".txt"
|
||||
}
|
||||
},
|
||||
"enableStaging": false,
|
||||
"translator": {
|
||||
"type": "TabularTranslator",
|
||||
"typeConversion": true,
|
||||
"typeConversionSettings": {
|
||||
"allowDataTruncation": true,
|
||||
"treatBooleanAsNumber": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "LaptopsFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": "ForUpload\\People",
|
||||
"File": "Person.csv"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "LakeFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": "Landing",
|
||||
"File": "Person.csv"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Data Uploads"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-08-27T09:06:46Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
137
Code/DataFactory/pipeline/03 - Upload - From Discovery.json
Normal file
137
Code/DataFactory/pipeline/03 - Upload - From Discovery.json
Normal file
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"name": "03 - Upload - From Discovery",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Get File List",
|
||||
"type": "GetMetadata",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"dataset": {
|
||||
"referenceName": "LaptopFolders",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": "ForUpload\\People"
|
||||
}
|
||||
},
|
||||
"fieldList": [
|
||||
"childItems"
|
||||
],
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Upload Files",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get File List",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@activity('Get File List').output.childItems",
|
||||
"type": "Expression"
|
||||
},
|
||||
"activities": [
|
||||
{
|
||||
"name": "Upload File",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "DelimitedTextSource",
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
}
|
||||
},
|
||||
"sink": {
|
||||
"type": "DelimitedTextSink",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSWriteSettings"
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextWriteSettings",
|
||||
"quoteAllText": true,
|
||||
"fileExtension": ".txt"
|
||||
}
|
||||
},
|
||||
"enableStaging": false,
|
||||
"translator": {
|
||||
"type": "TabularTranslator",
|
||||
"typeConversion": true,
|
||||
"typeConversionSettings": {
|
||||
"allowDataTruncation": true,
|
||||
"treatBooleanAsNumber": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "LaptopsFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": "ForUpload\\People",
|
||||
"File": {
|
||||
"value": "@item().name",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "LakeFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": "Landing",
|
||||
"File": {
|
||||
"value": "@item().name",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Data Uploads"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-08-27T09:06:45Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
266
Code/DataFactory/pipeline/04 - Upload - From Metadata.json
Normal file
266
Code/DataFactory/pipeline/04 - Upload - From Metadata.json
Normal file
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"name": "04 - Upload - From Metadata",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Get File List",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderQuery": "SELECT * FROM [dbo].[FilesToUpload] WHERE [Enabled] = 1;",
|
||||
"queryTimeout": "02:00:00",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "GetSetMetadata",
|
||||
"type": "DatasetReference"
|
||||
},
|
||||
"firstRowOnly": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UploadFiles",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get File List",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
},
|
||||
{
|
||||
"activity": "Log Upload Start",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@activity('Get File List').output.value",
|
||||
"type": "Expression"
|
||||
},
|
||||
"activities": [
|
||||
{
|
||||
"name": "Upload File",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "DelimitedTextSource",
|
||||
"additionalColumns": [
|
||||
{
|
||||
"name": "FilePath",
|
||||
"value": "$$FILEPATH"
|
||||
},
|
||||
{
|
||||
"name": "DataFactoryName",
|
||||
"value": {
|
||||
"value": "@pipeline().DataFactory",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "PipelineName",
|
||||
"value": {
|
||||
"value": "@pipeline().Pipeline",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UploadDateTime",
|
||||
"value": {
|
||||
"value": "@utcnow()",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "RunId",
|
||||
"value": {
|
||||
"value": "@pipeline().RunId",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
}
|
||||
},
|
||||
"sink": {
|
||||
"type": "DelimitedTextSink",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSWriteSettings"
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextWriteSettings",
|
||||
"quoteAllText": true,
|
||||
"fileExtension": ".txt"
|
||||
}
|
||||
},
|
||||
"enableStaging": false,
|
||||
"translator": {
|
||||
"type": "TabularTranslator",
|
||||
"typeConversion": true,
|
||||
"typeConversionSettings": {
|
||||
"allowDataTruncation": true,
|
||||
"treatBooleanAsNumber": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "LaptopsFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": {
|
||||
"value": "@item().SourceDirectory",
|
||||
"type": "Expression"
|
||||
},
|
||||
"File": {
|
||||
"value": "@item().FileName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "LakeFiles",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": {
|
||||
"value": "@item().TargetDirectory",
|
||||
"type": "Expression"
|
||||
},
|
||||
"File": {
|
||||
"value": "@item().FileName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Log Upload Start",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get File List",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderStoredProcedureName": "[dbo].[LogUploadStart]",
|
||||
"storedProcedureParameters": {
|
||||
"FileCount": {
|
||||
"type": "Int32",
|
||||
"value": {
|
||||
"value": "@activity('Get File List').output.count",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
"TriggerId": {
|
||||
"type": "String",
|
||||
"value": {
|
||||
"value": "@pipeline().TriggerId",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
},
|
||||
"queryTimeout": "02:00:00",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "GetSetMetadata",
|
||||
"type": "DatasetReference"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Log Upload Finish",
|
||||
"type": "SqlServerStoredProcedure",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "UploadFiles",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"storedProcedureName": "[dbo].[LogUploadFinish]",
|
||||
"storedProcedureParameters": {
|
||||
"LogId": {
|
||||
"value": {
|
||||
"value": "@activity('Log Upload Start').output.firstRow.LogId",
|
||||
"type": "Expression"
|
||||
},
|
||||
"type": "Int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"linkedServiceName": {
|
||||
"referenceName": "trainingdb01",
|
||||
"type": "LinkedServiceReference"
|
||||
}
|
||||
}
|
||||
],
|
||||
"variables": {
|
||||
"DemoVariable": {
|
||||
"type": "String"
|
||||
}
|
||||
},
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Data Uploads"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-09-02T14:13:14Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
379
Code/DataFactory/pipeline/1950 Activities.json
Normal file
379
Code/DataFactory/pipeline/1950 Activities.json
Normal file
@@ -0,0 +1,379 @@
|
||||
{
|
||||
"name": "1950 Activities",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "50",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@json('[\"1\",\n\"2\",\n\"3\",\n\"4\",\n\"5\",\n\"6\",\n\"7\",\n\"8\",\n\"9\",\n\"10\",\n\"11\",\n\"12\",\n\"13\",\n\"14\",\n\"15\",\n\"16\",\n\"17\",\n\"18\",\n\"19\",\n\"20\",\n\"21\",\n\"22\",\n\"23\",\n\"24\",\n\"25\",\n\"26\",\n\"27\",\n\"28\",\n\"29\",\n\"30\",\n\"31\",\n\"32\",\n\"33\",\n\"34\",\n\"35\",\n\"36\",\n\"37\",\n\"38\",\n\"39\",\n\"40\",\n\"41\",\n\"42\",\n\"43\",\n\"44\",\n\"45\",\n\"46\",\n\"47\",\n\"48\",\n\"49\",\n\"50\"]\n')",
|
||||
"type": "Expression"
|
||||
},
|
||||
"batchCount": 50,
|
||||
"activities": [
|
||||
{
|
||||
"name": "Wait 1 Minute 1",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 2",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 3",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 4",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 5",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 6",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 7",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 8",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 9",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 10",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 11",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 12",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 13",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 14",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 15",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 16",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 17",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 18",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 19",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 20",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 21",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 22",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 23",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 24",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 25",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 26",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 27",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 28",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 29",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 30",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 31",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 32",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 33",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 34",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 35",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 36",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 37",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 38",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Wait 1 Minute 39",
|
||||
"type": "Wait",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"waitTimeInSeconds": 600
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Misc"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2022-02-03T14:39:03Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
42
Code/DataFactory/pipeline/Custom Activity.json
Normal file
42
Code/DataFactory/pipeline/Custom Activity.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "Custom Activity",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "HelloWorld",
|
||||
"type": "Custom",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"command": "CustomActivity.exe",
|
||||
"resourceLinkedService": {
|
||||
"referenceName": "TrainingStore01",
|
||||
"type": "LinkedServiceReference"
|
||||
},
|
||||
"folderPath": "customactivities",
|
||||
"referenceObjects": {
|
||||
"linkedServices": [],
|
||||
"datasets": []
|
||||
}
|
||||
},
|
||||
"linkedServiceName": {
|
||||
"referenceName": "BatchForTraining01",
|
||||
"type": "LinkedServiceReference"
|
||||
}
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Misc"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2022-02-03T14:39:04Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
163
Code/DataFactory/pipeline/Lazy Replication.json
Normal file
163
Code/DataFactory/pipeline/Lazy Replication.json
Normal file
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"name": "Lazy Replication",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Get Table List",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderQuery": {
|
||||
"value": "@pipeline().parameters.TableLookupQuery",
|
||||
"type": "Expression"
|
||||
},
|
||||
"queryTimeout": "02:00:00",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "AnyDatabaseTable",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"LinkedServiceConnectionSecret": {
|
||||
"value": "@pipeline().parameters.SourceConnectionSecret",
|
||||
"type": "Expression"
|
||||
},
|
||||
"SchemaName": "sys",
|
||||
"TableName": "objects"
|
||||
}
|
||||
},
|
||||
"firstRowOnly": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Copy Tables",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get Table List",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@activity('Get Table List').output.value",
|
||||
"type": "Expression"
|
||||
},
|
||||
"activities": [
|
||||
{
|
||||
"name": "Copy Table",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"queryTimeout": "02:00:00",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"sink": {
|
||||
"type": "AzureSqlSink",
|
||||
"preCopyScript": {
|
||||
"value": "IF OBJECT_ID('@{item().SchemaName}.@{item().TableName}') IS NOT NULL TRUNCATE TABLE @{item().SchemaName}.@{item().TableName}",
|
||||
"type": "Expression"
|
||||
},
|
||||
"tableOption": "autoCreate",
|
||||
"disableMetricsCollection": false
|
||||
},
|
||||
"enableStaging": false,
|
||||
"translator": {
|
||||
"type": "TabularTranslator",
|
||||
"typeConversion": true,
|
||||
"typeConversionSettings": {
|
||||
"allowDataTruncation": true,
|
||||
"treatBooleanAsNumber": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "AnyDatabaseTable",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"LinkedServiceConnectionSecret": {
|
||||
"value": "@pipeline().parameters.SourceConnectionSecret",
|
||||
"type": "Expression"
|
||||
},
|
||||
"SchemaName": {
|
||||
"value": "@item().SchemaName",
|
||||
"type": "Expression"
|
||||
},
|
||||
"TableName": {
|
||||
"value": "@item().TableName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "AnyDatabaseTable",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"LinkedServiceConnectionSecret": {
|
||||
"value": "@pipeline().parameters.TargetConnectionSecret",
|
||||
"type": "Expression"
|
||||
},
|
||||
"SchemaName": {
|
||||
"value": "@item().SchemaName",
|
||||
"type": "Expression"
|
||||
},
|
||||
"TableName": {
|
||||
"value": "@item().TableName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"SourceConnectionSecret": {
|
||||
"type": "string",
|
||||
"defaultValue": "ConnectionString-trainingdb01"
|
||||
},
|
||||
"TargetConnectionSecret": {
|
||||
"type": "string",
|
||||
"defaultValue": "ConnectionString-trainingdb02"
|
||||
},
|
||||
"TableLookupQuery": {
|
||||
"type": "string",
|
||||
"defaultValue": "SELECT \ts.name AS SchemaName, \to.name AS TableName FROM \tsys.objects o \tINNER JOIN sys.schemas s \t\tON o.schema_id = s.schema_id WHERE \to.[type] = 'U'"
|
||||
}
|
||||
},
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Dynamic Linked Services"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-08-27T09:43:42Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
37
Code/DataFactory/pipeline/Order Summary with Mapping.json
Normal file
37
Code/DataFactory/pipeline/Order Summary with Mapping.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "Order Summary with Mapping",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Mapping Order Aggregation",
|
||||
"type": "ExecuteDataFlow",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"dataflow": {
|
||||
"referenceName": "MappingOrderAggregation",
|
||||
"type": "DataFlowReference"
|
||||
},
|
||||
"compute": {
|
||||
"coreCount": 8,
|
||||
"computeType": "General"
|
||||
},
|
||||
"traceLevel": "Fine"
|
||||
}
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Data Flows"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-09-02T14:13:15Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
179
Code/DataFactory/pipeline/Scale Out Level 1.json
Normal file
179
Code/DataFactory/pipeline/Scale Out Level 1.json
Normal file
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"name": "Scale Out Level 1",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Get Bucket Ids",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Reset And Log Start",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
},
|
||||
{
|
||||
"activity": "Reset Bucket Process Map",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderStoredProcedureName": "[dbo].[GetBuckets]",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "GetSetMetadata",
|
||||
"type": "DatasetReference"
|
||||
},
|
||||
"firstRowOnly": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Call Buckets",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get Bucket Ids",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@activity('Get Bucket Ids').output.value",
|
||||
"type": "Expression"
|
||||
},
|
||||
"isSequential": false,
|
||||
"batchCount": 50,
|
||||
"activities": [
|
||||
{
|
||||
"name": "Call Level 2",
|
||||
"type": "ExecutePipeline",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"pipeline": {
|
||||
"referenceName": "Scale Out Level 2",
|
||||
"type": "PipelineReference"
|
||||
},
|
||||
"waitOnCompletion": true,
|
||||
"parameters": {
|
||||
"BucketId": {
|
||||
"value": "@{item().BucketId}",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Log End",
|
||||
"type": "SqlServerStoredProcedure",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Call Buckets",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
},
|
||||
{
|
||||
"activity": "Reset And Log Start",
|
||||
"dependencyConditions": [
|
||||
"Completed"
|
||||
]
|
||||
}
|
||||
],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"storedProcedureName": "[dbo].[SetBucketLogEntry]",
|
||||
"storedProcedureParameters": {
|
||||
"LogId": {
|
||||
"value": {
|
||||
"value": "@activity('Reset And Log Start').output.firstRow.LogId",
|
||||
"type": "Expression"
|
||||
},
|
||||
"type": "Int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"linkedServiceName": {
|
||||
"referenceName": "trainingdb01",
|
||||
"type": "LinkedServiceReference"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Reset And Log Start",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderStoredProcedureName": "[dbo].[SetBucketLogEntry]",
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "GetSetMetadata",
|
||||
"type": "DatasetReference"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Reset Bucket Process Map",
|
||||
"type": "SqlServerStoredProcedure",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"storedProcedureName": "[dbo].[SetBucketProcesses]"
|
||||
},
|
||||
"linkedServiceName": {
|
||||
"referenceName": "trainingdb01",
|
||||
"type": "LinkedServiceReference"
|
||||
}
|
||||
}
|
||||
],
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Scaling Out"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-08-24T13:41:19Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
97
Code/DataFactory/pipeline/Scale Out Level 2.json
Normal file
97
Code/DataFactory/pipeline/Scale Out Level 2.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"name": "Scale Out Level 2",
|
||||
"properties": {
|
||||
"activities": [
|
||||
{
|
||||
"name": "Get Bucket Contents",
|
||||
"type": "Lookup",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "AzureSqlSource",
|
||||
"sqlReaderStoredProcedureName": "[dbo].[GetBucketContents]",
|
||||
"storedProcedureParameters": {
|
||||
"BucketId": {
|
||||
"type": "Int32",
|
||||
"value": {
|
||||
"value": "@pipeline().parameters.BucketId",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
},
|
||||
"partitionOption": "None"
|
||||
},
|
||||
"dataset": {
|
||||
"referenceName": "GetSetMetadata",
|
||||
"type": "DatasetReference"
|
||||
},
|
||||
"firstRowOnly": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Execute Processes",
|
||||
"type": "ForEach",
|
||||
"dependsOn": [
|
||||
{
|
||||
"activity": "Get Bucket Contents",
|
||||
"dependencyConditions": [
|
||||
"Succeeded"
|
||||
]
|
||||
}
|
||||
],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"items": {
|
||||
"value": "@activity('Get Bucket Contents').output.value",
|
||||
"type": "Expression"
|
||||
},
|
||||
"batchCount": 50,
|
||||
"activities": [
|
||||
{
|
||||
"name": "Run Process",
|
||||
"type": "SqlServerStoredProcedure",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"storedProcedureName": {
|
||||
"value": "@concat('[workers].[DumpDataAndWait',item().ProcessId,']')",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
"linkedServiceName": {
|
||||
"referenceName": "trainingdb01",
|
||||
"type": "LinkedServiceReference"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"BucketId": {
|
||||
"type": "int"
|
||||
}
|
||||
},
|
||||
"folder": {
|
||||
"name": "Demo Pipelines/Scaling Out"
|
||||
},
|
||||
"annotations": [],
|
||||
"lastPublishTime": "2020-08-24T13:41:19Z"
|
||||
},
|
||||
"type": "Microsoft.DataFactory/factories/pipelines"
|
||||
}
|
||||
Reference in New Issue
Block a user