Running domain controller inside azure vm and domain join a vm

Jayakrishna Gunnam 21 Reputation points
2020-09-27T05:31:51.977+00:00

hello team,

I have created a vm in azure with windows 2012 image and i have installed and configured domain controller inside the vm

so i want to create a new vm and want to add the vm to that domain, so it possible to run a domain controller inside the azure vm and domain join a vm if yes. what are the steps i need to fallow
i would request you to please provide me with the steps instead of providing a doc, i have already checked all the doc but couldn't find exact steps.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
0 comments No comments
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,946 Reputation points Microsoft Employee Moderator
    2020-10-05T06:42:14.437+00:00

    @Jayakrishna Gunnam Apologies for the delay in response and all the inconvienince caused because of the issue.

    Below are the steps you need to follow:

    • Create a VM with windows 2012

    30035-image.png

    • Promote it as a Domain Controller. Also install the DNS role in the same server (this is recommended), DNS role can be on another VM too (in the same network)

    30113-image.png

    30122-image.png

    30086-image.png

    30000-image.png

    30088-image.png

    30141-image.png

    30090-image.png

    30151-image.png

    • Create a VM with windows 10 or any server image in same Vnet. Also you can associate same NSG for both which make task easier.
    • In Azure portal in Client machine VM go to Networking >Network Interface as below:

    30064-image.png

    Click on DNS Server setting and add Custom and add ip of your DC or other VM which you promoted as DNS server:

    29987-image.png.

    Save and reboot both. You might need to download RDP file for both VM again.

    • Ensure there is connectivity both ways between the DC and the client
    • The client should be able to resolve the DC
    • You should allow firewall rules for connectivity between DC and client
      • To join Client machine to domain follow below steps:
      • On the Start screen, type Control Panel, and then press ENTER.
      • Navigate to System and Security, and then click System.
      • Under Computer name, domain, and workgroup settings, click Change settings.
      • On the Computer Name tab, click Change.
      • Under Member of, click Domain, type the name of the domain that you wish this computer to join, and then click OK.
    • Click OK, and then restart the computer.
    • once provided, the client should join the domain

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,946 Reputation points Microsoft Employee Moderator
    2020-09-28T06:01:19.47+00:00

    @Jayakrishna Gunnam Apologies for the delay in response and all the inconvenience caused because of the issue.

    You can achieve this using ADDS. AD DS can run on an Azure virtual machine (VM) in the same way it runs in many on-premises instances. Many customers find this helpful when creating a lab or preparing to deploy domain controllers in Azure.

    You can refer to this as well for more information.

    Moreover you can refer to this and this as well for more insights including on-prem components as well.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics


  2. JayakrishnaGunnam 1 Reputation point
    2020-10-05T08:01:33.833+00:00

    Thank you for your response, it helped.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.