You have an Azure subscription with virtual networks and virtual machines (all VMs have only private IP addresses). You deployed an Azure Bastion host named Bastion1 into VNet1. Which virtual machines can you connect to through Bastion1?
Choose an answer
Tap an option to check your answer.
Correct answer: VM1 and VM2 only.
Why this is the answer
Azure Bastion allows secure RDP/SSH connectivity to virtual machines within the same virtual network or peered virtual networks. Since VM1 is in VNet1 (the same VNet as Bastion1) and VNet2 is peered with VNet1 (where VM2 resides), Bastion1 can connect to both VM1 and VM2. VM3 is in VNet3, which is not peered with VNet1, so Bastion1 cannot reach it. Therefore, only VM1 and VM2 are accessible via Bastion1.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed