In this blog post I will go through the process of installing and configuring Azure AD Connect in a lab environment within the Azure Portal. I will also sync a test OU and a couple of test users to Azure AD.
I already have a Azure trial subscription with a custom domain configured and verified within Azure AD. I have also built a server within Azure for Azure AD Connect and also have a single domain controller (Windows 2019 server) hosted in the Azure Portal.
You may find the links below interesting:
– Add a custom domain to Azure AD
– Create a VNET within the Azure Portal
– How to configure Azure Bastion to connect to Azure VM’s securely from within the Portal
– Build a server within the Azure Portal (Build a low spec server if you’re just testing
– Assign server static IP address within Azure
– Configure a new AD Forest and AD domain
Please note, the links above demonstrate builds within a Lab environment. Please follow best practice depending on the solutions you’re building in your production environment.
If you don’t have access to the Azure Portal, you can setup a free month trial account at Azure Free Trial.
Ok, so we’re all set. Let’s get started with installing Azure AD Connect and syncing some test accounts to Azure AD!
- As you’ll see from within Azure AD, the current status of Azure AD Connect is not enabled and a sync has never taken place. You can locate the below info by clicking Azure Active Directory and then the overview option found in the left pane.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-1.png)
2. I have built a server within the Azure Portal, and for the purpose of this Lab, I have assigned the server a public IP address and opened the RDP port. Something you don’t want to do in a production environment.
So i’m RDP’ing to my newly built server in Azure
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-10.png)
3. Download Azure AD Connect. From the Azure Portal, click on Azure Active Directory and from the left pane click Azure AD Connect
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-19.png)
4. Click Download Azure AD Connect. You can also down the Azure AD Connect app from the Microsoft website
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-20.png)
5. Click download
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-21.png)
6. Launch the AzureADConnect MSI file
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-22.png)
7. Allow the install to initiate
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-23.png)
8. When ready, click I agree to the license terms and privacy notice. Click continue.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-24.png)
9. For the purpose of this demo, i’ll be clicking use express settings. In most cases this option does the job. Take a look at the customize option if you have different requirements, such as specifying a custom location for or connecting the application to a dedicated SQL server.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-25.png)
10. Provide credentials. This is a one off authentication for now. You will be required to login again each time you wish to make changes to the application.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-26.png)
If you receive a password expiry message. Login with the account at portal.azure.com and change your password when prompted.
11. When connected to Azure successfully, you’ll move on and be prompted to type in a domain account.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-28.png)
12. Input details and click next
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-29.png)
13. For now, I am going to untick the option to start the synchronization process. I only want to sync a couple of accounts to Azure AD as part of this demo. Click Install. The process may take up to 10 mins
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-30.png)
14. Now that you have Azure AD Connect installed, launch the application. For the purpose of this demo, I created a test OU and a couple of test accounts as shown below.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-31.png)
15. Click configure
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-32.png)
16. Please familiarise yourself with the other options that Azure AD Connect offers. For the purpose of this demo, I will only be configuring Azure AD Connect to sync a couple of accounts to Azure AD.
Click Customize synchronization options and click next.
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-33.png)
17. You will be prompted for your global admin account
18. Click next
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-34.png)
19. For the purpose of this demo, i’m syncing the cloudbuild OU containing two test users to Azure AD. See screen shot below. Click next
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-35.png)
20. Click next. Please study the other options
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-36.png)
21. Start the sync process and click configure
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-37.png)
22. We’re done. Let’s move onto the Azure Portal and check the results
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-38.png)
23. Success
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-39.png)
![](https://cloudbuild.co.uk/wp-content/uploads/2020/11/image-40.png)
Stay tuned for the next blog post