Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 794 Bytes

File metadata and controls

14 lines (12 loc) · 794 Bytes
author cherylmc
ms.service azure-bastion
ms.topic include
ms.date 01/28/2025
ms.author cherylmc

You can also connect to a VM private IP address, instead of the resource ID. Microsoft Entra ID authentication, and custom ports and protocols, aren't supported when using this type of connection. For more information about IP-based connections, see Connect to a VM - IP address.

Using the az network bastion tunnel command, replace --target-resource-id with --target-ip-address and the specified IP address to connect to your VM.

az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"