user1102550
user1102550

Reputation: 543

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.

Upvotes: 13

Views: 22560

Answers (3)

engineerer
engineerer

Reputation: 171

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/

Upvotes: 1

kwill
kwill

Reputation: 10998

You should just be able to copy/paste like normal. You can check to make sure rdpclip.exe is running on the VM.

If that doesn't work, you can always open your local drive using \\tsclient\c from within the RDP session. To share your local drive you can save the RDP file from the Management Portal website, then right-click the .rdp file and select Edit. Then switch to the Local Resources tab and click More under 'Local devices and resources' and check the drives that you want to share.

Upvotes: 22

Maria Łysik
Maria Łysik

Reputation: 41

In my case simple restart of rdpclip.exe did the job, so try it.

Upvotes: 4

Related Questions