Connect to Azure VM (which is in another vNet) via Point to Site Azure VPN

Hemang Vyas 1 Reputation point
2022-11-04T19:56:23.073+00:00

I have vNet1 (in south central US region) with Virtual network gateway configured with Point to Site VPN. Azure VM has been deployed within the same vNet (all public access blocked.) i am able to access the Azure VM via Azure VPN.

I have another Azure VM (all public access blocked.) deployed in vNet2 (in north central US region), i just wanted to user can connect to Azure VPN in vnet1 and able to access the Azure VM in vNet2 from their home location.

I am able to access the Azure VM in vNet1 via VPN but unable to connect to Azure VM in vNet2. I have configured vNet to vNet peering (along with gateway transit enable) but unable to access the Azure SQL in vNet2. also set up another Virtual network Gateway in vNet2 and set up vNet to vNet connection but still unable to access Azure VM in vNet2.

is this possible to get connect to one vnet via vpn and able to access azure VM which is in another vnet?

any help will be highly appreciated.

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
969 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. msrini-MSFT 6,856 Reputation points Microsoft Employee
    2022-11-05T08:35:11.477+00:00

    Hi,

    Yes, it is possible. You will need to delete the VNET to VNET peering between VNET 1 and VNET 2 and you will need to create a Site to Site tunnel between those 2 gateways.

    In the Local Network Gateway of the VPN Gateway 1, you should add address of VNET 2 and its P2S address. Similarly, in the Local Network Gateway of the VPN gateway 2, you will need to add the address space of VNET 1 and its P2S address.

    Regards,
    Karthik Srinivas

    0 comments No comments