> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.appaloosa.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Microsoft Entra ID Enrollment for Windows Devices

Connect Appaloosa to Microsoft Entra ID so that Windows PCs enroll automatically when they join your Entra tenant. Users sign in with their work account, either during the first setup of the PC or later from the Windows settings, and the PC appears in Appaloosa with no enrollment link to share.

Entra enrollment works on its own: you do not need Windows Autopilot or Microsoft Intune. If you also want PCs to go straight from the box to your setup, add Autopilot on top, see [Autopilot Enrollment for Windows Devices](https://support.appaloosa.io/en/articles/18172937).

# Prerequisites

* A **Microsoft Entra ID P1 or P2** licence (included in Microsoft 365 Business Premium, E3 and E5) for every user who enrolls a PC.
* A **Global Administrator** account on your Entra tenant.
* An **administrator** account on Appaloosa.
* PCs on **Windows 10 or 11 Pro, Enterprise or Education**. Windows Home is not supported.
* Users allowed to join devices: in Entra, **Devices > Device settings > Users may join devices to Microsoft Entra** must be set to **All** or **Selected**.

# Step 1: Get the Appaloosa values

In Appaloosa, go to **Settings > Windows**. The **Microsoft Entra ID** card shows three values you will paste in Entra, each with a copy button:

* **MDM discovery URL**
* **MDM terms of use URL**
* **Application ID URI**

Keep this page open.

[![](https://storage.crisp.chat/users/helpdesk/website/-/b/e/7/0/be70fa8ca8dbb000/f3505da8-85e7-4a96-a332-21b5b2_52y5tc.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784234281/42ef1a5760dfd91c1ef56a1d87a7/settings_windows_page_en.png?expires=1795686300&signature=e11befdbfd3a96c79ca0b36b352b060b623d9ae33ba14788f01dd30f58e78cfb&req=dicvEst9mYNXWPMW1HO4zZHOTmau0S9JUAfmLiTXdYt0TBf%2F9uHwlbD2zFMj%0AOn16qfhagk0NF36f6BY%3D%0A)

# Step 2: Create the MDM application in Entra

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), search for **Mobility** and open **Mobility (MDM and WIP)**. Depending on your tenant, it can be named **Mobility (MDM and MAM)**.
2. Click **Add application**, then **Create your own application**. In the **Custom MDM application** panel, enter a name, for example **Appaloosa**, and click **Create**.
3. Open the new application and set **MDM user scope**:

* **All**: every user's PC enrolls in Appaloosa.
* **Some**: only members of the groups you select. Useful to start with a pilot group.
4. Paste the **MDM terms of use URL** and the **MDM discovery URL** from Appaloosa. Leave **Disable MDM enrollment when adding work or school account on Windows** on **No**, then click **Save**.

[![](https://storage.crisp.chat/users/helpdesk/website/-/7/a/5/b/7a5b2277c225a400/91ec4653-b44d-4ee6-aa0e-3458ef_1o77h9s.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784234764/3312799061169363ef6a42a2ff96/entra_03_custom_mdm_app.png?expires=1795686300&signature=b94bf2ee6699024e1ad852901095263488c13759bfbeae6d36294c6894bb4054&req=dicvEst9mYZZXfMW1HO4zSYbN1iWnKb%2FmgLhokza5C09keZdTZPUvpPrWLL2%0AKZM82%2BK9ZL7MvgSQ%2Fsc%3D%0A)

[![](https://storage.crisp.chat/users/helpdesk/website/-/3/1/6/8/31686c3b4df2ac00/7ffdf202-e38e-4b34-8e45-48f4d8_7bfmly.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784235158/537896e76f824eec7de6345aadf3/entra_04_mdm_app_settings.png?expires=1795686300&signature=e348985d72cb4570bee2db7ba9ae68cfefce8a127d9e96dd488d7767554873bb&req=dicvEst9mIBaUfMW1HO4zb5c2h89Y0cJt0l0M%2FeIiCd1N4MaW6oidBaSSvZb%0Al3tWRn1VrNhsD780n3E%3D%0A)

**Watch out if you also have Microsoft Intune:** in the same Mobility page, open **Microsoft Intune** and set its **MDM user scope** to **None**. A user cannot be in the scope of two MDM applications.

[![](https://storage.crisp.chat/users/helpdesk/website/-/1/6/3/a/163ab49dfcf0d600/d6ff1399-227d-4874-ae8b-568383_10eqfzh.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784479870/4148a0acff839c477342b9500ff9/entra_11_intune_scope_none.png?expires=1795686300&signature=ea97294dc5dd03f30cbe10bd6987235427385da6497bf8fc0728575173a9d568&req=dicvEs15lIlYWfMW1HO4zZi%2FwMakBx9X9jm0monhQTDWolzXIofuJegYH%2Bnv%0AQlNDIKTuvupYYfyPtgg%3D%0A)

# Step 3: Configure the application tokens

Still in the Appaloosa application, click **Custom MDM application settings**. This opens the app registration.

In **Token configuration**, click **Add optional claim**, choose the **Access** token type, select **ztdid** and click **Add**.

[![](https://storage.crisp.chat/users/helpdesk/website/-/d/a/3/8/da38abb435c0f000/35ee04aa-f21d-40bb-acb8-e09f1e_4svjci.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784480135/e3639db1fbe538670410d8936fef/entra_07_add_optional_claim_ztdid.png?expires=1795686300&signature=55f6659fdaf0da876642a68010504a90fe155fef43ea6eb3b1cd4e09032cb7bb&req=dicvEs12nYBcXPMW1HO4zUF7Ee1AwUfdp6OaX7GFjsr6M1e9tBC06dEaVbCY%0AXtEy%0A)

2. In **Manifest**:

* Replace the content of **identifierUris** with the **Application ID URI** from Appaloosa.
* In **optionalClaims**, add the following entry to the **accessToken** list:

[![](https://storage.crisp.chat/users/helpdesk/website/-/7/7/7/f/777fa2d7227bdc00/7610eaec-9400-418c-8435-e597a3_a9woc9.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784237674/ef81ac0bca38572728361873dabe/entra_08_manifest_identifier_uris.png?expires=1795686300&signature=6af61ef8cac2235683920504570e4f006118e4314ad527736fcf86d501972a10&req=dicvEst9modYXfMW1HO4zdtoSvH9Tj%2B2lcg9LKDnFui0APnbQXKWMYiQSPct%0AkjrmkY0Yfpw7V6owfvg%3D%0A)

```
{  
  "additionalProperties": [],  
  "essential": false,  
  "name": "deviceid",  
  "source": null  
}
```

Click **Save**. Without the **deviceid** claim, PCs cannot enroll. Once saved, **deviceid** and **ztdid** both appear in **Token configuration** with the **Access** token type (a warning icon next to deviceid is expected).

[![](https://storage.crisp.chat/users/helpdesk/website/-/b/9/6/f/b96f75757f149800/cbd3ec9a-1539-427a-a322-854dc0_vjk1eq.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784240990/0d443cc529383258e43d1c5c9d6f/entra_09_manifest_optional_claims.png?expires=1795686300&signature=e13cbab8f3348dc60ec09e2557c1d50c9c386732af8bb8f22e652609c226f8d9&req=dicvEst6nYhWWfMW1HO4zTmo9kBi25jTB%2FFn9mvGOqENHeQK3jnNTS5f8rn5%0AIwjQc%2Fz4J6DPkQFdxtU%3D%0A)

[![](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784241211/5c95bc5eb29e7c487c8d83e58de4/entra_06_token_configuration.png?expires=1795686300&signature=0ca59ae035f5d3d15ebb08ebc09b767aa9310bae853c381fe90ec21a63d7b2d2&req=dicvEst6nINeWPMW1HO4zWS9SXxI9hmnlXUjjxIkBsKmWwKdg3lbzCuWngcY%0AhqXw0mv%2BL%2Bc5D4CZBKw%3D%0A)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784241211/5c95bc5eb29e7c487c8d83e58de4/entra_06_token_configuration.png?expires=1795686300&signature=0ca59ae035f5d3d15ebb08ebc09b767aa9310bae853c381fe90ec21a63d7b2d2&req=dicvEst6nINeWPMW1HO4zWS9SXxI9hmnlXUjjxIkBsKmWwKdg3lbzCuWngcY%0AhqXw0mv%2BL%2Bc5D4CZBKw%3D%0A)

# Step 4: Fill in the identifiers in Appaloosa

In the app registration **Overview**, copy the **Application (client) ID** and the **Directory (tenant) ID**.

[![](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784241605/7ca00b0e02d19aafc030e1e36da4/entra_05_app_overview_ids.png?expires=1795686300&signature=41cdd62d6ddf057a6626e04ac96c4949268b347761d22e89af6fa43318c26fc6&req=dicvEst6nIdfXPMW1HO4zR9ZETxQASDesV5DdPWu%2BECOOPuach1VA9azcDK2%0A2vb9%0A)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784241605/7ca00b0e02d19aafc030e1e36da4/entra_05_app_overview_ids.png?expires=1795686300&signature=41cdd62d6ddf057a6626e04ac96c4949268b347761d22e89af6fa43318c26fc6&req=dicvEst6nIdfXPMW1HO4zR9ZETxQASDesV5DdPWu%2BECOOPuach1VA9azcDK2%0A2vb9%0A)

2. In Appaloosa, on **Settings > Windows**, click **Edit**, paste both values and click **Save**.

[![](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784243064/76ec96aa672c65aaa5f397721121/settings_windows_edit_en.png?expires=1795686300&signature=2067ab8afeb327601bc8506f87cc26563eca0e5ecd66b06c89e19b7df81114c8&req=dicvEst6noFZXfMW1HO4za6ttRhM3flnBii0RqLWRFkPu1bPYoPI%2FU3AxlwM%0AVtjNxYj1MfClpy3gibc%3D%0A)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784243064/76ec96aa672c65aaa5f397721121/settings_windows_edit_en.png?expires=1795686300&signature=2067ab8afeb327601bc8506f87cc26563eca0e5ecd66b06c89e19b7df81114c8&req=dicvEst6noFZXfMW1HO4za6ttRhM3flnBii0RqLWRFkPu1bPYoPI%2FU3AxlwM%0AVtjNxYj1MfClpy3gibc%3D%0A)

The setup is complete. PCs that join your Entra tenant from now on enroll in Appaloosa.

# Enroll a PC

**On a new or reset PC:** during the first setup, choose **Set up for work or school** (on Windows Pro) and sign in with the user's work account.

**On a PC already in use:** go to **Settings > Accounts > Access work or school**, click **Connect**, then **Join this device to Microsoft Entra ID**, and sign in with the user's work account.

In both cases, Windows shows a page "**<your environment name> manages this device**" explaining that the organization will be able to install applications, apply security settings and wipe the PC remotely. The user clicks **Accept** and the PC enrolls.

[![](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784243326/8ea6a3d0f91563f3195fcd266c90/terms_of_use_en.png?expires=1795686300&signature=539d5429f7a75c6205fcf5e236b9c47d0bcbfa6e9f9f91a00ee0af1dc7277224&req=dicvEst6noJdX%2FMW1HO4zY7Mcgu8paP57qu51vEZotRF8F7exB6tqGbZ0Tr5%0AeKE3ZJsjXS%2FPXzQeUS4%3D%0A)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784243326/8ea6a3d0f91563f3195fcd266c90/terms_of_use_en.png?expires=1795686300&signature=539d5429f7a75c6205fcf5e236b9c47d0bcbfa6e9f9f91a00ee0af1dc7277224&req=dicvEst6noJdX%2FMW1HO4zY7Mcgu8paP57qu51vEZotRF8F7exB6tqGbZ0Tr5%0AeKE3ZJsjXS%2FPXzQeUS4%3D%0A)

# In Appaloosa

* The PC appears in the device list.
* If the work account email matches a user of your environment, the PC is assigned to that user. Otherwise, it has no user and you can assign one later.
* If the PC was already enrolled in Appaloosa, the new enrollment replaces the previous one, so you do not get duplicates.

# Troubleshooting

* **"This device cannot be enrolled. Contact your administrator."** on the terms page: the Directory (tenant) ID or the Application (client) ID in Appaloosa does not match the Entra application, or the identifierUris value in the manifest is not the Appaloosa Application ID URI.
* **The user accepts the terms but the PC does not appear in Appaloosa:** check that the **deviceid** optional claim is in the accessToken list of the manifest.
* **The PC joins Entra but is not enrolled:** the user is outside the MDM user scope, or the MDM user scope is set to None.
* **"Can't connect to the URL for your organization's MDM terms of use":** the MDM terms of use URL is missing or wrong in the Entra application.
* **Error 8018000a:** the PC is already joined or enrolled by another user. Remove that work account first.
* **Error 80180018:** the user has no Entra ID P1 or P2 licence.
**Error 801c0003:** the user is not allowed to join devices to Entra (see Prerequisites).

[![](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784257041/f77e1f6fcd672fd85625078632e6/entra_10_device_settings_join.png?expires=1795686300&signature=17e5de9ab5e57ba77c96ebbecf7b17195602f389d289307298c3247aed9665db&req=dicvEst7moFbWPMW1HO4zZYpJZH67LUGStk4K70ijuGGVHg1h1MWctKkNJ%2Bf%0AmSbq%0A)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2784257041/f77e1f6fcd672fd85625078632e6/entra_10_device_settings_join.png?expires=1795686300&signature=17e5de9ab5e57ba77c96ebbecf7b17195602f389d289307298c3247aed9665db&req=dicvEst7moFbWPMW1HO4zZYpJZH67LUGStk4K70ijuGGVHg1h1MWctKkNJ%2Bf%0AmSbq%0A)

* **Error 8018002b:** the MDM user scope is None, or the user's sign-in name uses a domain that is not routable (for example `.local`).
* **"Your device is already being managed by an organization":** the PC is still enrolled in another MDM. Unenroll it there first, or reset the PC.

**Watch out before disconnecting a PC from Entra:** create a local administrator account first. If the work account is the only account on the PC, disconnecting it can leave you with no way to sign in, and a reset is required.