Infrastructure-as-code deployment of a segmented Azure environment, built to demonstrate secure identity management, network segmentation, endpoint hardening, and centralized monitoring — completed as a Bachelor's capstone project at Saint Mary's University of Minnesota.
- Network segmentation: A virtual network (
10.0.0.0/16) divided into public, private, and administrative subnets, with Network Security Groups (NSGs) applied at both the subnet and NIC level. - Two virtual machines in separate security zones: a public-facing Windows Server 2022 VM (static public IP, used as an RDP jump server) and a private Linux VM with no public IP, reachable only via SSH through the Windows jump server over the internal network.
- Active Directory domain (
school.local) withStudentsandProfessorssecurity groups, and NTFS permissions enforcing least-privilege access acrossStudents,Professors, andSharedfolders. - Endpoint hardening via AppLocker (Group Policy): denies Command Prompt, PowerShell, and PowerShell ISE for standard users; allows only approved applications (Notepad, Paint, WordPad, Microsoft Edge). Additional GPO restrictions lock down Registry Editor, Control Panel, and Windows Settings, plus web content filtering through Edge.
- A Flask web application (Python) deployed on the private Linux VM, accessed from the Windows jump server — including temporarily standing up an Azure NAT Gateway to allow the isolated VM outbound access to install dependencies, then tearing it down to reduce cost and attack surface.
- Local authentication monitoring: a custom PowerShell script (
FailedLogins.ps1) that collects Event IDs 4624 (successful logon), 4625 (failed logon), and 4634 (logoff) every 24 hours, writes structured.txt/.csvlogs, and runs on a daily schedule via Windows Task Scheduler. - Centralized cloud monitoring: an Azure Monitor Log Analytics workspace with Data Collection Rules (DCRs) and Data Collection Endpoints (DCEs) for both VMs, KQL queries against Windows Event Logs and Linux Syslog, and an alert rule triggering on more than 3 failed logins within 5 minutes.
- Infrastructure as code: core resources (VMs, NSGs, managed disks, Azure Bastion, VNet) deployed via Terraform (
main.tf,providers.tf,variables.tf).
Being upfront about scope here matters more than it might seem — these were deliberate, budget/scope-driven decisions, not incomplete work:
- Azure Firewall Premium — not deployed due to the ongoing cost of running a stateful firewall for the length of a student project. A mock rule table is included to show the intended design.
- Cisco Duo MFA — not deployed. Entra ID MFA couldn't apply to this VM's local authentication, and Duo was scoped as a future enhancement. A conceptual workflow diagram is included, but MFA was not actually configured or tested in this environment.
A few real problems solved during the build (see full writeup for details): tracing an NTFS permissions failure back to domain scope rather than the permissions themselves; discovering IPv6 on the local machine was silently breaking Terraform deployments; and reformatting PowerShell log output to ingest as full Windows Event Log files (rather than custom JSON) to get Azure Monitor to accept them.
Terraform · Azure (VNet, NSGs, VMs, Log Analytics, Bastion) · Windows Server 2022 · Active Directory / Group Policy / AppLocker · Linux · Python/Flask · PowerShell · KQL
Requirements-driven infrastructure design, network segmentation, identity and access control, endpoint hardening, and building monitoring/detection into an environment from the start — plus the judgment to scope out (and clearly document) what wasn't feasible within cost and time constraints, rather than skipping that conversation.
/terraform—main.tf,providers.tf,variables.tf(no state files or.tfvars— see.gitignore)/scripts—FailedLogins.ps1/docs— AppLocker/GPO configuration notes, NTFS permission structure/screenshots— Azure portal and VM configuration screenshots (sanitized of subscription/tenant IDs and public IPs)
This is an academic capstone project, not a production environment. Terraform state files and variable files containing subscription details are intentionally excluded from this repo (see .gitignore). Full written report with methodology, references, and complete appendix of screenshots available on request.