Blog Post

Intune Customer Success
4 MIN READ

End-User Experience: Deploy Hybrid Azure AD-joined devices by using Intune and Windows Autopilot

BreezeMSFT's avatar
BreezeMSFT
Icon for Microsoft rankMicrosoft
Jan 28, 2020

Hi everyone, today we have a post by Intune Support Engineer Mingzhe Li. In this post, Mingzhe takes a look at Deploying Hybrid Azure AD-joined devices by using Intune and Windows Autopilot from an end-user's perspective. This is a must-read if you’re planning to implement this feature. This is a two part series, see the Admins Experience below.

 

Admins Experience: Deploy Hybrid Azure AD-joined devices by using Intune and Windows Autopilot  

 

=====

 

The purpose of this post is to provide an easy, end-to-end guide on setting up hybrid Azure AD joined devices using Windows Autopilot with Microsoft Intune. When working on this topic as a Support Engineer, many customers ask me for a simple tutorial with as many screenshots as possible. Furthermore, my customers would like to know more about the technical workflow of the enrollment process and what log files to investigate. In response to that, I decided to write this article with the hopes that it will help you too and make getting this setup as easy as possible.

 

This article will describe the end-user experience during the Autopilot process. It will also explain what IT admins can monitor on the Intune portal to verify the status of the enrollment process.

 

End-user experience

Now we can power-on our target device and go through the enrollment process step by step. The Autopilot profile will only apply if the device is in ‘out of the box’ state. If the device is already in use and you want to enroll it into Intune with Autopilot, the computer needs to be reset. After you start-up the machine, the OOBE (out of the box experience) phase for the device will start:

 

 

Make sure with your network team that the device can find and contact the domain controller and has Internet access.


Now follow the instructions until the screen below:

 

 

You need to type in an Azure AD account which will enroll the device into Intune. Make sure that the account has a proper Intune license assigned. The account also must be part of the MDM scope in the Auto-enrollment settings:

 

 

The device will now be prepared and download the Autopilot profile. On the Azure AD portal, we can already see the device name changed from the previous serial number to the device hostname:

 

 

On Intune, we can see that a new device entry appeared:

 

 

This means that the device successfully received the Autopilot enrollment profile and the machine is already enrolled into Microsoft Intune. At this point in time, the device is not joined to your local Active Directory domain yet.

 

Tip: Press Shift + F10 and run command eventvwr to open Event Viewer. We can check the progress by reviewing the log files:

 

Application and Services Logs -> Microsoft -> Windows -> DeviceManagement-Enterprise-Diagnostics-Provider -> It includes all log entries regarding Intune MDM events. It should display that MDM enroll is succeeded:

 

 

Application and Services Logs -> Microsoft -> Windows -> Provisioning-Diagnostics-Provider -> Autopilot -> This log includes all Autopilot-related log entries.

 

 

Troubleshooting Tip:

If you see the below error, it means that your device is not able to connect to your Domain Controller:

 

 

The error could also mean that the Windows device is not meeting the minimum OS requirements. For Windows Autopilot, the device OS must be on Windows 1809 or higher.

 

Another possibility to overcome the error is to temporarily deactivate the device-based policies deployed to the Autopilot machines. We made the experience that the error might occur if the deployment of configuration policies failed, e.g. BitLocker-related policies.

 

You can further refer to https://docs.microsoft.com/en-us/intune/enrollment/troubleshoot-windows-enrollment-errors for more troubleshooting guidance.

 

This video shows you how you can collect the full set of enrollment logs during OOBE phase:

 

https://www.youtube.com/watch?v=ry88Vur6dhE&feature=youtu.be

 

If issues can’t be resolved, we can always try to reset the device by pressing Shift + F10 and then running sysprep /generalize /oobe /reboot.

 

If everything goes smoothly, the device will reboot and the ESP (enrollment status page) will appear:

 

 

On Intune portal, we can see domain join profile is deployed successfully:

 

 

On the Domain Controller within Active Directory Users and Computers, we can see that the device is domain joined now:

 

 

On Intune portal, the device name has now changed to the correct prefix defined in the domain-join profile:

 

 

Same happens with the device in Azure AD device list:

 

 

On the Intune Connector server, we can see below entries in the event logs (Applications and Services Logs -> ODJ Connector Service) which indicates that the connector received the domain join information (via blob file) successfully from Intune:

 

 

Below log entry indicates that the blob file was processed successfully:

 

 

Below entry indicates that the blob information has been sent successfully to the domain controller for domain join:

 

 

Once device preparation and device setup finishes, we will see below screen asking us to sign-in. Use the same account you used to sign-in before, but this time in domain\username format:

 

 

Follow the instructions and wait until the process finishes. Device will now continue with Account setup and perform the hybrid AAD join:

 

 

Note that the hybrid join can take up to 40 mins.

 

Tip: Note that if one of the items (e.g. Security Policies or Certificates) fail to apply, Intune will retry the deployment until it succeeds. This could potentially result to a time-out of the ESP and subsequent policies will not be applied anymore.

 

After all the steps are finished, we can see that the device is hybrid Azure AD joined:

 

 

The same device has now two entries in Azure AD which is expected behavior. However, the Intune device is associated with the hybrid joined device in Azure AD. This can be confirmed when we compare the associated Azure AD device ID:

 

 

Type in the ID in the Azure AD device list and you will find the hybrid joined device:

 

 

Mingzhe Li 

Intune Support Engineer

 

Updated Jan 30, 2020
Version 2.0

8 Comments

  • Mingzhe_Li's avatar
    Mingzhe_Li
    Former Employee

    paul: Yes, the two AAD entries are indeed misleading and this is why we wanted to clarify this with this blog. The main purpose is that you have something official from Microsoft. We are currently working together with AAD product team to get this fixed.

  • Bosss's avatar
    Bosss
    Copper Contributor

    Thank you for this guide.

    Do you where the problem could be if the ESP does not appear ? It goes directly to the login screen.

    I've assigned the ESP Profile to the same group as the dynamic group with all autopilot hybrid azure ad joined devices.

  • StuBeck's avatar
    StuBeck
    Copper Contributor

    Thank you very much for this guide. The biggest issue recently with MS documentation is the lack of single page documentation, and this helps considerably with setup. 

  • Paul McDonald's avatar
    Paul McDonald
    Copper Contributor

    Thanks for the guide, glad we're doing it the same way as you've described

    I came across this post yesterday regarding Hybrid AAD joined devices https://oofhours.com/2020/01/20/the-first-day-in-the-life-of-a-hybrid-azure-ad-joined-device/

     

    I can't see this documented anywhere (from what i can see anyway). I feel that it should be

  • mrkesu_af's avatar
    mrkesu_af
    Copper Contributor

    Hi,

    Thank you for a nice article, I do however have one question about this line:

     

    Use the same account you used to sign-in before, but this time in domain\username format:

    Why, exactly? Why not simply use the same login as the first one?

  • KrisDeb's avatar
    KrisDeb
    Iron Contributor

    Thank you very much for another great and informative guide!

  • Niklas5222's avatar
    Niklas5222
    Copper Contributor

    Thanks for the guide.

    It would be really helpful, if the owner name appears in the intune list. Right now it's no fun administrating such hybrid joined devices when you're searching a device.