Move File rather than copy in Azure Data factory

Debbie Edwards 521 Reputation points
2020-08-03T09:49:05.573+00:00

In Data Factory you can copy a file but Im thinking, is data factory the best thing to use if you are going to move a file from one area to another?

Is Logic Apps a better solution to go for if you are going to simply move a file?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,902 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,773 questions
0 comments No comments
{count} votes

Accepted answer
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2020-08-03T12:17:59.943+00:00

    Hi @DebbieEdwards-1726,

    Welcome to Microsoft Q&A Platform.

    With the delete activity in Azure data factory, this can be added to copy activity and once file is copied, it can be deleted from source. The same can be achieved in Logic App using a trigger. The option to use depends on use case. If it is simply moving a file without any transformations, loading and reporting of the data in it and it needs to be automated, logic app would be good to use.

    Hope this helps! Do let us know for further questions.

    1 person found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Gieger, Alfred 141 Reputation points
    2021-04-16T15:29:07.907+00:00

    I think, it is only available for binary files. But this would not matter, if you only want to move the file.

    0 comments No comments

  2. Sarah C Benjamin 1 Reputation point
    2021-05-18T20:17:05.587+00:00

    Hi @Vaibhav Chaudhari I was looking at this response because I need to move files also and used this create a new file and delete the old file approach. I don't need to read the file so thought copying like this be fine.

    The only problem with this approach I am seeing is that I am losing the timestamp of the file because of creating a new file and deleting it.

    Is there no way in ADF that we can move the original file without reading it and thus able to maintain the timestamp of the file? This is the last step in my pipeline and I really don't want to take this step to logic app. Unless there is a way for me to call the logic app within ADF?

    Thanks

    0 comments No comments