문제

Is there a simple method of cloning an Azure VM? So far I have found that you can "Deprovision" a VM, run "Sysprep" on it, and then "capture" an image. More on that here. It requires you to shutdown the Virtual Machine.

What I had been hoping for was a simple "Clone VM" that doesn't require a machine shutdown or (if it does require a shutdown) will at least do it via an automated process, automatically bringing the VM back up as soon as the "capture" is complete. Is there a way to do this, preferably via the Azure management console?

도움이 되었습니까?

해결책

You can automate the process of taking back up of VM on azure by use of Powershell. The following command can be used to perform this operation -

Start-CopyAzureStorageBlob -SrcContainer vhds -SrcBlob $blobName -DestContainer vhds -DestBlob $blobName -Context $sourceContext -DestContext $destContext -Force

The whole process is mentioned at the link - [http://blogs.msdn.com/b/microsoft_press/archive/2014/01/29/from-the-mvps-copying-a-virtual-machine-from-one-windows-azure-subscription-to-another-with-powershell.aspx?Redirected=true][1]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top