---
title: Configure ADF pipeline with Copy data activity
url: https://documentation.cluedin.net/solutions/azure-data-factory/copy-data
content_type: how-to
section: Solutions & integrations > Azure Data Factory
---

# Configure ADF pipeline with Copy data activity

> how-to: Steps to accomplish one task.

This guide provides step-by-step instructions for configuring an Azure Data Factory (ADF) Copy data activity to send data to CluedIn using a private endpoint.

Use the Copy data activity if you do not need to make any data transformations before sending data to CluedIn. When data transformations such as aggregation, filtering, or applying complex business logic are required before sending data to CluedIn, use the [Data flow activity](https://documentation.cluedin.net/solutions/azure-data-factory/data-flow-activity.md) instead.

**Prerequisites** 

- Configure a private link service between ADF and CluedIn as described in [Configure ADF with private link](https://documentation.cluedin.net/microsoft-integration/adf-integration/private-link).

- Make sure you have Azure Data Lake with some CSV data. 

- Create an ingestion endpoint and authorization token in CluedIn as described in [Add ingestion endpoint](https://documentation.cluedin.net/integration/endpoint#add-ingestion-endpoint). 

Configuring an ADF pipeline with the Copy data activity consists of 4 steps:

1. [Creating a new pipeline](#ceate-pipeline)

2. [Configuring the source](#configure-source)

3. [Configuring the sink](#configure-sink)

4.  [Debugging the pipeline](#debug-pipeline)

5. [Validating the result in CluedIn](#validate-result-in-cluedin)

## Create a new pipeline

1. On the Azure Data Factory home page, select **New** > **Pipeline**.

1. In the **Activities** pane, expand the **Move and transform** category, and then drag the **Copy data** activity to the pipeline canvas.

    ![Copy data activity on the pipeline canvas, with the General, Source, Sink and Mapping tabs below](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/copy-data-activity.png)

## Configure source

1. Go to the **Source** tab. Select **+ New** to create a source dataset.

1. In the **New dataset** pane, find and select **Azure Data Lake Storage Gen2**, and then select **Continue**.

1. In the **Select format** pane, select **DelimitedText**, and then select **Continue**.

1. In the **Set properties** pane, enter the name for the dataset. Then, expand the **Linked service** dropdown list and select **+ New**.

1. In the **New linked service** pane, provide the following details:

    - **Name** – enter the name for your linked service.

    - **Account selection method** – select **From Azure subscription**.

    - **Azure Subscription** – select the subscription of your Azure Data Lake.

    - **Storage account name** – select the name of your Azure Data Lake storage account.

1. Test connection, and then select **Create**.

    After the linked service is created, you'll be taken back to the **Set properties** pane.

1. In the **File path** section, add the path to the appropriate folder/file of your Azure Data Lake.

1. Select **OK**.

    ![Set properties pane for the source dataset with an Azure Data Lake Storage linked service, a File path, and First row as header selected](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/configure-source.png)

## Configure sink

1.  Go to the **Sink** tab. Select **+ New** to create a sink dataset.

1. In the **New dataset** pane, find and select **REST**, and then select **Continue**.

1. In the **Set properties** pane, enter the name for the dataset. Then, expand the **Linked service** dropdown list and select **+ New**.

1. In the **New linked service** pane, provide the following details:

    - **Name** – enter the name for your linked service.

    - **Base URL** – enter the URL of the ingestion endpoint in CluedIn. For more information, see [Send data](https://documentation.cluedin.net/ingest/data-sources/endpoint.md#send-data).

    - **Authentication type** – select **Anonymous**.

    - **Auth headers** – add a new header with the following details:

        - **Name** – enter **Authorization**.

        - **Value** – enter **Bearer**, add a space, and then paste the token from CluedIn. For more information, see [Send data](https://documentation.cluedin.net/ingest/data-sources/endpoint.md#send-data).

    ![New linked service pane for REST with the CluedIn endpoint Base URL, Anonymous authentication, and an Authorization auth header](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/configure-sink-new-linked-service.png)

1. Test connection, and then select **Create**.

    After the linked service is created, you'll be taken back to the **Set properties** pane.

1. Select **OK**.

1. In the **Request method** field, select **POST**.

    ![Sink tab of the Copy data activity with Request method set to POST and highlighted](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/configure-sink-request-method.png)

## Debug pipeline

Once the source and sink are configured, you can debug the pipeline to ensure it is working correctly.

**To debug the pipeline**

1. On the toolbar, select **Debug**.

1. Monitor the status of the pipeline run on the **Output** tab at the bottom of the window.

    ![Output tab of a debug run with Pipeline status Succeeded and the Copy data activity succeeded](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/debug-pipeline.png)

## Validate result in CluedIn

Once the ADF pipeline is triggered successfully, you should see the data flowing into CluedIn. You can view the incoming records on the **Preview** tab of the data set.

![Preview tab of the training-data data set in CluedIn showing the records received from the pipeline](https://documentation.cluedin.net/assets/images/microsoft-integration/azure-data-factory/after-debug.png)

Up: [Azure Data Factory](https://documentation.cluedin.net/solutions/azure-data-factory.md)
