简体   繁体   中英

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?

Are there commands under the hood to do this (powershell, cmdlets)?

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

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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