Azure Active Directory Labs Series – AD Connect
Solution ·Back in June I had the pleasure of delivering a training on Azure Active Directory to two customer crowds. I say pleasure because not only do I love to share knowledge but also, the preparation of the training forces me to go deep on some aspects of what I’m going to teach.
In that training there were 8 labs and I thought it would be great to share them to the more general public. The labs follow each other and build on each other.
You can find the exhaustive list in Cloud Identity & Azure Active Directory page. This is the sixth lab.
In the current lab we configure AD Connect to synchronize on premise AD with Azure AD. We will install AD Connect on one of the Domain Controller created in an earlier lab. In a more realistic environment you would install AD Connect on a separate VM joined to the Domain Controller’s domain. The configuration would be very similar.
Configure Azure AD
- Go to the legacy portal @ https://manage.windowsazure.com
- Scroll down the left menu to the bottom and select Active Directory
- You should see the following screen
- Select a tenant you created for this lab & enter it
- Select the Users menu
- At the screen bottom, click the Add User button
- An Add User dialog should appear
- For User Name, type SyncAdmin
- Click the next arrow at the bottom of the pop up
- Fill the User Profile form
- First Name: Sync
- Last Name: Admin
- Display Name: Sync Admin
- Role: Global Admin
- Alternate email address: type your corporate email here
- Click the next arrow at the bottom of the pop up
- Click the Create button
- Copy the temporary password
- Create a permanent password for the newly created account
- Open an In private Browser Window
- Navigate to https://portal.azure.com
- In the Email or Phone, type the full name of the account
You can find the name in the full name of your account in the last Add User screen (of course, you need to remove the single quotes) - In the password text box, paste the new password you copied previously
- Click Sign In
- You’ll be prompted to update the password ; do so & remember the new password
- Close the In private browser
- Back in the classic Azure portal, select the Directory Integration menu
- Next to the Directory Sync select Activated option
- At the bottom of the screen, click the Save button
Installing AD Connect
- Go to the Azure portal @ https://portal.azure.com
- In the left column menu, select Resource Groups
- Select DCGroup
- Select adBDC Virtual machine
- RDP into it
- Go to http://go.microsoft.com/fwlink/?LinkId=615771
- Download the AD Connect tool
- Install it
- Agree on terms & conditions
- Given the simplicity of the setup (one forest, same VM as the DC), we can use the express settings
Select Use express settings - The tool will install components as part of Synchronisation Service install, click Install
- Fill the Connect to Azure AD form
- In the User name box, type the full name of the SyncAdmin account you created
- In the password box, type the password you typed when you updated the password of the account
- Click the Next button
- Fill Connect to AD DS form
- In user name box, type dm.demo.com\syncaccount
- Enter the password you gave that account (likely Abc123!@#)
- Click the Next button
- Select Continue without any verified domains and click Next
- You are ready to start synchronization, click Install
- The installation & synchronization takes a few minutes
- Configuration should complete
Validate synchronization
Here we’ll validate that the synchronization occurs.
- Back in the Azure AD tenant, select the Users menu
- You should now see more users
- Moreover, the users synchronized from on premise should be sourced from Local Active Directory (Sourced From column)
- Select Max Eisenhardt (one of the synchronized account)
- You should see that fields are grayed out: you can’t modified synchronized objects since Azure AD isn’t the master of record of those objects
- Open an In Private browser window
- Navigate to https://portal.azure.com
- In email box, type meisenhardt followed by @ & the name of your Azure AD (e.g. meisenhardt@vpllab.onmicrosoft.com)
- In password box, type the password you gave to on premise accounts (likely Abc123!@#)
- You should login to the portal with Max Eisenhardt credentials
Refine configuration
Here we’ll look at how we could refine the configuration of AD Connect.
- In the Active Directory VM, press the Windows key
- Press the down key
- Click the Azure AD Connect App
- In the tasks view, select Customize synchronization options
- Click Next
- Fill the Connect to Azure AD form
- In the User name box, type the full name of the SyncAdmin account (Azure AD)
- In the password box, type the password you typed when you updated the password of the account
- Click Next
- Fill Connect Directories form
- In user name box, type dm.demo.com\syncaccount
- Enter the password you gave that account (likely Abc123!@#)
- Click the Next button
- Here we could filter on which domains / OUs we synchronize
- Click the Next button
- Here we could configure other features, e.g. password writeback
Post Lab
None.