Partilhar via


Afraid of Windows 10 with Azure AD join? Try it out (part 1)

I’ve been surprised by the number of organizations that have never tried to join a Windows 10 device into Azure Active Directory.  So let’s spend some time talking about that.

You’ve been able to join a Windows device to Active Directory domains for as long as there have been Active Directory domains.  With Windows 10, there is now the ability to join Azure Active Directory.  Azure Active Directory is a multitenant directory, so you aren’t joining a domain, you’re joining a tenant.  And most of your organizations already have such a tenant, since it’s used by Office 365, Intune, Azure services, and many other things.  More reading if you want to know more:

And a couple of things that Azure AD is not:

  • It’s not Active Directory running in the cloud.  (We do provide a service like that, called Azure Active Directory Domain Services, designed for scenarios where you want to join Azure VMs into an AD domain.  It’s not designed for on-prem PCs or servers.  And yes, that’s a confusing name.)
  • It’s not for device management.  (To manage devices joined to Azure AD, you would use Intune or another MDM service, potentially combined with System Center Configuration Manager via co-management.)

To confuse matters a little more, there is one more scenario to discuss called Hybrid Azure Active Directory Join.  Why is this confusing?  Well, the device is joined to Active Directory (just like most of you do today), so it has access to all the AD features (e.g. GPOs).  If you look at the Settings app, you won’t see anything about Azure AD.  For all intents and purposes, it behaves just like an AD-joined device (because it is), with a few extra benefits.  For the purposes of this blog post, we’ll ignore this scenario because we want to focus on devices that are joined directly to Azure AD, and users who sign on using Azure AD credentials, with no need for any domain controllers or any other on-prem resources.

Setup

Let’s shift focus then to setting all of this up.  I performed the following tasks:

  • Using my MSDN Azure subscription, I created a new Azure AD tenant called “autopilotrocks.onmicrosoft.com” and added a cloud-only admin account to it, admin@autopilotrocks.onmicrosoft.com (used later).
  • Using my GoDaddy account, I created a new “autopilotrocks.com” DNS domain, then added it as a custom domain to the Azure AD tenant.  (You don’t have to do this, but it’s much nicer to sign on with @autopilotrocks.com instead of @autopilotrocks.onmicrosoft.com.)
  • I created a new Windows Server 2016 domain controller for “autopilotrocks.com” (the AD domain/forest).  (I made this a DHCP server on its own private Hyper-V network, and connected it to an RRAS server for routing to the internet.  Internet connectivity is needed.)  I created a new domain account, Michael, so that I have an account to use later.
  • I download, installed and configured AAD Connect to sync my AD domain to AAD, setting up Pass-Through Authentication to make things simple.  (Setting up ADFS is a fair amount of work.)  The click-by-click:
    image
    I won’t use express settings because I want to see the options available:
    image
    Nothing I want to customize here:
    image
    A few pre-reqs get installed:
    image
    Then other configuration is done:
    image
    Now I can choose Pass-Through Authentication:
    image
    And specify my cloud admin account:
    image
    Then I can click to add my AD domain:
    image
    And specify the domain admin details (because I’m too lazy to create a separate account):
    image
    I then clicked “Next” through the remaining screens, and then confirmed on the final screen by clicking Install:
    image
    And finally, done:
    image

Total elapsed time: about two hours.  Total cost: $12.17 to register the new autopilotrocks.com domain name – there are no Azure costs at all.

One final piece worth pointing out:  By default, all accounts have rights to join devices to Azure AD.  That can be changed if you want via the Azure portal (but if you are planning to use Windows AutoPilot, I wouldn’t change the default):

image

Adding a device

So now on to the next piece:  Joining a device into Azure AD.  As I mentioned before, there are three ways of doing this.  Since you’ve already shown some patience by reading this far, we might as well walk through all three.

1. Join from OOBE

After clicking through the first few screens in OOBE, you are asked to specify Azure AD credentials:

image

Note that in this case the machine didn’t ask if this was a work or home machine, because I’m using the Enterprise SKU.  (It also won’t ask if it finds that this device is registered with AutoPilot.  But this device isn’t registered with AutoPilot – at least not yet.)

I can type in my Azure AD account that I created earlier in AD and synced with AAD Connect into Azure AD:

image

and then I can type in my password, which is automatically validated against my AD domain controller using Azure AD Pass-Through Authentication (woo-hoo, works great).  After a few more OOBE screens, the device is joined and the user is automatically signed on.  Once at the desktop, you can see in Settings that the device is joined to Azure AD:

image

(Notice how there is no “Info” button?  That’s a sign that this device isn’t MDM-managed.)  It’s also interesting to look at this from a command prompt using “dsregcmd.exe /status”:

image

2. Join from Settings

If you have an existing install with a device that’s using a local account in a workgroup, or an MSA, you can join the device to Azure AD through the Settings app.  Navigate to Accounts –> Access Work or School and then click the Connect button:

image

While you might be tempted to type in the user ID (e-mail address), that would just “add a work account” – that’s not the same as Azure AD join.  To do the Azure AD join, click the link lower on the wizard pane that says “Join this device to Azure Active Directory”:

image

Then type in the user ID (e-mail address):

image

and password:

image

A confirmation is needed:

image

And then we’re done:

image

We can see the end result is exactly the same as doing this via OOBE:

image

3. Join via a Provisioning Package

I’m going to cheat for this one and recycle some older screenshots from Windows Configuration Designer.  To create a provisioning package to join Azure AD, you need to choose Azure AD (obviously):

image

Then you can click “Get Bulk Token” which will ask for Azure AD credentials:

image

image

The token (which can be used for up to 30 days to join an unlimited number of devices to Azure AD) is returned from Azure AD and stored in the provisioning package.  Install that provisioning package on the device in one of the supported ways:

  • Inject it offline using DISM, before the OS boots for the first time.
  • On the first OOBE screen, press the Windows key five times (really) and browse to a USB key that contains the provisioning package.
  • Manually install the provisioning package via Settings:
    image
  • Install the provisioning package using PowerShell (using the Install-ProvisioningPackage cmdlet).
  • Install the provisioning package by double-clicking on it and acknowledging the prompts.

Once installed, you can see the same views via Settings or from the DSREGCMD /Status command that we looked at previously.

Limited-Time Offer

Want to try this out yourself?  Send me an e-mail at mniehaus@microsoft.com and I’ll send you a user ID and password that you can use to join a device into my Azure AD tenant.  (There’s no MDM in place, and I reserve the right to accidentally or purposely remove the device – no a big deal since you probably won’t find a device joined to my tenant to be very useful.)

Summary

Thanks for reading this far.  You’re probably thinking “how can there possibly be a part 2” after all of this, but there certainly will be (and needs to be).  It might take me a little while to finish the next one, but stay tuned.

Comments

  • Anonymous
    January 20, 2018
    Nice article. Two questions- what’s the relevance of having a local AD user account synchd to Azure? I assume that for an Azure AD Join demo a cloud-only user account on O365 would suffice? Or am I missing something?- What happens if the device is already joined to a local domain? Do you still get the option to join the device to Azure AD in Settings or is that unavailable? My laptop is joined to AD and when I click on Connect, I dont see the “Join this device to Azure Active Directory” option.
    • Anonymous
      January 20, 2018
    • What's the relevance? It's the way that most people will be using Azure AD, since they have an existing AD environment. If you were starting from scratch, you'd do cloud-only accounts that only exist in AAD. (This whole blog is a setup for part 2, where we'll explore this in more detail.)- What if it's already joined to AD? It can only be joined to AD or AAD. If you join it to AD, the "join to AAD" link disappears; if you join it to AAD, the "join to AD" link disappears. If you have an AD-joined machine, it can be registered with AAD to get you the "best of both worlds," that's what I was referring to above talking about "Hybrid AAD Join" (not a great name).
      • Anonymous
        January 24, 2018
        Thank you for the clarification. Really helpful article and great to have all those links together at the start of the article. Looking forward to Part 2.
  • Anonymous
    January 30, 2018
    Question: what are the benefits for joining an existing local AD to ad azure? What are some real world examples for it?