a·gen·tic a·gil·i·ty

Move your Azure VM to a Virtual Network

TL;DR; If you need to move an existing Azure VM to a virtual network, you cannot do it directly; you must delete the VM (keeping the disks), create a new virtual network in the correct region, and then redeploy the VM using the existing disks and attach it to the new network. This process allows your VM, such as a domain controller, to communicate with other machines in the same network. Plan your network setup before VM deployment to avoid this manual migration.

Published on
2 minute read
Image
https://nkdagility.com/resources/nTSBTp1_gBy
Subscribe

When I first completed configuring a DC in Azure for AAD integrated Release Management I did not add my virtual machine to a virtual network. And I really should have and in the usual poopyness that is servers you can’t move it. You effectively need to delete your VM leaving the disks and create a new machine definition that is correctly configured.

Move your Azure VM to a Virtual Network

First we need to configure the virtual network. Create a new virtual network in the correct region. The region should be the same as the one that you want to create the vm’s in, in my case western Europe fits that bill.

Move your Azure VM to a Virtual Network

Then the poopy part, we need to delete the Virtual Server that we created and promoted to be a domain controller. Make sure that you do not delete the disks.

Move your Azure VM to a Virtual Network

We now need to create a new VM in the correct domain. Give it a few minutes to clear the name in the tubes of Azure so that we can reuse it and then create a new VM but select the Gallery.

Move your Azure VM to a Virtual Network

In the gallery you should find a “my disks” section at the very bottom that lists all of your free floating disks that are not attached to a VM. I found that one of my servers did not exist and I had to wait a few more minutes for it to show up. Select your disks and click next…

Move your Azure VM to a Virtual Network

Give the machine the same name and pick the A0 instance size that we wanted before. We should not have to log into the server at this time.

Move your Azure VM to a Virtual Network

On the second screen we need to make sure that we select the virtual network that we just created. This will alter the other options that we can select but it is very simple to configure. On the next screen you need only pick what additional bits that you want and I only really want the VM tools for an AD box, but for other boxes you may want more.

Move your Azure VM to a Virtual Network

You should now see your domain controller as part of your virtual network that we just created. Even if we have many cloud services we can add their containing machines to this network and allow communication between them.

Useful links:

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Akaditi Logo

Akaditi

Lockheed Martin Logo

Lockheed Martin

Qualco Logo

Qualco

Lean SA Logo

Lean SA

Deliotte Logo

Deliotte

Milliman Logo

Milliman

Microsoft Logo

Microsoft

Epic Games Logo

Epic Games

Bistech Logo

Bistech

Kongsberg Maritime Logo

Kongsberg Maritime

Emerson Process Management Logo

Emerson Process Management

Illumina Logo

Illumina

Boeing Logo

Boeing

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Ericson Logo

Ericson

DFDS Logo

DFDS

Freadom Logo

Freadom

ProgramUtvikling Logo

ProgramUtvikling

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Washington Department of Transport Logo

Washington Department of Transport

Nottingham County Council Logo

Nottingham County Council

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Ghana Police Service Logo

Ghana Police Service

Philips Logo

Philips

Alignment Healthcare Logo

Alignment Healthcare

NIT A/S

Microsoft Logo

Microsoft

Capita Secure Information Solutions Ltd Logo

Capita Secure Information Solutions Ltd

Jack Links Logo

Jack Links