Tutorial - Create a Microsoft Entra Domain Services Managed Domain - Microsoft Entra ID

rw-book-cover

In this article

  1. Prerequisites
  2. Sign in to the Microsoft Entra admin center
  3. Create a managed domain
  4. Deploy the managed domain
  5. Update DNS settings for the Azure virtual network
  6. Enable user accounts for Domain Services
  7. Next steps

Microsoft Entra Domain Services provides managed domain services such as domain join, group policy, LDAP, Kerberos/NTLM authentication that is fully compatible with Windows Server Active Directory. You consume these domain services without deploying, managing, and patching domain controllers yourself. Domain Services integrates with your existing Microsoft Entra tenant. This integration lets users sign in using their corporate credentials, and you can use existing groups and user accounts to secure access to resources.

You can create a managed domain using default configuration options for networking and synchronization, or manually define these settings. This tutorial shows you how to use default options to create and configure a Domain Services managed domain using the Microsoft Entra admin center.

In this tutorial, you learn how to:

If you don't have an Azure subscription, create an account before you begin.

Prerequisites

To complete this tutorial, you need the following resources and privileges:

Although not required for Domain Services, it's recommended to configure self-service password reset (SSPR) for the Microsoft Entra tenant. Users can change their password without SSPR, but SSPR helps if they forget their password and need to reset it.

Important

You can't move the managed domain to a different subscription, resource group, or region after you create it. Take care to select the most appropriate subscription, resource group, and region when you deploy the managed domain.

Sign in to the Microsoft Entra admin center

In this tutorial, you create and configure the managed domain using the Microsoft Entra admin center. To get started, first sign in to the Microsoft Entra admin center.

Create a managed domain

To launch the Enable Microsoft Entra Domain Services wizard, complete the following steps:

  1. On the Microsoft Entra admin center menu or from the Home page, search for Domain Services, then choose Microsoft Entra Domain Services.
  2. On the Microsoft Entra Domain Services page, select Create Microsoft Entra Domain Services.

Screenshot of how to create a managed domain.
3. Select the Azure Subscription in which you would like to create the managed domain.
4. Select the Resource group to which the managed domain should belong. Choose to Create new or select an existing resource group.

When you create a managed domain, you specify a DNS name. There are some considerations when you choose this DNS name:

Tip

If you create a custom domain name, take care with existing DNS namespaces. Although it's supported, you may want to use a domain name separate from any existing Azure or on-premises DNS namespace.

For example, if you have an existing DNS name space of contoso.com, create a managed domain with the custom domain name of dscontoso.com. If you need to use secure LDAP, you must register and own this custom domain name to generate the required certificates.

You may need to create some additional DNS records for other services in your environment, or conditional DNS forwarders between existing DNS name spaces in your environment. For example, if you run a webserver that hosts a site using the root DNS name, there can be naming conflicts that require additional DNS entries.

In these tutorials and how-to articles, the custom domain of dscontoso.com is used as a short example. In all commands, specify your own domain name.

The following DNS name restrictions also apply:

Complete the fields in the Basics window of the Microsoft Entra admin center to create a managed domain:

  1. Enter a DNS domain name for your managed domain, taking into consideration the previous points.
  2. Choose the Azure Region in which the managed domain should be created. If you choose a region that supports Azure Availability Zones, the Domain Services resources are distributed across zones for additional redundancy.

Tip

Availability Zones are unique physical locations within an Azure region. Each zone is made up of one or more datacenters equipped with independent power, cooling, and networking. To ensure resiliency, there's a minimum of three separate zones in all enabled regions.

There's nothing for you to configure for Domain Services to be distributed across zones. The Azure platform automatically handles the zone distribution of resources. For more information and to see region availability, see What are Availability Zones in Azure?.
3. The SKU determines the performance and backup frequency. You can change the SKU after the managed domain has been created if your business demands or requirements change. For more information, see Domain Services SKU concepts.

For this tutorial, select the Standard SKU. The Basics window should look like this screenshot:

Screenshot of Basics configuration page for a managed domain.

To quickly create a managed domain, you can select Review + create to accept additional default configuration options. The following defaults are configured when you choose this create option:

Note

You shouldn't use public IP addresses for virtual networks and their subnets due to the following issues:

It is strongly recommended to use private IP addresses. If you use a public IP, ensure you are the owner/dedicated user of the chosen IPs in the public range you chose.

Select Review + create to accept these default configuration options.

Deploy the managed domain

On the Summary page of the wizard, review the configuration settings for your managed domain. You can go back to any step of the wizard to make changes. To redeploy a managed domain to a different Microsoft Entra tenant in a consistent way using these configuration options, you can also Download a template for automation.

  1. To create the managed domain, select Create. A note is displayed that certain configuration options such as DNS name or virtual network can't be changed once the Domain Services managed has been created. To continue, select OK.

Screenshot of configuration options for managed domain.
2. The process of provisioning your managed domain can take up to an hour. A notification is displayed in the portal that shows the progress of your Domain Services deployment.
3. When the managed domain is fully provisioned, the Overview tab shows the domain status as Running. Expans Deployment details for links to resources such as the virtual network and network resource group.

Screenshot of deployment details for a managed domain.

Important

The managed domain is associated with your Microsoft Entra directory. During the provisioning process, Domain Services creates two Enterprise Applications named Domain Controller Services and AzureActiveDirectoryDomainControllerServices in the Microsoft Entra directory. These Enterprise Applications are needed to service your managed domain. Don't delete these applications.

Update DNS settings for the Azure virtual network

With Domain Services successfully deployed, now configure the virtual network to allow other connected VMs and applications to use the managed domain. To provide this connectivity, update the DNS server settings for your virtual network to point to the two IP addresses where the managed domain is deployed.

  1. The Overview tab for your managed domain shows some Required configuration steps. The first configuration step is to update DNS server settings for your virtual network. Once the DNS settings are correctly configured, this step is no longer shown.

The addresses listed are the domain controllers for use in the virtual network. In this example, those addresses are 10.0.1.4 and 10.0.1.5. You can later find these IP addresses on the Properties tab.

Screenshot of Overview page for a managed domain.
2. To update the DNS server settings for the virtual network, select the Configure button. The DNS settings are automatically configured for your virtual network.

Tip

If you selected an existing virtual network in the previous steps, any VMs connected to the network only get the new DNS settings after a restart. You can restart VMs using the Microsoft Entra admin center, Microsoft Graph PowerShell, or the Azure CLI.

Enable user accounts for Domain Services

To authenticate users on the managed domain, Domain Services needs password hashes in a format that's suitable for NT LAN Manager (NTLM) and Kerberos authentication. Microsoft Entra ID doesn't generate or store password hashes in the format that's required for NTLM or Kerberos authentication until you enable Domain Services for your tenant. For security reasons, Microsoft Entra ID also doesn't store any password credentials in clear-text form. Therefore, Microsoft Entra ID can't automatically generate these NTLM or Kerberos password hashes based on users' existing credentials.

Note

Once appropriately configured, the usable password hashes are stored in the managed domain. If you delete the managed domain, any password hashes stored at that point are also deleted.

Synchronized credential information in Microsoft Entra ID can't be re-used if you later create a managed domain - you must reconfigure the password hash synchronization to store the password hashes again. Previously domain-joined VMs or users won't be able to immediately authenticate - Microsoft Entra ID needs to generate and store the password hashes in the new managed domain.

Microsoft Entra Connect cloud sync is not supported with Domain Services. On-premises users need to be synced using Microsoft Entra Connect in order to be able to access domain-joined VMs. For more information, see Password hash sync process for Domain Services and Microsoft Entra Connect.

The steps to generate and store these password hashes are different for cloud-only user accounts created in Microsoft Entra ID versus user accounts that are synchronized from your on-premises directory using Microsoft Entra Connect.

A cloud-only user account is an account that was created in your Microsoft Entra directory by using either the Microsoft Entra admin center or PowerShell. These user accounts aren't synchronized from an on-premises directory.

In this tutorial, let's work with a basic cloud-only user account. For more information on the additional steps required to use Microsoft Entra Connect, see Synchronize password hashes for user accounts synced from your on-premises AD to your managed domain.

Tip

If your Microsoft Entra directory has a combination of cloud-only and synced users, you need to complete both sets of steps.

For cloud-only user accounts, users must change their passwords before they can use Domain Services. This password change process causes the password hashes for Kerberos and NTLM authentication to be generated and stored in Microsoft Entra ID. The account isn't synchronized from Microsoft Entra ID to Domain Services until the password is changed. Either expire the passwords for all cloud users in the tenant who need to use Domain Services, which forces a password change on next sign-in, or instruct cloud users to manually change their passwords. For this tutorial, let's manually change a user password.

Before a user can reset their password, the Microsoft Entra tenant must be configured for self-service password reset.

To change the password for a cloud-only user, the user must complete the following steps:

  1. Go to the Microsoft Entra ID Access Panel page at https://myapps.microsoft.com.
  2. In the top-right corner, select your name, then choose Profile from the drop-down menu.

Screenshot of how to select a profile.
3. On the Profile page, select Change password.
4. On the Change password page, enter your existing (old) password, then enter and confirm a new password.
5. Select Submit.

It takes a few minutes after you've changed your password for the new password to be usable in Domain Services and to successfully sign in to computers joined to the managed domain.

Next steps

In this tutorial, you learned how to:

Before you domain-join VMs and deploy applications that use the managed domain, configure an Azure virtual network for application workloads.

Configure Azure virtual network for application workloads to use your managed domain