Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Sink for Azure Data Factory pipeline

In Azure Data Factory pipeline, Can I have a copy activity with two SINKs? I have one source and 2 sinks (One Azure Data lake store for downstream processing and the other for archival on Blob Storage).

like image 368
Ajay Devulapalli Avatar asked Dec 24 '22 20:12

Ajay Devulapalli


2 Answers

That’s definitively possible. Just add a second activity in the same pipeline with the same Input dataset but a different output dataset.

The JSON will then look something like this:

{
    "$schema": "http://datafactories.schema.management.azure.com/schemas/2015-09-01/Microsoft.DataFactory.Pipeline.json",
    "name": "CopyActivity1",
    "properties": {
        "description": "Copy data from blob to a sql server table",
      "activities": [
        {
          "name": "CopyActivityTemplate",
          "type": "Copy",
          "inputs": [
            {
              "name": "AzureBlobLocation1"
            }
          ],
          "outputs": [
            {
              "name": "AzureSqlTableLocation1"
            }
          ],
          "typeProperties": {
            "source": {
              "type": "BlobSource"
          },
        },
        {
          "name": "CopyActivityTemplate2",
          "type": "Copy",
          "inputs": [
            {
              "name": "AzureBlobLocation1"
            }
          ],
          "outputs": [
            {
              "name": "AzureSqlTableLocation2"
            }
          ],
          "typeProperties": {
            "source": {
              "type": "BlobSource"
            },          
          },
        }
      ],
        "start": "2016-12-05T22:00:00Z",
        "end": "2016-12-06T01:00:00Z"
    }
}
like image 95
Michael Ludwig Avatar answered Jan 13 '23 22:01

Michael Ludwig


So basically you need to add another activity with same source.

like image 45
Vikas Sharma Avatar answered Jan 13 '23 22:01

Vikas Sharma