For learning purpose, I created a Virtual Network Gateway and the configured Point to Site VPN connection. Setup the VPN connection on Azure VM, I am able a access a website and RDP another VM using it's public IP address successfully even though source VM and destination VM were in different VNets and there was no peering between them. I concluded VPN is working as expected.
Then I tried RDP Azure VM using it's private IP address and it didn't work. I remember last time, i was able to connect to Azure VM using it's Private IP address after configuring Bastion on it.
Pls help me with:
Not sure if I can connect a VM using private IP when from a Bastion host or there are some other use cases also?
How come VPN doesn't allow me to connect VM using private IP as Azure internally would have been using private IP as public IP might get changed for a resource.
Is there a way to connect to Azure VM using private IP from my laptop provided there is no VPN set up and AD is not federated.
Appreciate your insightful response, thank you !!