Best way to transfer files remotely to Azure Linux VM via Bastion

mij2020 366 Reputation points
2020-08-12T12:17:55.853+00:00

I have a RedHat VM which I can currently access via Azure Bastion.
If I wish to transfer files from my remote machine to this VM - what is the best way to do this?

The VM does not have a public IP address. I connect only via Bastion using regular username and password. No keys are being used.

Thanks for any assistance

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,116 questions
Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
241 questions
{count} vote

Accepted answer
  1. Sam Cogan 10,157 Reputation points MVP
    2020-08-13T08:56:00.81+00:00

    If you do not have access to anything except bastion, then you need to place the files somewhere accessible to the VM, so you can use something like Curl or WGet to download them. This could be an Azure storage account, if you have access to one, which you could use a SAS token to secure so it is not public ally accessible.

    If you do not have access to a storage account then you will need to find another location where you can upload files to then download into your VM.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,316 Reputation points Microsoft Employee
    2020-08-14T07:47:44.933+00:00

    Hello @mij2020 ,

    At this time, only text copy/paste is supported in Bastion. Features such as file copy are not supported.
    Please refer : https://learn.microsoft.com/en-us/azure/bastion/bastion-faq#rdpfeaturesupport

    Please feel free to share your feedback here requesting this feature. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    You may however make use of Azure Storage and configure Azure files to access or transfer files.
    Please refer : https://learn.microsoft.com/en-us/azure/storage/common/storage-introduction
    https://learn.microsoft.com/en-us/azure/storage/files/storage-files-introduction

    Kindly let us know if you need any further assistance on this issue from our end.

    ----------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments