An Azure service that is used to provision Windows and Linux virtual machines.
You can move an Azure VM from one virtual network (VNet) to another VNet in a different resource group, but you cannot retain the same private IP address. When moving a VM, the private IP address is not preserved during the relocation process. If you need to maintain the same private IP address, you would have to change your approach, as the private IP address will be assigned by the DHCP server in the new VNet.
If you want to move the VM without changing the private IP address, you would need to redeploy the VM in the same VNet or ensure that the new VNet has the same address space and subnet configuration as the original VNet, but this may not guarantee the same IP assignment.
References: