How to join VM to other VM which is already domain controller

sns 9,226 Reputation points
2022-08-07T13:15:25.28+00:00

I have azure VM Created with name VMone, VMOne which configured as domain controller, while configuring for example I have chosen domain xyz.com as forest root domain. so this VMone machine is now domain controller with domain name xyz.com

I created a one more VM with Name VMtwo, so I want to join this VM (VMtwo) to VMone, what option I should choose to make this to join to VMone Domain, How it can be achieved. Please help me.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,289 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,996 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 98,626 Reputation points MVP
    2022-08-13T22:11:33.207+00:00

    Hi @sns ,

    this question is related to you other question here?
    https://learn.microsoft.com/en-us/answers/questions/966208/2-different-vms-are-in-different-virtual-network.html

    If so the solution/answer is: You need to configure DNS properly for all vNets/Subnets and VMs.
    This way the VM2 is able to resolve the name of a domain controller of the AD.
    The error message in your screenshots confirms this as well.
    In the other thread the solution for a proper setup of the DNS is described.

    ----------

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

    Regards
    Andreas Baumgarten

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Gary Reynolds 9,396 Reputation points
    2022-08-11T10:10:51.637+00:00

    Hi @sns

    On VMtwo, set the IP DNS configuration to point to the IP address of VMone
    On VMtwo, using the system Properties dialog, join it to xyz.com domain

    230393-image.png

    Gary.


  2. SChalakov 10,271 Reputation points MVP
    2022-08-11T11:55:41.73+00:00

    Hi,

    this is also a nice one as it describes all the preprequesites and shows also a way to do this using Powershell:

    How to Add a Computer to a Domain (GUI and PowerShell)
    https://adamtheautomator.com/add-computer-to-domain/

    ----------

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

    0 comments No comments