Copy files to Azure VM

Viewed 17702

I have a VM I want to copy files to, a console app I want to run on the VM. How do I do this as the Remote Desktop won't let me copy files.

3 Answers

From my point of view the simplest and most reliable way is to use an Azure File Share.

  1. Create a new storage account.
  2. Create a File Share in the storage account.
  3. Navigate to the File Share.
  4. Click "Connect" and paste the commands to the PowerShell console on your client and on your Azure VM. Commands for Linux and MacOS are available as well.
  5. Transfer files to and from the File Share.

The process is more or less automatable. I wrote about it on my blog: https://engineerer.ch/2020/08/16/copy-large-files-to-an-azure-vm/

Related