Welcome to Microsoft Q&A community forum!
Extended network for Azure enables you to stretch an on-premises subnet into Azure to let on-premises virtual machines keep their original on-premises private IP addresses when migrating to Azure.
The network is extended using a bidirectional VXLAN tunnel between two Windows Server 2019 VMs acting as virtual appliances, one running on-premises and the other running in Azure, each also connected to the subnet to be extended. Each subnet that you are going to extend requires one pair of appliances. Multiple subnets can be extended using multiple pairs.
Note
Extended network for Azure should only be used for machines that cannot have their IP address changed when migrating to Azure. It is always better to change the IP address and connect it to a subnet that wholly exists in Azure, if that is an option.
there are also other solutions that you can take into consideration, I am attaching links to better evaluate if they can do for your case
https://www.italtel.com/fast-shift-an-innovative-solution-to-migrate-applications-to-cloud-azure/
Hope this helps
Cheers
Luca