Skip to content

Commit e8b0b86

Browse files
authored
Update connect-native-client-windows.md
add ip connect
1 parent 6a23904 commit e8b0b86

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,29 @@ 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. Note that this feature does not support support AAD 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). Use the following commands as examples:
226+
227+
**RDP:**
228+
229+
```azurecli
230+
az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>
231+
```
232+
233+
**SSH:**
234+
235+
```azurecli
236+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-addres "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
237+
```
238+
239+
**Tunnel:**
240+
241+
```azurecli
242+
az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
243+
```
244+
245+
223246
## Next steps
224247

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

0 commit comments

Comments
 (0)