Hi Andrea,
Yes, there is a solution to migrate an on-premises VNET to Azure using the same IP addresses. The solution is called subnet extension, which allows you to extend your on-premises subnets to Azure using a layer-3 overlay network-based solution. This solution uses an overlay technology such as VXLAN to extend the layer-2 network using a layer-3 overlay network. The same subnet exists on both sides, that is, Azure and on-premises, and the IP addresses from the subnet are assigned to VMs on Azure and on-premises. Both Azure and on-premises have an NVA inserted in their networks. When a VM in Azure tries to talk to a VM in the on-premises network, the Azure NVA captures the packet, encapsulates it, and sends it over VPN/Express Route to the on-premises network. The on-premises NVA receives the packet, decapsulates it, and forwards it to the intended recipient in its network. The return traffic uses a similar path and logic.
However, it's important to note that subnet extension is not a recommended practice in general, and you should only extend your subnets if it is necessary. In cases where you do extend your subnets, you should try to make it an intermediate step. With time, you should try to renumber applications in your on-premises network and migrate them to Azure.
For more information, you can refer to the following resources:
- Subnet extension
- Architectural approaches for networking in multitenant solutions - Key considerations and requirements
Kindly accept answer if it helps
Please let me know if any further questions
Thanks
Deepanshu