Search code examples
azureazure-storage-filesazure-files

How to copy files synced using azure files to a new azure storage location?


I have mapped my azure storage files in my local machine's network drive. now I want to copy the file from azures shared files location to a new location in azure storage whenever a new file is pasted in local machines network drive.

I followed this tutorial to mount azure files in my local machine.

Can anyone help me with copying those files from shared location to a new location in azure storage account?

What are the different approaches to achieve this scenario?


Solution

  • I want to copy the file from azures shared files location to a new location in azure storage whenever a new file is pasted in local machines network drive.

    It seems that you mount your Azure File share on Windows and you'd like to monitor file additions/changes to local machine network drive and copy new file to another area (file share or blob).

    You can try this approach: create and run a FileTrigger WebJob on your local machine to detect whether new files arrive, and use Azure Storage Services REST API or Microsoft Azure Storage Client Library to programmatic access and copy the new file to another file share or blob.