1

I am trying to duplicate a Linux virtual machine I have in Azure (Not Classic VM).

I went through the following documentation: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image

However, I am still not sure about the Deprovision part. I know I will not be able to access to the old VM while deploying the new image of the current VM. The question is, will I be able to access to the old VM after the deployment and will the files and data will be deleted on the old VM? if so how can I create a new image without deleting the files and data on old VM?

  • By default, after we capture this VM, this process deletes the original virtual machine after it's captured. we can't access to the old VM, prepare will not delete files and data from the image. – Jason Ye Aug 11 '17 at 1:01
0

will I be able to access to the old VM after the deployment and will the files and data will be deleted on the old VM?

After the deployment completed, we can't login to this VM. we can use this image to create new VMs. The files and data will not be delete. After we create new VM, we can find files and data in it.

if so how can I create a new image without deleting the files and data on old VM?

If you want to create a new image and want to keep this VM, we should backup this VM's VHD (copy and save this VHD with a different name). After we create the new image, we use the copy VHD to create a VM, in this way, we can login the original VM.

About create Azure VM with existing VHD and existing Vnet, we can use this template to create it.

  • Can I create the new Azure VM with existing VHD directly through Azure GUI? or only I need to use the mentioned template for this? – Hussain Mahfoodh Aug 11 '17 at 21:08
  • for now,we can not use azure portal to create vm by vhd,we should use powershell or template do it. – Jason Ye Aug 11 '17 at 21:17
  • Please feel free to let me know if you need further assistance, also if it helpful, please don't forget to accept it as an answer, thanks:) – Jason Ye Aug 15 '17 at 1:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.