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

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

    Hi @Anthony TSANG ,

    please take a look here:
    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)

    Andreas Baumgarten

    0 comments No comments

0 additional answers

Sort by: Most helpful