Reputation: 2135
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
Upvotes: 3
Views: 3780
Reputation: 20576
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.
Upvotes: 7