Copy and paste to a virtual machine: Azure Bastion

This article helps you copy and paste text to and from virtual machines when using Azure Bastion. Before you work with a VM, make sure you have followed the steps to Create a Bastion host. Then, connect to the VM that you want to work with using either RDP or SSH.

For browsers that support the advanced Clipboard API access, you can copy and paste text between your local device and the remote session in the same way you copy and paste between applications on your local device. For other browsers, you can use the Bastion clipboard access tool palette.

Note

Only text copy/paste is currently supported.

Allow clipboard

Only text copy/paste is supported. For direct copy and paste, your browser may prompt you for clipboard access when the Bastion session is being initialized. Allow the web page to access the clipboard.

Copy to a remote session

After you connect to the virtual machine using the Azure portal , complete the following steps:

  1. Copy the text/content from the local device into local clipboard.

  2. During the remote session, launch the Bastion clipboard access tool palette by selecting the two arrows. The arrows are located on the left center of the session.

    Screenshot that shows the launch arrows for the tool palette highlighted on the left-side of the window.

    Screenshot shows a clipboard for text copied in Bastion.

  3. Typically, the copied text automatically shows on the Bastion copy paste palette. If your text is not there, then paste the text in the text area on the palette.

  4. Once the text is in the text area, you can paste it to the remote session.

    Screenshot that shows the copy/paste button highlighted and a sample text string copied into the remote session.

Copy from a remote session

After you connect to the virtual machine using the Azure portal , complete the following steps:

  1. Copy the text/content from the remote session into remote clipboard (using Ctrl-C).

    tool palette

  2. During the remote session, launch the Bastion clipboard access tool palette by selecting the two arrows. The arrows are located on the left center of the session.

    clipboard

  3. Typically, the copied text automatically shows on the Bastion copy paste palette. If your text is not there, then paste the text in the text area on the palette.

  4. Once the text is in the text area, you can paste it to the local device.

    paste

Next steps

Read the Bastion FAQ.