How to setup S2S VPN to login VMs in 2 different Azure Resource Groups, but each in individual Subnet having same private IP range?

Anthony TSANG 41 Reputation points
2021-08-14T16:55:27.04+00:00

I have 2 existing Azure Resource Groups. The existing Subnets in the 2 Resource Groups have the same private IP range. The IIS VMs in the 2 Resource Group are also having the same private IP but with different public IPs as websites. They work fine. But I need to setup S2S VPN to login both VMs via RDP. I can successfully login the VM in 1 Resource Group already. But the VM in the 2nd Resource Group is also having the same private IP. How to connect the VPN to that VM without changing its private IP?

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.
1,401 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,197 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 98,621 Reputation points MVP
    2021-08-14T18:57:19.597+00:00

    Hi @Anthony TSANG ,

    please take a look here: https://learn.microsoft.com/en-us/azure/vpn-gateway/nat-howto
    NAT on Azure VPN Gateways (still in preview) should be the solution for your requirement.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

0 additional answers

Sort by: Most helpful