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.