Copy file from one location to another

Vineet S 1,390 Reputation points
2024-09-21T21:18:20.9533333+00:00

How to Copy file from one location to another using adf... Pls share screenshot

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,756 Reputation points
    2024-09-22T10:25:42.29+00:00

    Hi @Vineet S

    You may use the Copy data tool in the ADF to copy data. Basically it creates a pipeline that copies data from the source folder in Azure Blob Storage to a target folder. Refer the quick start tutorial below.

    https://learn.microsoft.com/en-us/azure/data-factory/quickstart-hello-world-copy-data-tool

    Hope this helps

    0 comments No comments

  2. Ganesh Gurram 7,235 Reputation points Moderator
    2024-09-24T09:59:52.5566667+00:00

    @Vineet S - Thanks for the question and using MS Q&A platform.  

    Here is the example of copying file from one location to another: 

    Step1: Create a storage account and create two containers named Input/ganesh and Output/sravan to copy the file from one location to another. 

    Note: Uploaded a sample JSON file to Input container in the storage account. 

    User's image

    Step2: Create Azure data Factory and launch azure data studio. 

    User's image

    Step3: After opening, click on Author, pipelines and click on new pipeline and enter the name of the pipeline named CopyFromOneLocationToAnother aka ganeshpipeline 

    User's image

    User's image

    Step4: Click on "Move and transform," then drag and drop the "Copy activity" into the middle area. Next, click on "Source," then click "New." Enter a name for the dataset, choose the data store, and select the file type you want to copy.

    User's image Step5: Now, select the subscription and the storage account name that you created, and then click "Create."

    User's image

    Step6:  Choose the folder where the file is located, then select the file. 

    User's image

    Step7: Click on "Sink," then click on "New Dataset." Choose the data store and select the file type. 

    User's image

    Step8: Now select the folder to which you want to copy the file. 

    User's image

    Step9: Click on "Validate" to ensure your pipeline is validated successfully without any errors.

    User's image

     

    Step10: Click on "Debug," wait for a moment, and you will see that the pipeline status is "Succeeded." 

    User's image

    Here is the summary of copying from one location to another location.User's image 

    Hope this helps. Do let us know if you have any further queries.  

    ------------  

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.  


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.