title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.component | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Join a Windows Server VM to Azure Active Directory Domain Services | Microsoft Docs |
Join a Windows Server virtual machine to a managed domain using Azure Resource Manager templates. |
active-directory-ds |
eringreenlee |
mtillman |
curtand |
4eabfd8e-5509-4acd-86b5-1318147fddb5 |
active-directory |
domain-services |
identity |
na |
na |
conceptual |
06/22/2018 |
ergreenl |
This article shows you how to join a Windows Server virtual machine to an Azure AD Domain Services managed domain using Resource Manager templates.
[!INCLUDE active-directory-ds-prerequisites.md]
To perform the tasks listed in this article, you need:
- A valid Azure subscription.
- An Azure AD directory - either synchronized with an on-premises directory or a cloud-only directory.
- Azure AD Domain Services must be enabled for the Azure AD directory. If you haven't done so, follow all the tasks outlined in the Getting Started guide.
- Ensure that you have configured the IP addresses of the managed domain as the DNS servers for the virtual network. For more information, see how to update DNS settings for the Azure virtual network
- Complete the steps required to synchronize passwords to your Azure AD Domain Services managed domain.
You can use either of the following options to perform the steps outlined in this document:
- Azure PowerShell: Install and configure
- Azure CLI: Install and configure
Quick start template name: 201-vm-domain-join
To deploy a Windows Server virtual machine and join it to a managed domain, perform the following steps:
- Navigate to the quick start template.
- Click Deploy to Azure.
- In the Custom deployment page, provide the required information to provision the virtual machine.
- Select the Azure subscription in which to provision the virtual machine. Pick the same Azure subscription in which you have enabled Azure AD Domain Services.
- Choose an existing Resource group or create a new one.
- Pick a Location in which to deploy the new virtual machine.
- In Existing VNET Name, specify the virtual network in which you have deployed your Azure AD Domain Services managed domain.
- In Existing Subnet Name, specify the subnet within the virtual network where you would like to deploy this virtual machine. Do not select the gateway subnet in the virtual network. Also, do not select the dedicated subnet in which your managed domain is deployed.
- In DNS Label Prefix, specify the hostname for the virtual machine being provisioned. For example, 'contoso-win'.
- Select the appropriate VM Size for the virtual machine.
- In Domain To Join, specify the DNS domain name of your managed domain.
- In Domain Username, specify the user account name on your managed domain that should be used to join the VM to the managed domain.
- In Domain Password, specify the password of the domain user account referred to by the 'domainUsername' parameter.
- Optional: You can specify an OU Path to a custom OU, in which to add the virtual machine. If you do not specify a value for this parameter, the virtual machine is added to the default AAD DC Computers OU on the managed domain.
- In the VM Admin Username field, specify a local administrator account name for the virtual machine.
- In the VM Admin Password field, specify a local administrator password for the virtual machine. Provide a strong local administrator password for the virtual machine to protect against password brute-force attacks.
- Click I agree to the terms and conditions stated above.
- Click Purchase to provision the virtual machine.
Warning
Handle passwords with caution. The template parameter file contains passwords for domain accounts as well as local administrator passwords for the virtual machine. Ensure you do not leave this file lying around on file shares or other shared locations. We recommend you dispose of this file once you are done deploying your virtual machines.
After the deployment completes successfully, your newly provisioned Windows virtual machine is joined to the managed domain.
Quick start template: 201-vm-domain-join-existing
To join an existing Windows Server virtual machine to a managed domain, perform the following steps:
- Navigate to the quick start template.
- Click Deploy to Azure.
- In the Custom deployment page, provide the required information to provision the virtual machine.
- Select the Azure subscription in which to provision the virtual machine. Pick the same Azure subscription in which you have enabled Azure AD Domain Services.
- Choose an existing Resource group or create a new one.
- Pick a Location in which to deploy the new virtual machine.
- In the VM List field, specify the names of the existing virtual machines to be joined to the managed domain. Use a comma to separate individual VM names. For example, contoso-web, contoso-api.
- In Domain Join User Name, specify the user account name on your managed domain that should be used to join the VM to the managed domain.
- In Domain Join User Password, specify the password of the domain user account referred to by the 'domainUsername' parameter.
- In Domain FQDN, specify the DNS domain name of your managed domain.
- Optional: You can specify an OU Path to a custom OU, in which to add the virtual machine. If you do not specify a value for this parameter, the virtual machine is added to the default AAD DC Computers OU on the managed domain.
- Click I agree to the terms and conditions stated above.
- Click Purchase to provision the virtual machine.
Warning
Handle passwords with caution. The template parameter file contains passwords for domain accounts as well as local administrator passwords for the virtual machine. Ensure you do not leave this file lying around on file shares or other shared locations. We recommend you dispose of this file once you are done deploying your virtual machines.
After the deployment completes successfully, the specified Windows virtual machines are joined to the managed domain.