[英]Reset/reprovision the operating system of a virtual machine in Azure?
I want to know that can we reset/reprovision the operating system of a virtual machine in Azure?我想知道我们可以在 Azure 中重置/重新配置虚拟机的操作系统吗? For example, let's say I created a ubuntu virtual machine, installed docker and some more stuff on it.
例如,假设我创建了一个 ubuntu 虚拟机,安装了 docker 和其他一些东西。 Now I want to just get the factory ubuntu environment (the factory installation which was before installing docker and stuff).
现在我只想获得工厂 ubuntu 环境(在安装 docker 之前的工厂安装)。 Is it possible?
可能吗? (I don't want to delete and recreate the VM).
(我不想删除并重新创建 VM)。 I explored a lot but couldn't found any way to do this.
我探索了很多,但找不到任何方法来做到这一点。
You can use the VM Backup and create a backup at the point that you do not install the docker and stuff.您可以使用 VM 备份并在不安装 docker 之类的地方创建备份。 Then restores the VM to the point via the backup.
然后通过备份将 VM 还原到该点。 If you do not create the backup, then you cannot restore the VM.
如果不创建备份,则无法还原 VM。 The only thing you can do is to delete and recreate the VM to get the factory ubuntu environment.
您唯一能做的就是删除并重新创建 VM 以获得工厂 ubuntu 环境。 Take a look at the Azure VM Backup to understand how does it work.
查看Azure VM Backup以了解其工作原理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.