question

KentHubner-3638 avatar image
0 Votes"
KentHubner-3638 asked KentHubner-3638 commented

Best option: Delete Virtual Network or try to tie two together?

We have 3 VM's running on the same RG. I'm trying to create a VPN for them and followed the MSDN documentation to set up a VNet and VNet-GW. After multiple attempts to try and resolve why I couldn't connect to the VM via RDP, I believe it is because the VM's are already on a VNet.

The existing VNet does not have a VNet-GW and I've tried setting one up but it won't let me choose it in the options when creating a VNet-GW saying "VNet is already in use".

I guess I'm stuck at what I should do here. I've tried to delete the NIC and subnets associated with one of the VM's (the one used the least as a test), but You can't delete the NIC unless you de-attach it. So then you have to make a new one and attach it and it is an endless cycle.

Does anyone know how to get around this or am I going to have to image the VM disk to save everything and then start it all over?



azure-virtual-machines
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KentHubner-3638 ,

does the peering worked for you?

If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A


Regards
Andreas Baumgarten

0 Votes 0 ·

@KentHubner-3638 Any updates on the issue?

Please "Accept as Answer" if below helped so it can help others in community looking for help on similar topics.

Thanks

0 Votes 0 ·

I haven't had the opportunity to check on it yet. As soon as I get a day I'll try and let you know!

0 Votes 0 ·

Still pending on this. We are meeting with our IT partner to determine the best course of action. Hopefully, they will let us know the best route for configuration next week and I can let you know.

0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered KentHubner-3638 commented

@KentHubner-3638

VMs can't be moved in other vNets/subnets that easy.
But it's possible:

  • Delete the VM you want to move in another subnet - Keep the OsDisk and the Data Disks (if there are any)!

  • Create a new VM using the same existing OS Disk (and optional Data Disks) but use the new vNet/subnet

  • Done

Another option might be to create a peering between the 2 vNets:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, Andreas, I saw this shortly after as one of your other possible solutions in a similar question. I'll look into it and get back if the peering works for me!

0 Votes 0 ·