Cloning and running Azure VM with different Internal IP address without impacting the existing Production VM?

Thanabalan Govindasamy 0 Reputation points
2024-07-03T03:44:32.96+00:00

Hi All,

I need to know what's the steps that I need to follow successfully to clone the Azure VM into same Subscription with the different IP address (Private IP only)

As you can see the if we clone the VM is using VNet with the Internal IP assigned it will be same, How to clone it successfully to same Subscription, and then retain the different IP address, and start it up without impacting the Production VM?

Please advise.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,476 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 25,611 Reputation points
    2024-07-03T05:20:08.8966667+00:00

    Hello Thanabalan Govindasamy

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    1.clone the Azure VM into same Subscription with the different IP address
    -Create a snapshot of the source VM's OS disk.

    -Create a new managed disk from the snapshot.

    -Create a new VM from the managed disk. When creating the new VM, make sure to specify a different private IP address for the new VM.

    -Once the new VM is created, start it and connec to it.

    -Once you are connected to the new VM, you may need to update the network configuration to reflect the new IP address.

    2.clone it successfully to different Subscription, and then retain the different IP address

    -Create a snapshot of the source VM's OS disk. Copy/Move the snapshot to destination subscription.

    -Create a new managed disk from the snapshot in the destination subscription.

    -Create a new virtual network in the destination subscription. This virtual network should have a different IP address range than the source virtual network.

    -Create a new subnet in the new virtual network. This subnet should have a different IP address range than the source subnet.

    -Create a new network interface in the destination subscription. When creating the network interface, specify the new virtual network and subnet created previously.

    -Create a new VM in the destination subscription. When creating the new VM, specify the new managed disk and the new network interface that you created previously. Make sure to specify a different private IP address for the new VM.

    -Once the new VM is created, start it. Once you are connected to the new VM, you may need to update the network configuration to reflect the new IP address.

    Note: It will be good if you can Stop the source VM that you want to clone. This will ensure that the cloned VM is consistent with the source VM. This will minimize the risk of data loss or corruption.

    Ref: https://video2.skills-academy.com/en-us/azure/virtual-network/ip-services/virtual-network-network-interface-addresses?tabs=nic-address-portal#change-ip-address-settings

    Hope this helps.