Azure VM Setup (DHCP Lab)
In this step, you’ll create a single Windows Server virtual machine using the Azure Portal. This VM will be used later to install and test the DHCP Server role.
Before you start
- You need an Azure account (portal.azure.com) with an active subscription (paid or free trial)
- All resources in this lab are low-cost if you shut them down properly
- You’ll be using the Azure Portal, not CLI or IaC
What this may cost
Rough estimate: $2-$5 if you run the VM only while completing the hands-on DHCP steps. Actual Azure pricing varies by region, VM size, subscription, credits, and how long you leave the lab running.
- One Windows Server VM
- One managed OS disk
- A public IP, network interface, virtual network, and subnet
If you pause the lab, stop the VM from the Azure Portal and confirm it shows Stopped (deallocated).
How to stop billing
- In the Azure Portal, stop each VM and confirm the status is Stopped (deallocated).
- When you are finished with the lab, delete the entire
rg-dhcp-labresource group. - Verify the resource group, VMs, disks, public IPs, and network interfaces are gone.
Deallocating stops VM compute charges. Deleting the resource group is the cleanest way to remove disks, public IPs, and other billable resources.
Step 0: Open the Azure Portal
- Open a browser and go to
https://portal.azure.com - Sign in with your Azure account
- Make sure you’re in the correct subscription (top-right corner)
Step 1: Create a Resource Group
- In the Azure Portal search bar, type Resource groups
- Click Create
- Set the following:
- Name:
rg-dhcp-lab - Region: choose one region and stick with it
- Name:
- Click Review + create, then Create
Step 2: Create a Virtual Network
- In the Azure Portal search bar, type Virtual networks
- Click Create
- On the Basics tab:
- Resource group:
rg-dhcp-lab - Name:
vnet-dhcp-lab - Region: same region as the resource group
- Resource group:
- On the IP addresses tab:
- Leave the default address space
- Use the default subnet (no extra subnets needed)
- Click Review + create, then Create
You only need one VNet and one subnet for this lab.
Step 3: Create the Windows Server VM
- In the Azure Portal search bar, type Virtual machines
- Click Create → Azure virtual machine
- On the Basics tab, set:
- Resource group:
rg-dhcp-lab - Virtual machine name:
dc1 - Image: Windows Server (latest available)
- Size: small burstable (example:
Standard_B2s) - Authentication: username and password
- Resource group:
- On the Networking tab:
- Virtual network:
vnet-dhcp-lab - Subnet: default
- Public inbound ports: Allow selected ports
- Inbound ports: RDP (3389)
- Source: My IP
- Virtual network:
- Click Review + create, then Create
Step 4: RDP into the VM
- Open the dc1 virtual machine in the portal
- Click Connect → RDP
- Download the RDP file and sign in
Next Step
Step 12: Install the DHCP Server role.