Skip to content

Commit 76ab07c

Browse files
authored
Merge pull request #108254 from isamorris/patch-3
Update connect-native-client-windows.md
2 parents 46ff4de + 4b300f3 commit 76ab07c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

articles/bastion/connect-native-client-windows.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,35 @@ This connection supports file upload from the local computer to the target VM. F
220220
ssh <username>@127.0.0.1 -p <LocalMachinePort>
221221
```
222222

223+
## <a name="connect-IP"></a>Connect to VM - IP Address
224+
225+
This section helps you connect to your on-premises, non-Azure, and Azure virtual machines via Azure Bastion using a specified private IP address from native client. You can replace `--target-resource-id` with `--target-ip-address` in any of the above commands with the specified IP address to connect to your VM.
226+
227+
> [!Note]
228+
> This feature does not support support Azure AD authentication or custom port and protocol at the moment. For more information on IP-based connection, see [Connect to a VM - IP address](connect-ip-address.md).
229+
230+
Use the following commands as examples:
231+
232+
233+
**RDP:**
234+
235+
```azurecli
236+
az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>
237+
```
238+
239+
**SSH:**
240+
241+
```azurecli
242+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-addres "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
243+
```
244+
245+
**Tunnel:**
246+
247+
```azurecli
248+
az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
249+
```
250+
251+
223252
## Next steps
224253

225254
[Upload or download files](vm-upload-download-native.md)

0 commit comments

Comments
 (0)