Is it possible to create clone/image from a resource manager based Azure VM?

大兔子大兔子 提交于 2019-12-23 19:40:30

问题


I have a working resource manager based VM. (Ubuntu) Now I customized it in several way, and would like to have it as a start template in the future when creating new VMs.

Basically I would like to as easily create a new VM from my customized VM as I created it from initially via Azure portal by picking a LAMP VM by bitnami.

Please note, I am aware the Linux/Windows provisioning/deprovisioning process. In fact I can accept and use scenario where the machine was not deprovisioned and simply "cloned" (if this is possible at all in resource manager based VMs)

Unfortunately all articles I've found (even 2016 "updated" ones) is about "classic" VMs

So this question is about my doubt is it possible at all with NON "classic" VMs?

For example for my classic VMs there is a Capture button on Azure Portal, but my new resource manager based VM has no capture button.

I am aware that many things are not available in the portal GUI, so doing it with Azure Powershell also fine by me.


回答1:


The process for cloning an ARM Vm is much less contrived (or more so, depending on your view!) than an ASM (Classic) Vm.

Instead of having a blob, that a disk attaches to, that Vm attaches to as was the way in ASM, in ARM the blob is the disk and the VM reads it directly from storage.

In this case if you want to clone a VM you simply need to copy the disk to a new location, and build a machine from there.

You can use Start-AzureStorageBlobCopy to copy the disk (if running Windows, you can run sysprep beforehand)



来源:https://stackoverflow.com/questions/35841458/is-it-possible-to-create-clone-image-from-a-resource-manager-based-azure-vm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!