AdGuard Home on Windows Server 2025 on Azure User Guide
Overview
This guide covers the deployment and use of AdGuard Home on Windows Server 2025 on Microsoft Azure, using cloudimg's virtual machine image from the Azure Marketplace.
AdGuard Home is open source software (GPL-3.0) that runs a DNS server for your network: every device that uses it as its DNS server has ads, trackers and malicious domains blocked, with no software on the device itself. Its web interface shows what each device asked for and what was blocked, and lets you manage blocklists, allowlists, per-client settings and the upstream DNS servers it forwards to.
The image is Microsoft Windows Server 2025 Datacenter with the Desktop Experience (the full graphical interface), Gen2, x64, built from Microsoft's own image on the Azure Marketplace (MicrosoftWindowsServer:WindowsServer:2025-datacenter-g2, version 26100.33828.261112). The Windows Server licence is included in the VM price and billed by Microsoft.
What's included:
- AdGuard Home 1.0.0 for Windows (64-bit), the official release from AdGuard, its checksum verified against the project's published checksum list and its Authenticode signature (Adguard Software Limited) checked when the image was built, in
C:\Program Files\AdGuardHome\ - AdGuard Home running as the Windows service AdGuardHome under its own virtual account NT SERVICE\AdGuardHome (never LocalSystem, never an administrator): started automatically at boot and restarted within a minute if it stops
- This VM's own admin sign-in, made at the first boot of your VM: the user
adminwith a random 24-character password, saved inC:\ProgramData\adguardhome-credentials.txt, which only administrators can read. AdGuard Home stores only a bcrypt hash of it. No password, configuration or query log ships in the image, so no two VMs share one - The AdGuard Home web interface on
http://127.0.0.1:3000/, reachable only from the VM itself (over Remote Desktop), with an AdGuard Home shortcut on the desktop - DNS on TCP and UDP port 53, with the Windows Firewall rules AdGuard Home DNS (TCP-In) and AdGuard Home DNS (UDP-In) for
AdGuardHome.exeonly - AdGuard Home's defaults: the AdGuard DNS filter blocklist on (about 199,000 rules, downloaded at first start), upstream DNS to Cloudflare over DNS-over-HTTPS, 20 queries a second per client,
ANYqueries refused, query log kept 90 days - Windows Server 2025 Datacenter, Desktop Experience, version 24H2, build 26100.33828, with Microsoft's November 2026 cumulative update. Windows Update ran during the build and reported nothing pending when the image was captured on 1 December 2026. Microsoft Edge 158
- The Azure VM agent, so Azure features such as Reset password and Run command work
- cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours
Platform: Microsoft Azure (Gen2 Hyper-V; Trusted Launch, NVMe sizes and accelerated networking supported)
Administrator account: the user name and password you choose when you deploy the VM. There is no default Windows password on this image.
AdGuard Home work folder: C:\ProgramData\AdGuardHome (configuration, statistics, query log, downloaded filters and the service log).
Prerequisites
- An Azure subscription
- A Remote Desktop client: Remote Desktop Connection (
mstsc) on Windows, Windows App (formerly Microsoft Remote Desktop) on macOS, or Remmina on Linux - The public IP address of the machine you will connect from, so you can allow Remote Desktop from that address only
- The public addresses (or address ranges) of the networks whose devices will use this DNS server: your office, branch or home connections, or a virtual network in Azure
Recommended size: Standard_B2ms (2 vCPUs, 8 GiB memory). AdGuard Home itself is light; use a larger size for many thousands of clients or very large blocklists.
Step 1: Deploy the Virtual Machine
Option A: Azure Portal
- In the Azure Marketplace, search for "AdGuard Home on Windows Server 2025 cloudimg"
- Select the offer and click Create
- Configure the basics:
- Subscription and Resource group: select or create
- Virtual machine name and Region: your choice
- Size:
Standard_B2msrecommended - Under Administrator account, enter a Username and a Password that you choose. Azure refuses reserved names such as "administrator", "admin" and "guest"
- Under Inbound port rules, allow RDP (3389). Azure then opens port 3389 to the whole internet, so restrict it straight after deployment (step 7)
- Click Review + create, then Create
- When the deployment finishes, open the VM's Networking (Network settings) page:
- edit the inbound rule for port 3389 and set Source to My IP address (or your office or VPN address range)
- add an inbound rule for port 53, protocol Any (TCP and UDP), with Source set to the addresses of the networks that will use this DNS server. Do not allow port 53 from Any source: a DNS server open to everyone is found and used by strangers (see Security recommendations)
Option B: Azure CLI
Accept the offer terms once per subscription, then create the VM with no inbound rules. Leave out --admin-password and the CLI asks for the password, which keeps it out of your shell history:
az vm image terms accept --urn cloudimg1647283583153:adguard-home-windows-server:default:latest
az vm create \
--resource-group myResourceGroup \
--name my-adguard \
--image cloudimg1647283583153:adguard-home-windows-server:default:latest \
--size Standard_B2ms \
--admin-username <your-admin-name> \
--public-ip-sku Standard \
--nsg-rule NONE
Then allow Remote Desktop from your own address only, allow DNS from your own networks only, and read the VM's public IP:
az network nsg rule create \
--resource-group myResourceGroup \
--nsg-name my-adguardNSG \
--name allow-rdp-from-my-ip \
--priority 1000 \
--direction Inbound --access Allow --protocol Tcp \
--destination-port-ranges 3389 \
--source-address-prefixes <your-public-ip>/32
az network nsg rule create \
--resource-group myResourceGroup \
--nsg-name my-adguardNSG \
--name allow-dns-from-my-networks \
--priority 1010 \
--direction Inbound --access Allow --protocol '*' \
--destination-port-ranges 53 \
--source-address-prefixes <your-network-address-ranges>
az vm show --resource-group myResourceGroup --name my-adguard --show-details --query publicIps -o tsv
Step 2: Connect with Remote Desktop
- Open your Remote Desktop client and connect to the VM's public IP address
- Windows: run
mstsc, enter the IP address and click Connect - macOS: in Windows App, add a PC with the IP address
- Linux: in Remmina, create an RDP connection to the IP address
- When asked for credentials, sign in as
<vm-name>\<your-admin-name>with the password you set at deployment. On Windows, choose More choices, then Use a different account - Accept the certificate warning: the VM uses a self-signed Remote Desktop certificate
Windows may show its privacy settings screen at your first sign-in; choose your settings and click Accept.
AdGuard Home does not need you to stay signed in: it runs as a Windows service from the moment the VM starts. Sign out (or just disconnect) when you are done, and it keeps answering DNS.
Step 3: Check that AdGuard Home is running
At the first start of your VM, a one-time task waits for Azure to finish setting the VM up, completes AdGuard Home's setup with this VM's own admin password, starts the service and removes itself. It takes under a minute after the VM is first reachable. Open Windows PowerShell with Run as administrator and run:
Test-Path C:\ProgramData\adguardhome-firstboot.done
Get-CimInstance Win32_Service -Filter "Name='AdGuardHome'" | Select-Object Name, State, StartMode, StartName
Get-NetTCPConnection -State Listen -LocalPort 53, 3000 | Select-Object LocalAddress, LocalPort
Get-NetUDPEndpoint -LocalPort 53 | Select-Object LocalAddress, LocalPort
True
Name State StartMode StartName
---- ----- --------- ---------
AdGuardHome Running Auto NT SERVICE\AdGuardHome
LocalAddress LocalPort
------------ ---------
:: 53
127.0.0.1 3000
LocalAddress LocalPort
------------ ---------
:: 53

True means the first-boot task has finished. The service runs as its own account, NT SERVICE\AdGuardHome. DNS listens on every address (:: is Windows' way of showing one socket that serves IPv4 and IPv6), and the web interface (3000) answers on 127.0.0.1 only, so it is never reachable from the network.
Step 4: Test DNS on the server
In the same window, ask AdGuard Home for a normal name and for a domain on its blocklist:
Resolve-DnsName example.com -Server 127.0.0.1 -Type A | Select-Object Name, Type, IPAddress
Resolve-DnsName doubleclick.net -Server 127.0.0.1 -Type A | Select-Object Name, Type, IPAddress
Resolve-DnsName example.com -Server 127.0.0.1 -Type A -TcpOnly | Select-Object Name, Type, IPAddress
Name Type IPAddress
---- ---- ---------
example.com A 104.20.23.154
example.com A 172.66.147.243
Name Type IPAddress
---- ---- ---------
doubleclick.net A 0.0.0.0
Name Type IPAddress
---- ---- ---------
example.com A 104.20.23.154
example.com A 172.66.147.243

example.com is resolved through the upstream server; doubleclick.net, an ad domain on the AdGuard DNS filter, is answered 0.0.0.0, so a device never reaches it.
Step 5: Read this VM's AdGuard Home password
The web interface's user name is admin. Its password was made at the first boot of your VM and saved in a file only administrators can read:
Get-Content C:\ProgramData\adguardhome-credentials.txt
# AdGuard Home on Windows Server 2025 by cloudimg: this VM's own AdGuard Home sign-in (made at first boot).
# Open the admin web interface in a browser on this VM (Remote Desktop): http://127.0.0.1:3000/
# (the "AdGuard Home" shortcut on the desktop). It listens on 127.0.0.1 only.
# Point your devices' DNS at this VM's address (UDP and TCP 53), allowed only from your own networks.
# Guide: https://www.cloudimg.co.uk/guides/adguard-home-on-windows-server-2025-azure/
adguardhome.web.url=http://127.0.0.1:3000/
adguardhome.web.user=admin
adguardhome.web.password=<24 characters, this VM's own>
adguardhome.dns=0.0.0.0:53 (TCP and UDP)
adguardhome.workdir=C:\ProgramData\AdGuardHome
(The password is shown here as a placeholder; your file holds this VM's own.)
Step 6: Sign in to the web interface
Double-click the AdGuard Home shortcut on the desktop (or browse to http://127.0.0.1:3000/ in Microsoft Edge on the VM). Sign in as admin with the password from Step 5.
The web interface listens on 127.0.0.1 only, so it can only be opened from the VM itself, over Remote Desktop. It is not reachable from the internet, even if you open port 3000 in Azure.
The dashboard shows how many queries AdGuard Home answered and blocked, the busiest clients and domains, and the average processing time.

Step 7: Point your devices at AdGuard Home
Give your devices the VM's public IP address as their DNS server, from a network you allowed on port 53 in Step 1:
- A whole network: set the DNS server in your router's DHCP settings (or your Windows DHCP server's scope options), so every device that joins uses AdGuard Home
- One device: set the DNS server in its network settings
- Azure virtual networks: use the VM's private IP address as a custom DNS server in the virtual network's DNS servers settings, so VMs in the same or a peered network use AdGuard Home without crossing the internet
Then check from a device that it gets answers, and that ads are blocked:
nslookup example.com <vm-public-ip>
nslookup doubleclick.net <vm-public-ip>
Non-authoritative answer:
Name: example.com
Address: 172.66.147.243
Name: example.com
Address: 104.20.23.154
Non-authoritative answer:
Name: doubleclick.net
Address: 0.0.0.0
If nslookup times out, check the Azure rule for port 53 (Step 1): it must allow the address your device's queries come from.
Step 8: The query log
Query log lists every query AdGuard Home answered: the time, the name, the type, whether it was processed or blocked (and by which list), and the client that asked. Use the search box to find a domain or a client, and the status and reason filters to show only blocked queries.

Queries are kept for 90 days by default (querylog: interval: 90d in AdGuardHome.yaml), and statistics for one day; both can be changed in AdGuard Home's settings.
Step 9: Blocklists
Filters > Blocklists shows the lists AdGuard Home blocks domains from. The AdGuard DNS filter is on; the AdAway Default Blocklist is listed but off. Turn lists on or off with their switch, add others with Add blocklist (choose from AdGuard's catalogue or give a list's URL), and use Check for updates to refresh them now (AdGuard Home also refreshes them every 24 hours).

The rest of the Filters menu holds Allowlists (domains never blocked), DNS rewrites (answer a name with your own address, for example for internal servers), Blocked services (block services such as social networks by name) and Custom rules (your own blocking and allow rules).
Step 10: Upstream DNS and other DNS settings
Settings > DNS sets where AdGuard Home forwards the queries it does not block. The image keeps AdGuard Home's default, Cloudflare over DNS-over-HTTPS (https://cloudflare-dns.com/dns-query), in load-balancing mode, with Cloudflare's resolvers as bootstrap servers. Click Server addresses to enter other upstream servers (plain DNS, DNS-over-HTTPS, DNS-over-TLS or DNS-over-QUIC), and Test upstreams to check that AdGuard Home can reach them.

Further down the same page: DNS server configuration (the rate limit, 20 requests a second per client; blocking mode; DNSSEC; the DNS cache) and Access settings, with Allowed clients (only these may use the server), Disallowed clients and Disallowed domains.
Step 11: Keeping Windows and AdGuard Home up to date
Windows: Windows Update is on, as in Microsoft's image. Check for updates in Settings > Windows Update, and plan restarts: AdGuard Home starts again by itself after a restart, but devices get no DNS answers while the VM restarts.
AdGuard Home: its built-in update check is off in this image, because the service account cannot replace files in C:\Program Files. To upgrade, download the new AdGuardHome_windows_amd64.zip from the AdGuard Home releases page, then in an elevated PowerShell window:
Stop-Service AdGuardHome
Expand-Archive .\AdGuardHome_windows_amd64.zip -DestinationPath $env:TEMP\adguardhome-new
Copy-Item $env:TEMP\adguardhome-new\AdGuardHome\AdGuardHome.exe 'C:\Program Files\AdGuardHome\AdGuardHome.exe' -Force
Start-Service AdGuardHome
& 'C:\Program Files\AdGuardHome\AdGuardHome.exe' --version
Server Components
| Component | Version or setting | Where |
|---|---|---|
| AdGuard Home | 1.0.0 (windows-amd64) | C:\Program Files\AdGuardHome\AdGuardHome.exe |
| AdGuardHome service | NT SERVICE\AdGuardHome, Automatic, restarted after 60 seconds if it stops |
Services (services.msc) |
| Web interface | 127.0.0.1:3000, user admin, this VM's own password |
C:\ProgramData\adguardhome-credentials.txt |
| DNS | TCP and UDP 53, every address | Windows Firewall rules "AdGuard Home DNS (TCP-In)" and "AdGuard Home DNS (UDP-In)" |
| Windows Server | 2025 Datacenter, Desktop Experience, 24H2, build 26100.33828 | |
| Microsoft Edge | 158.0.4370.45 | used for the web interface |
Filesystem Layout
| Path | What it holds |
|---|---|
C:\Program Files\AdGuardHome\ |
AdGuardHome.exe, LICENSE.txt (GPL-3.0), README.md, CHANGELOG.md |
C:\ProgramData\AdGuardHome\ |
The work folder: AdGuardHome.yaml (the configuration, with the admin password's bcrypt hash), AdGuardHome.log (the service log), and data\ (filters\, stats.db, sessions.db and the query log). SYSTEM and Administrators full control, NT SERVICE\AdGuardHome modify; Users have no access |
C:\ProgramData\adguardhome-credentials.txt |
This VM's web interface user and password. SYSTEM and Administrators only |
C:\Users\Public\Desktop\AdGuard Home.url |
The desktop shortcut to http://127.0.0.1:3000/ |
The OS disk is Microsoft's 127 GB Windows disk (C:, NTFS, about 110 GB free on a new VM). On sizes that have an Azure temporary disk (D:), keep nothing of AdGuard Home's there: Azure can wipe it when the VM is stopped or moved.
Managing the Service
AdGuard Home is the Windows service AdGuardHome. From an elevated PowerShell window:
Restart-Service AdGuardHome
Stop-Service AdGuardHome
Start-Service AdGuardHome
Get-Service AdGuardHome | Select-Object Name, Status, StartType
Name Status StartType
---- ------ ---------
AdGuardHome Running Automatic
Changes you make in the web interface are saved and applied at once; edit C:\ProgramData\AdGuardHome\AdGuardHome.yaml by hand only with the service stopped, then start it again.
Scripts and Log Files
| File | What it is |
|---|---|
C:\ProgramData\AdGuardHome\AdGuardHome.log |
AdGuard Home's own log |
C:\ProgramData\adguardhome-firstboot.log |
What the one-time first-boot task did |
C:\ProgramData\adguardhome-firstboot.done |
Written when the first-boot task finished |
On Startup
At the first start of your VM, the scheduled task \cloudimg\AdGuard Home first boot (SYSTEM) runs once:
- It waits until Azure has finished setting up the VM
- It creates the work folder
C:\ProgramData\AdGuardHomewith its permissions (SYSTEM, Administrators and the service account only) - It runs AdGuard Home's setup on
127.0.0.1and completes it: the web interface on127.0.0.1:3000, DNS on port 53, the useradminwith a random password (AdGuard Home stores only its bcrypt hash) - It writes
C:\ProgramData\adguardhome-credentials.txt, readable by administrators only - It starts the AdGuardHome service, checks a sign-in and a DNS answer, sets the service to start automatically, writes
C:\ProgramData\adguardhome-firstboot.done, then deletes itself and its script
Its log on a new VM:
2026-12-01T19:19:21.7832283Z provisioning finished
2026-12-01T19:19:36.9239771Z setup wizard completed: admin made, web interface 127.0.0.1:3000, DNS 0.0.0.0:53
2026-12-01T19:19:42.4585185Z AdGuardHome answers DNS on 127.0.0.1:53 and the web interface on 127.0.0.1:3000; service Automatic
2026-12-01T19:19:51.2729620Z first boot done
It runs only once, so there is nothing to turn off. Every start after that, Windows starts the AdGuardHome service.
Troubleshooting
The web interface does not open, or adguardhome-firstboot.done is missing
The first-boot task may still be running: give it a minute and check again. Its log shows how far it got:
Get-Content C:\ProgramData\adguardhome-firstboot.log
The web interface refuses the sign-in
The user name is admin (lower case). Copy the password from adguardhome.web.password= in C:\ProgramData\adguardhome-credentials.txt.
Devices get no answers
- Check that the Azure network security group allows port 53, TCP and UDP, from the address the device's queries come from (Step 1). Home and office connections often have one public address for every device behind them
- Check that the service is running (Step 3) and answers on the VM itself (Step 4)
- In Settings > DNS > Access settings, check that the device is not in Disallowed clients, and, if Allowed clients has entries, that it is one of them
A site is blocked that should not be
Find the domain in the Query log to see which list blocked it, then add it to Filters > Allowlists (or a @@||example.org^ rule under Filters > Custom rules).
Changing the admin password
AdGuard Home 1.0.0 has no screen for changing the password: it keeps a bcrypt hash of it in AdGuardHome.yaml under users:. Make a new bcrypt hash of your new password, stop the service, replace the hash after password:, then start the service, as AdGuard's configuration documentation describes. The credentials file is not updated when you do.
Forgot the Windows password
Use Reset password on the VM's page in the Azure portal.
Security Recommendations
- Allow port 53 only from your own networks. A DNS server that answers anyone on the internet is soon found and used by strangers, and can be used to flood others with traffic. AdGuard Home's defaults (20 queries a second per client,
ANYqueries refused) limit the harm, but the network security group is the real boundary. You can also list the clients allowed to use it in Settings > DNS > Access settings > Allowed clients - Keep Remote Desktop restricted to your own address (Step 1), or use Azure Bastion
- Keep the web interface on 127.0.0.1. If you ever change its address to reach it from elsewhere, set up HTTPS for it first in AdGuard Home's encryption settings and restrict that port in Azure to your own address
- Keep the credentials file private. It is readable by administrators only; do not copy it to shared places
- Back up
C:\ProgramData\AdGuardHome(your settings, lists and statistics), for example with Azure Backup or disk snapshots
Support
cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours, covering deployment, Remote Desktop access, AdGuard Home's setup and sign-in, pointing devices at the server, and upgrades.
- Email: support@cloudimg.co.uk
- Website: www.cloudimg.co.uk
- Product Catalogue: www.cloudimg.co.uk/products
- User Guides: www.cloudimg.co.uk/guides
AdGuard is a trademark of Adguard Software Limited. Microsoft and Windows Server are trademarks of the Microsoft group of companies. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.