Exchange files between azure and local machine

%3CLINGO-SUB%20id%3D%22lingo-sub-2842286%22%20slang%3D%22en-US%22%3EExchange%20files%20between%20azure%20and%20local%20machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2842286%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20new%20to%20azure.%20Would%20someone%20let%20me%20know%20what%20is%20the%20best%20way%20to%20exchange%20files%20between%20my%20desktop%20and%20azure%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I am new to azure. Would someone let me know what is the best way to exchange files between my desktop and azure? 

 

Thanks in advance!

2 Replies

Hi @mail8mz 

 

Assuming you want to move files from your local machine to an Azure Storage account and vice-versa, you can use the Storage Account Explorer. This has a nice GUI from which you can interact with all your storage accounts and storage types.

 

If you are confident with command-line options, you can also use the azcopy utility.

 

If you are looking at moving files to/from a Virtual Machine. Your remote desktop session should support Copy/Paste between your machine and the virtual machine. Not ideal for large files or many files, but it does work for a quick upload/download.

 

Otherwise, I would recommend using a Storage Account and mounting a File Share to both your local machine and the virtual machine(s). In that way, it acts like a network share common to your environment and any Azure resources that are connected to the storage account. Check out this tutorial here

 

Welcome to Azure!

 

Omar

 

The best way would be to create a file share between two machines.
First, you need to Allow Inbound connection to your Azure VM from on-premises. Perhaps this is could be the case in your way, please go through this article https://docs.microsoft.com/en-US/troubleshoot/windows-client/networking/internet-firewalls-prevent-b... , for enabling correct port if you don't want to expose everything.

Second, you should create a network drive.

Last, create a scheduler task with XCopy or PowerShell.

You can even create a Hybrid Worker in Automation Account for running your job from the Cloud to on-premises
Another better option is to use Azure file sync . The below he following documentation gives a good overview on how to set it up and its capabilities.https://docs.microsoft.com/en-us/azure/storage/file-sync/file-sync-deployment-guide?tabs=azure-porta...
In my case I have to transfer one time some files hence I used SaaS service like BOX and uploaded the files and downloaded to VM