6

I have installed things on my Linux VM on Windows Azure and now I need a clean server again, is there any chance of easy reinstall (for clean Linux again) rather than having to create the VM, cloud and endpoints all over again?

5

There's no mechanism to re-pave an existing VM. But...

At any time, you can create a new VM from a gallery image (such as one of the baseline Linux images - Ubuntu, CentOS, etc). If you have an existing cloud service (xyz.cloudapp.net), you can simply place your new, clean VM in that cloud service. You'll still need to include endpoint-mapping, but this should be a trivial part of the creation process (especially if you're using PowerShell or the CLI to create the VM). The new VM will have a new VHD (stored in its own blob, independent of the original VM's vhd).

You can also delete your old VM (and related vhd) without deleting the existing Cloud Service.

Just note: If you had attached disks on your original VM (and assuming they had data or files you wanted to keep), you should detach them first (without deleting them). Then, after your new VM is created, you can re-attach those to the new VM.

1

redeploy

you have redeploy option, which will install OS again

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.