Skip to content

Commit 714cb5c

Browse files
authored
Merge pull request #234541 from isamorris/patch-33
Update connect-ip-address.md
2 parents 968c27b + 2a3749e commit 714cb5c

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

articles/bastion/connect-ip-address.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.author: cherylmc
1010

1111
---
1212

13-
# Connect to a VM via specified private IP address through the portal
13+
# Connect to a VM via specified private IP address
1414

1515
IP-based connection lets you connect to your on-premises, non-Azure, and Azure virtual machines via Azure Bastion over ExpressRoute or a VPN site-to-site connection using a specified private IP address. The steps in this article show you how to configure your Bastion deployment, and then connect to an on-premises resource using IP-based connection. For more information about Azure Bastion, see the [Overview](bastion-overview.md).
1616

@@ -48,7 +48,7 @@ Before you begin these steps, verify that you have the following environment set
4848

4949
1. Select **Apply** to apply the changes. It takes a few minutes for the Bastion configuration to complete.
5050

51-
## Connect to VM
51+
## Connect to VM - Azure portal
5252

5353
1. To connect to a VM using a specified private IP address, you make the connection from Bastion to the VM, not directly from the VM page. On your Bastion page, select **Connect** to open the Connect page.
5454

@@ -62,6 +62,29 @@ Before you begin these steps, verify that you have the following environment set
6262

6363
1. Select **Connect** to connect to your virtual machine.
6464

65+
## Connect to VM - native client
66+
67+
You can connect to VMs using a specified IP address with native client via SSH, RDP, or tunnelling. Note that this feature does not support Azure Active Directory authentication or custom port and protocol at the moment. To learn more about configuring native client support, see [Connect to a VM - native client](connect-native-client-windows.md). Use the following commands as examples:
68+
69+
**RDP:**
70+
71+
```azurecli
72+
az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>
73+
```
74+
75+
**SSH:**
76+
77+
```azurecli
78+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-addres "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
79+
```
80+
81+
**Tunnel:**
82+
83+
```azurecli
84+
az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
85+
```
86+
87+
6588
## Next steps
6689

67-
Read the [Bastion FAQ](bastion-faq.md) for additional information.
90+
Read the [Bastion FAQ](bastion-faq.md) for additional information.

0 commit comments

Comments
 (0)