Hi Vidya Natarajan,
Thank you for reaching out to the Microsoft Q&A forum.
VM access through Bastion -> Vhub -> VM fails
- Azure Bastion does not natively support routing through Virtual WAN hubs for native client tunnels (az network bastion tunnel).
Reference link: https://free.blessedness.top/en-us/azure/bastion/bastion-faq
Reference link for connecting via IP addresss for bastion:https://free.blessedness.top/en-us/azure/bastion/connect-ip-address
When you use the CLI tunnel feature, Bastion expects direct VNet peering or local VNet connectivity to the target VMVirtual WAN introduces route tables and routing intent, which can break Bastion’s TCP forwarding because Bastion traffic is not automatically propagated through the vHub routes for this scenario.
Portal-based RDP works (it uses Bastion’s web socket over HTTPS from the portal, which is handled differently).
CLI tunnel fails (it relies on TCP forwarding through Bastion, which doesn’t traverse vHub routing properly).
RDP via CLI
az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>
For Tunnel via CLI
:az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
Hope you find this answer helpful, if yes, please “up-vote” & accept for the information provided , this can be beneficial to community members.
Kindly let us know if you have any additional questions.
Thanks
