Reputation: 4506
I need to clone a Linux VM currently in production in Azure (it is a database server that is being used in a live environment).
I did a little research and it seems like you need to run a deprovisioning command to essentially remove things like SSH keys and other stuff which looks kinda scary to me; I saw language in other articles describing things like "after you backup, your existing VM is deleted, etc" and other things that I'm not sure about but don't seem like what I want.
Is there a safe way to just clone a box and bring it back up? In AWS it's very easy you just create an image, the box goes down for a min, and then you create a new instance from there.
Could someone just give me the steps in Azure? Do I want to click 'capture' at the top for the linux instance?
Thank you!
Upvotes: 0
Views: 771
Reputation: 13954
Is there a safe way to just clone a box and bring it back up?
According to your description, I think you are looking for Recovery services vault.
We can use recovery services vault to backup Azure VM and restore Azure VM, more information about step by step to setup recovery services vault, please refer to this link.
Do I want to click 'capture' at the top for the linux instance?
Capture used for create VM image, after captured, we can use that image to create multiple VMs. Not a backup.
it seems like you need to run a deprovisioning command to essentially remove things like SSH keys and other stuff which looks kinda scary to me; I saw language in other articles describing things like "after you backup, your existing VM is deleted, etc"
You are right, that is prepare a new image, not a backup.
If you just want to backup that VM once, maybe we can copy that VHD to storage account with different name.
Upvotes: 2