Active Directory Setup with Azure
Projects Overview: In this project we will be using Microsoft Azure to host our Virtual Machines in order to complete this project. We will be connecting to our VM’s by RDP, and install and Setup Active Directory. We will create Organizational Units, users, Administrators, and a domain controller. Next we will create a domain and allow a computer to join that domain. We will install a script that will create 10,000 users and implement a password for all users and have each user join the Employee OU. Lastly we will implement password policies for all users and purposefully enter wrong passwords to lock a user account and reset it due to the custom configured password policy.
● Lets start our lab by creating a resource group in Azure to host all our our resources we are going to create.
● We will need to create our virtual network to allow communication for our resources to communicate.
● A virtual machine will be needed to create our user account computer that will basically be the ADMIN account.
●When configuring our VM we need to allow port 3389 which is RDP. RDP is allowing us to connect and control another computer remotely.
●Use an existing License.
● Create the VM!
● Now we can create another VM and this will be our test or user account.(Think of this as a user in the Finance or health department employee)
●For this instance we will choose the image type Windows 10.
●Don’t forget to allow RDP
● For our first VM created we edit the IP Configuration and will allow static IP address so this way we can enable RDP.
IF YOU ARE USING A WINDOWS COMPUTER TO DO THIS LAB WINDOWS 11, THEN YOU NEED TO INSTALL REMOTE DESKTOP. After you install Remote Desktop then you will add both VM’s you created.
●On the first VM we click on add roles and features.
●Next we want to configure and add roles and features.
●Begin installing roles and features and keep hitting next.
●Add active directory domain services and hit next.
●Restart if required enabled and finish the install.
● Create a domain controller.
●Active directory isn’t a domain controller yet so we will have to add a new forest and create a domain name.com, HIT next once you created a name.
●Now install
●We have successfully installed our domain name to our controller, so now we can sign in with the domain name.
●Next we can create a new organizational unit for our Employees under the new domain we have created.
●We need another organizational unit for Administrators under the same domain.
● In that Admin Organizational Unit you can right click and click on new user.
●So now we can create a new Admin user that will follow the domain login name, we will also add a password.
●We can right click the user Mike in Admin and head over to the MEMBER OF and add the object called domain admins we will also check names and the group will be found. Click Ok
●Next we will sign in into our other VM and add the Client computer to join the domain.
●When I come back to the Active Directory controller VM I see that we have successfully added out Client1 computer to the domain because it has shown up present.
Get Leon B.’s stories in your inbox
Join Medium for free to get updates from this writer.
●Now we will sign back into our VM with Mike apple the administrator account.
●Now we will add domain users to the domain name we already created earlier. This will allow users to access this group by logging in.
Now lets open up powershell as an administrator, we will create a new file and paste the script and run it. This is a script that will create 10,000 users.
●In our organizational unit of Employees, we can see the 10,000 users have been added.
●Now we are going to set a password policy and account lockout using Group Policy Management for our users.
●So now we will set the lockout policy. Now we can navigate by going to Computer configuration> Policies> Window Settings> Security Settings> Account Policies> Account Lockout Policy.
●We will configure our settings to lockout the account after 5 failed attempts/ lockout duration will be an 18 minute wait.
●In our Admin account we will run the command to forcefully update the configuration changes we made. The Computer policy and User policy has both been successfully updated. The force update will update all policies old and new.
●Now we can sign into a user and enter incorrect passwords purposefully and… after 5 attempts the account has successfully been locked out.
●Now we will log back in as the Admin which is Mike, we will unlock our user “her.robe” account and allow the user to be able to use the account back again.
●Now we can successfully log back in with the user “her.robe”……..IT WORKED!!!!!
Conclusion: Thank you for taking the time to view my lab on active directory using Azure Virtual machines. I hope you find this documentation informational and I hope it helps you. Any questions/comments/concerns you can message me on LinkedIn.









