Skip to content

DevAra007/active-directory-azure-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Microsoft Active Directory Logo

Setup And Configuration Of Active Directory

This guide shows the implementation of Active Directory in an on-premises enviroment, in this demonstration Azure virtual machines were used to replicate an office enviroment. I would be creating a video shortly around this guide to show live hands-on.

Environments and Technologies

  • Azure Virtual Machines (for hosting the AD environment)
  • Windows Server 2022 (for Active Directory, DNS, and DHCP)
  • Windows 10 Pro (for domain-joined client machines)
  • Powershell
  • Active Directory Domain Services (AD DS)
  • DNS & DHCP Configuration
  • Azure Networking (VNet, Subnets, NSGs)

Steps Of Deployment

  • Azure Resource Setup
  • Deploy Windows Server And Win10 VM And Test Connection
  • Install Active Directory Domain Services (AD DS)
  • Create Users, Organistion and Group with Powershell
  • Configure DHCP, DNS and Default Gateway
  • Verify Users Access

Implementations And Deployment



Azure Resource Setup


Create Resource Group and create Windows Server and Windows 10 Pro VMs

Resource group Win server Win10



Make private subnet IP static, enable Ping port on both VM and download RDP file(Optional)

subnet ping port rdp file

Deploy Windows Server And Win10 VM And Test Connection


Login with RDP or IP address on Remote Desktop, enable ICMPv4 in both VM firewall for ping and setup DHCP, DNS and DG on Windows Server

1-RDP-login 2-Login-details 3-Successful-Login 4-Enable-PingFirewall 5-Both-is-pingable 6-DC-DHCP-DNS

Install and configure Active Directory


Install Active Directory, promot to Domain controller and add forest

1-Install-AD 2-PromotDC 3-Add-Forest

Create Domain Controller admin, make user admin and login with user created

4-Create-AdminOU 5-Create-AdminUser 6-Create-AdminUser 7-AdminUser-Created 8-MakeUser-Admin 9-Login-Devara 10-Login-successful

Use Powershell to Create User, Group and Organization


On Windows Server download Powershell script and user name csv file from https://github.com/DevAra007/active-directory-azure-vm

1-Download-files


Open the Powershell script, set execution policy to unrestricted, Navigate to the script and csv folder, run script

2-OpenPSI-Powershell 3-Prepare-files-forEX

Verify that the script runs successfully and confirm the User, Group and Organization was created

4-Script-Success 5-IT-Dpt-User-Created

Windows 10 Client Network Setup and Join Active Directory Domain


Configure Win10 client internet proctocal, DHCP should be client subnet on the network, DNS and Default gateway should reference active directory ip address.

1-DHCP-OnWin10


Join Win10 client to active directory domain

1-Set-Domain 2-Login-DC 3-WelcomeTo-Domain



Add Domain Users to Win10 Client and Verify Domain Users Access to Win10 Client


Add domain users to Win10 client through Remote Desktop and restart Win10 Client

4-Add-Domain-users-toWin10 5-Domain-Added 6-Restart


Use one of the domain users credentials to sign into Win10 client

7-Choose-A-userCreated 8-Signin-with-user

Lets verify that the users created on the active directory are able to access the Win10 client computer

9-Verify-user 9-Verify-user2

The concepts covered shows the creation of Active Directory, promoting it to a Domain controller, creation of the domain name, forest and an admin user, setting network security protocols and ensuring the network link between the Windows server domain controller and the Win10 client computer.

It also shows the use of powershell automation scripts to create 20 users, set passwords, create an organization called IT and also a group. These users were given secure and least privilege access needed to operate the Win10 client and the access was verified.

I would be creating a video shortly around this guide to show live hands-on.

The resources used on Azure was deleted afterwards.

About

Setting up Active Directory on Windows Server 2022 using Azure Virtual Machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published