copy from fileshare to blob container

Niren Adhikary 96 Reputation points
2022-12-12T07:37:07.31+00:00

Hello,

I need to copy file from source path in fileshare to destination blob container in ADLS2 using an automated process. Basically when a file is modified/updated in the file share, the file should get copied to destination blob container and the file should be renamed.

What is the best possible way to do that ? i checked using login app but could not find a connector for ADLS

Thanks

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2022-12-12T19:31:30.233+00:00

    Hello @Niren Adhikary ,

    Welcome to the Microsoft Q&A platform and thanks for posting your query.

    Could you please elaborate a bit on your source (fileshare). Is it an onPrem file share path? or something else?
    In case if it is On prem file share path, then Azure data factory would be ideal for your requirement. You can use copy activity in ADF to copy files from your file share to ADLS using windows authentication.

    For more info about the FileSystem connector in ADF please refer to this document: Copy data to or from a file system by using Azure Data Factory or Azure Synapse Analytics

    In order to copy files to your destination ADLS you can use ADLS connector in ADF. Please refer to this document for more info about this connector: Copy and transform data in Azure Data Lake Storage Gen2 using Azure Data Factory or Azure Synapse Analytics

    Using copy activity in ADF you can also rename the file name before copying it to your desired destination.

    Since you have a requirement to copy when the files are updated/modified, you will have to write an application or web function to trigger your ADF pipeline. Or you can also create a workflow in Azure Logic apps and trigger it when a file is created or added to a file share in On prem file system and in the same workflow, you can trigger the ADF pipeline when the file is being added or created in the file share.

    For more info about this approach please refer to below documents:

    1. Connect to on-premises file systems from workflows in Azure Logic Apps
    2. ADF: How to trigger a pipeline when the files are ready in file system?

    Hope this will help. Please let us know if any further queries.

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

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

Your answer

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