Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to understand about the address space overlap constraints and best practises in Azure.
From your verbatim,
- I take it that you are planning to connect mainVnet and OnPremises.
- Also, I assume that you are not planning to connect mainVNet and asr-vnet.
- Please let me know if my understanding is incorrect.
Having overlapping address space in a single Network (Azure + OnPrem which are connected) is not a best-practise and is not recommended.
However, since you are planning to connect only mainVnet and OnPremises, I do not see any challenges/scenario where you would end up with an Overlapping Address Range.
Your scenario is illustrated here : Hybrid resources: full failover.
- In the asr-vnet, you only provision gateways but do not establish a connection before failover.
-
- And After failover, you can delete/disconnect the original connection object and create a new connection with the asr-vnet.
-
Kindly let us know if the below helps or you need further assistance on this issue.
P.S:
In case you have a requirement to connect overlapping IP Addresses across Azure S2S, you can consider NAT on VPN Gateway
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.