简体   繁体   English

将Azure VM移动到VNET

[英]Move an Azure VM to a VNET

Is it possible to move an already created VM in Azure (different affinity group) to an existing VNET? 是否可以将Azure中已创建的VM(不同的关联组)移动到现有的VNET?

Are there commands under the hood to do this (powershell, cmdlets)? 引擎盖下是否有命令(powershell,cmdlet)?

Cheers 干杯

Currently you can't join VMs to a virtula network after they are created, you must do this during VM creation time as described here 目前,在创建之后,你不能加入虚拟机到virtula网络,则必须在描述VM创建时间做到这一点这里

What you could do is delete your Virtual Machine which will delete the VM configuration but your OS disk will still be saved at Azure Storage. 您可以做的是删除将删除VM配置的虚拟机,但您的操作系统磁盘仍将保存在Azure存储中。 After that you can create a new Virtual Machine using the saved OS disk and during the VM configuration time, you can add it to your virtual network. 之后,您可以使用保存的操作系统磁盘创建新的虚拟机,并且在VM配置期间,您可以将其添加到虚拟网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM