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?
2 Answers
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.
- 2,767
- 1
- 19
- 29
- 33
- 6
-
"Redploy" does not seem to have anything to do with reinstalling. It only says that it moves your VM to a new host: https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/redeploy-to-new-node-windows – Sompom Sep 21 '21 at 01:34