You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/bastion/vm-upload-download-native.md
+12-22Lines changed: 12 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,27 +5,27 @@ description: Learn how to upload or download files using Azure Bastion and a nat
5
5
author: cherylmc
6
6
ms.service: bastion
7
7
ms.topic: how-to
8
-
ms.date: 06/13/2023
8
+
ms.date: 03/11/2024
9
9
ms.author: cherylmc
10
10
# Customer intent: I want to upload or download files using Bastion.
11
11
12
12
---
13
13
14
14
# File transfer using a native client
15
15
16
-
Azure Bastion offers support for file transfer between your target VM and local computer using Bastion and a native RDP or native SSH client. To learn more about native client support, refer to [Configure Bastion native client support](native-client.md). While it may be possible to use third-party clients and tools to upload or download files, this article focuses on working with supported native clients.
16
+
Azure Bastion offers support for file transfer between your target VM and local computer using Bastion and a native RDP or native SSH client. To learn more about native client support, refer to [Configure Bastion native client support](native-client.md). While it might be possible to use third-party clients and tools to upload or download files, this article focuses on working with supported native clients.
17
17
18
18
* File transfers are supported using the native client only. You can't upload or download files using PowerShell or via the Azure portal.
19
-
*To both [upload and download files](#rdp), you must use the Windows native client and RDP.
20
-
* You can [upload files](#tunnel-command) to a VM using the native client of your choice and either RDP or SSH.
19
+
*You can upload and download files using the Windows native client and RDP.
20
+
* You can upload and download files to a VM using the native client of your choice and either RDP or SSH.
21
21
* This feature requires the Standard SKU. The Basic SKU doesn't support using the native client.
22
22
23
23
## Prerequisites
24
24
25
25
* Install Azure CLI (version 2.32 or later) to run the commands in this article. For information about installing the CLI commands, see [Install the Azure CLI](/cli/azure/install-azure-cli) and [Get Started with Azure CLI](/cli/azure/get-started-with-azure-cli).
26
26
* Get the Resource ID for the VM to which you want to connect. The Resource ID can be easily located in the Azure portal. Go to the Overview page for your VM and select the *JSON View* link to open the Resource JSON. Copy the Resource ID at the top of the page to your clipboard to use later when connecting to your VM.
27
27
28
-
## <aname="rdp"></a>Upload and download files - RDP
28
+
## <aname="rdp"></a>Upload and download files - Windows client and RDP
29
29
30
30
The steps in this section apply when connecting to a target VM from a Windows local computer using the native Windows client and RDP. The **az network bastion rdp** command uses the native client MSTSC. Once connected to the target VM, you can upload and download files using **right-click**, then **Copy** and **Paste**. To learn more about this command and how to connect, see [Connect from a Windows native client](connect-vm-native-client-windows.md).
31
31
@@ -47,16 +47,12 @@ The steps in this section apply when connecting to a target VM from a Windows lo
47
47
az network bastion rdp --name "<BastionName>" --resource-group "<BastionResourceGroupName>" --target-resource-id "<VMResourceId>"
48
48
```
49
49
50
-
1. Once you sign in to your target VM, the native client on your computer will open up with your VM session. You can now transfer files between your VM and local machine using right-click, then **Copy** and **Paste**.
50
+
1. Once you sign in to your target VM, the native client on your computer opens up with your VM session. You can now transfer files between your VM and local machine using right-click, then **Copy** and **Paste**.
51
51
52
-
## <a name="tunnel-command"></a>Upload files - SSH and RDP
52
+
## <a name="tunnel-command"></a>Upload and download files - SSH and RDP
53
53
54
-
The steps in this section apply to native clients other than Windows, as well as Windows native clients that want to connect over SSH to upload files.
55
-
This section helps you upload files from your local computer to your target VM over SSH or RDP using the **az network bastion tunnel** command. To learn more about the tunnel command and how to connect, see [Connect from a Linux native client](connect-vm-native-client-linux.md).
56
-
57
-
> [!NOTE]
58
-
> This command can be used to upload files from your local computer to the target VM. File download is not supported.
59
-
>
54
+
The steps in this section apply to native clients other than Windows, and Windows native clients that want to connect over SSH to upload files.
55
+
This section helps you upload or download files from your local computer to your target VM over SSH or RDP using the **az network bastion tunnel** command. To learn more about the tunnel command and how to connect, see [Connect from a Linux native client](connect-vm-native-client-linux.md).
60
56
61
57
1. Sign in to your Azure account. If you have more than one subscription, select the subscription containing your Bastion resource.
62
58
@@ -72,18 +68,12 @@ This section helps you upload files from your local computer to your target VM o
1. Open a second command prompt to connect to your target VM through the tunnel. In this second command prompt window, you can upload files from your local machine to your target VM using the following command:
71
+
1. Open a second command prompt to connect to your target VM through the tunnel. In this second command prompt window, you can specify to upload or download files. For a list of SCP commands and parameters, see [SCP](https://www.commandlinux.com/man-page/man1/scp.1.html).
0 commit comments