Udostępnij za pośrednictwem


Quickstart: Use the Copy Data tool in Azure Data Factory Studio to copy data

DOTYCZY: Azure Data Factory Azure Synapse Analytics

Tip

Wypróbuj usługę Data Factory w usłudze Microsoft Fabric — rozwiązanie analityczne typu all-in-one dla przedsiębiorstw. Usługa Microsoft Fabric obejmuje wszystko, od przenoszenia danych do nauki o danych, analizy w czasie rzeczywistym, analizy biznesowej i raportowania. Dowiedz się, jak bezpłatnie rozpocząć nową wersję próbną !

In this quickstart, you use the Copy Data tool in Azure Data Factory Studio to create a pipeline that copies data from a source folder in Azure Blob Storage to a target folder.

Wymagania wstępne

Subskrypcja platformy Azure

Jeśli nie masz subskrypcji platformy Azure, przed rozpoczęciem utwórz bezpłatne konto.

Przygotowywanie danych źródłowych w usłudze Azure Blob Storage

To prepare source data by using a template:

  1. Wybierz poniższy przycisk.

    Wypróbuj pierwszy pokaz fabryki danych

  2. Zostanie przekierowana do strony konfiguracji w celu wdrożenia szablonu. Na tej stronie:

    1. W obszarze Grupa zasobów wybierz pozycję Utwórz nową , aby utworzyć grupę zasobów. Możesz pozostawić wszystkie inne wartości z ich wartościami domyślnymi.

    2. Wybierz Przejrzyj i utwórz, a następnie wybierz Utwórz, aby wdrożyć zasoby.

    Zrzut ekranu przedstawiający stronę wdrażania szablonu na potrzeby tworzenia zasobów.

Uwaga

Użytkownik wdrażający szablon musi przypisać rolę do tożsamości zarządzanej. Ten krok wymaga uprawnień, które można udzielić za pośrednictwem roli Właściciel, Administrator dostępu użytkowników lub Operator tożsamości zarządzanej.

A new Blob Storage account is created in the new resource group. The moviesDB2.csv file is stored in a folder called input in Blob Storage.

Tworzenie fabryki danych

You can use your existing data factory, or you can create a new one as described in Quickstart: Create a data factory.

Use the Copy Data tool to copy data

The Copy Data tool has five pages that walk you through the task of copying data. To start the tool:

  1. In Azure Data Factory Studio, go to your data factory.

  2. Select the Ingest tile.

Screenshot that shows the page for a data factory and the Ingest tile in Azure Data Factory Studio.

Step 1: Select the task type

  1. On the Properties page of the Copy Data tool, choose Built-in copy task under Task type.

  2. Wybierz Dalej.

Screenshot that shows the Properties page of the Copy Data tool.

Krok 2. Ukończenie konfiguracji źródła

  1. On the Source page of the Copy Data tool, select + Create new connection to add a connection.

  2. Wybierz typ połączonej usługi, który chcesz utworzyć dla połączenia źródłowego. (The example in this quickstart uses Azure Blob Storage.) Then select Continue.

    Screenshot that shows the gallery of service types in the dialog for a new connection, with Azure Blob Storage selected.

  3. In the New connection (Azure Blob Storage) dialog:

    1. For Name, specify a name for your connection.
    2. Under Account selection method, select From Azure subscription.
    3. In the Azure subscription list, select your Azure subscription.
    4. In the Storage account name list, select your storage account.
    5. Select Test connection and confirm that the connection is successful.
    6. Wybierz Utwórz.

    Screenshot that shows configuration details for an Azure Blob Storage account.

  4. Under Source data store:

    1. For Connection, select the newly created connection.
    2. In the File or folder section, select Browse to go to the adftutorial/input folder. Select the moviesDB2.csv file, and then select OK.
    3. Select the Binary copy checkbox to copy the file as is.
    4. Wybierz Dalej.

    Screenshot that shows settings for a source data store.

Krok 3. Ukończenie konfiguracji docelowej

  1. On the Target page of the Copy Data tool, for Connection, select the AzureBlobStorage connection that you created.

  2. In the Folder path section, enter adftutorial/output.

    Screenshot that shows settings for a destination data store.

  3. Leave other settings as default. Wybierz Dalej.

Step 4: Enter a name and description for the pipeline

  1. On the Settings page of the Copy Data tool, specify a name for the pipeline and its description.

  2. Select Next to use other default configurations.

    Screenshot that shows the Settings page of the Copy Data tool.

Step 5: Review settings and deploy

  1. On the Review and finish page, review all settings.

  2. Wybierz Dalej.

The Deployment complete page shows whether the deployment is successful.

Monitor the running results

After you finish copying the data, you can monitor the pipeline that you created:

  1. On the Deployment complete page, select Monitor.

    Screenshot of the page that that shows a completed deployment.

  2. The application switches to the Monitor tab, which shows the status of the pipeline. Select Refresh to refresh the list of pipelines. Select the link under Pipeline name to view activity run details or to rerun the pipeline.

    Screenshot that shows the button for refreshing the list of pipelines.

  3. On the page that shows the details of the activity run, select the Details link (eyeglasses icon) in the Activity name column for more details about the copy operation. For information about the properties, see the overview article about the copy activity.

The pipeline in this sample copies data from one location to another location in Azure Blob Storage. To learn about using Data Factory in more scenarios, see the following tutorial: