How to copy one drive files to share point automatically with out logic apps and power automata

Podili Vijay 20 Reputation points
2024-02-23T06:52:14.5366667+00:00

i have one logic app flow it will copy the files from SharePoint to ADLS. now i want to add one parallel branch to copy files from one drive to adls. but while add one drive action name like get file content it will ask sig in . but actually those one drive credential we don't have in hand and it is not possible to take it our hand. so i thought to move those files to sharepoint after that we place those file to adls. but i'm struct how to move one drive files to adls automatically at daily.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,714 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,136 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nehruji R 2,051 Reputation points Microsoft Vendor
    2024-02-26T06:10:05.2+00:00

    Hello Podili Vijay,

    Greetings! Welcome to Microsoft Q&A forum.

    I understand that you would like to copy files from one drive to ADLS automatically without using PowerAutomate flows or logic apps. Below are the certain ways to perform the same and you can choose which is appropriate for your use case,

    1.Consider using Azure Data Factory, Create a pipeline in ADF that:

    • Uses the “Copy Data” tool.
    • Connects to your OneDrive as the source.
    • Connects to your ADLS Gen2 as the destination.
    • Schedule the pipeline to run daily.
    • This way, it will automatically move files from OneDrive to ADLS Gen2 on a regular basis.

    refer -https://learn.microsoft.com/en-us/azure/data-factory/load-azure-data-lake-storage-gen2

    2.You can also achieve your goal by using Storage Events Trigger in ADF. This will trigger the linked/associated pipeline when a new file is added in the onedrive.

    refer - https://learn.microsoft.com/en-us/azure/data-factory/how-to-create-event-trigger?tabs=data-factory

    Demonstration Video : Here is a demonstration video on event triggers in ADF - Event based Triggers in Azure Data Factory

    3.Alternatively, you can try using PowerShell Script,

    Write a custom PowerShell script that periodically checks for new files in OneDrive. Use the Azure Data Lake Store PowerShell module to move the files from OneDrive to ADLS Gen2.

    • Schedule the script to run daily using Task Scheduler or any other scheduling mechanism.

    refer SO thread- https://stackoverflow.com/questions/58622619/how-to-move-files-in-azure-data-lake-store-with-powershell-recursive for more details.

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.

    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.