Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy files to Azure VM

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.

like image 552
user1102550 Avatar asked Dec 09 '13 09:12

user1102550


1 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/

like image 96
engineerer Avatar answered Sep 21 '22 12:09

engineerer