Developer Tools Azure

Verdaccio on Windows Server 2025 on Azure User Guide

| Product: Verdaccio on Windows Server 2025 on Azure

Overview

Verdaccio is an open source, lightweight private npm registry and proxy. Your team publishes private packages to it, and it fetches public packages from the npm registry (npmjs) on demand and keeps a copy, so installs stay fast and keep working even when npmjs is slow or a package is removed upstream. npm, pnpm, yarn and bun all work with it unchanged, and its web UI lists your packages with their READMEs, versions and install commands.

This image runs Verdaccio 7.1.3 as a Windows service on Windows Server 2025 Datacenter (Desktop Experience) with Node.js 24.23.0 LTS. Verdaccio serves the registry and its web UI itself over HTTPS on port 443; port 80 only redirects to HTTPS. On the first boot of every VM the image creates a Verdaccio administrator with a long random password and a TLS certificate of its own. Account sign-up is closed and nothing is served to anonymous clients: every read and every publish needs an account. The Windows Server licence is included in the virtual machine price that Microsoft bills; Verdaccio is open source under the MIT licence. cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours.

What is included:

  • Verdaccio 7.1.3 installed under C:\Program Files\Verdaccio, running as the Windows service Verdaccio (startup Automatic) under its own virtual account NT SERVICE\Verdaccio, not LocalSystem
  • Node.js 24.23.0 LTS
  • The registry and web UI on TCP 443 (HTTPS), TCP 80 redirecting to HTTPS, and Windows Firewall rules for both
  • Uplink to the public npm registry: packages you do not publish yourself are fetched from npmjs and cached
  • A per-VM administrator admin with a random password, written to a file only administrators can read
  • A per-VM self signed TLS certificate for the VM's public IP address, private IP address and computer name
  • Configuration, accounts and packages in C:\ProgramData\Verdaccio, readable only by administrators and the service
  • Windows Server 2025 Datacenter, patched with Windows Update at build, Microsoft Defender Antivirus and Windows Firewall on
  • cloudimg's support team on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours

Prerequisites

An active Azure subscription, a Remote Desktop client, and a virtual network in the target region. Standard_B2ms (2 vCPU, 8 GiB RAM) is a good starting point for a team registry; choose a larger size, and a larger OS disk, for many packages or heavy CI traffic. In the network security group, allow inbound TCP 3389 (Remote Desktop), TCP 443 (the registry and web UI) and TCP 80 (the redirect to HTTPS) from your own address ranges only. The VM needs outbound HTTPS to registry.npmjs.org for the npmjs uplink.

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Verdaccio on Windows Server 2025 by cloudimg, and select Create. On Basics pick your subscription, resource group, region and size, and set the Administrator account username and password. Under Inbound port rules allow RDP (3389), HTTP (80) and HTTPS (443), then narrow each rule's source to your own address range on the Networking tab. Select Review + create, then Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn cloudimg1647283583153:verdaccio-windows-server:default:latest

az vm create \
  --resource-group <your-rg> \
  --name verdaccio \
  --image cloudimg1647283583153:verdaccio-windows-server:default:latest \
  --size Standard_B2ms \
  --admin-username <admin-name> \
  --admin-password '<a strong password>' \
  --public-ip-sku Standard

az vm open-port --resource-group <your-rg> --name verdaccio --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name verdaccio --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name verdaccio --port 80 --priority 1020

az vm open-port opens each port to any address; narrow the rules to your own ranges in the network security group afterwards.

First boot takes a few minutes. When the VM first starts, Windows finishes its setup, then the image creates this VM's administrator, certificate and configuration and starts the Verdaccio service. Until then nothing answers on port 443. The setup is finished when the file C:\ProgramData\verdaccio-windows-server-firstboot.done exists (Step 4).

Step 3 - Connect with Remote Desktop

Connect to the VM's public IP address with your Remote Desktop client (on Windows, mstsc; on macOS, Windows App), signing in with the administrator name and password you set at deployment. Open Windows PowerShell as administrator for the commands below.

Step 4 - Confirm Verdaccio is running

Test-Path C:\ProgramData\verdaccio-windows-server-firstboot.done
Get-CimInstance Win32_Service -Filter "Name='Verdaccio'" | Format-Table Name, State, StartMode, StartName -AutoSize
Get-NetTCPConnection -State Listen -LocalPort 443, 80 | Format-Table LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).ProcessName}} -AutoSize
curl.exe -k https://127.0.0.1/-/ping
True

Name      State   StartMode StartName
----      -----   --------- ---------
Verdaccio Running Auto      NT SERVICE\Verdaccio

LocalAddress LocalPort Process
------------ --------- -------
0.0.0.0            443 node
0.0.0.0             80 node

{}

(-k because the certificate is this VM's own, self signed one.) The versions:

(Get-Content "C:\Program Files\Verdaccio\node_modules\verdaccio\package.json" -Raw | ConvertFrom-Json).version
& "C:\Program Files\nodejs\node.exe" -v
7.1.3
v24.23.0

True confirms first boot finished. Verdaccio runs as the Verdaccio service under its own account NT SERVICE\Verdaccio, started automatically with Windows; its Node.js process listens on ports 443 and 80, and /-/ping answers over HTTPS.

The first boot log records what it made, and the certificate's details show the names it is valid for:

Get-Content C:\ProgramData\verdaccio-windows-server-firstboot.log
$c = New-Object Security.Cryptography.X509Certificates.X509Certificate2 "C:\ProgramData\Verdaccio\ssl\verdaccio-cert.pem"
$c | Format-List Subject, NotBefore, NotAfter, Thumbprint
($c.Extensions | Where-Object { $_.Oid.Value -eq '2.5.29.17' }).Format($false)
2026-12-01T23:30:02.4564604Z provisioning finished
2026-12-01T23:30:12.8427887Z addresses public=20.51.165.127 private=10.20.0.14
2026-12-01T23:30:15.2612371Z certificate CN=20.51.165.127 san=DNS=wsrdp-e90a79&IPAddress=20.51.165.127&IPAddress=10.20.0.14 sha256=7c0f47c55047d7770c68699f851a6fe2b2b49d57924b4979ee9e6069d8cfcdc9
2026-12-01T23:30:28.4236763Z admin account, certificate and configuration written
2026-12-01T23:30:28.5043527Z credentials written
2026-12-01T23:32:44.4710279Z Verdaccio answers on 443 and 80
2026-12-01T23:33:02.6136463Z first boot done

Subject     : CN=20.51.165.127, O=Verdaccio on Windows Server (cloudimg)
NotBefore   : 12/1/2026 11:20:14 PM
NotAfter    : 12/1/2036 11:30:13 PM
Thumbprint  : B6AAE91F150894417B1002E8B94A962551ECC19A

DNS Name=wsrdp-e90a79, IP Address=20.51.165.127, IP Address=10.20.0.14

The certificate is named for the VM's public IP address (20.51.165.127 here), its private IP address and its computer name (wsrdp-e90a79 here), and is valid for ten years.

Step 5 - Read your administrator password

First boot wrote the Verdaccio administrator's name and password to a file that only the SYSTEM account and the Administrators group can read:

Get-Content C:\ProgramData\verdaccio-windows-server-credentials.txt
# Verdaccio on Windows Server 2025 by cloudimg: this VM's own sign-in (made at first boot).
# Web UI and npm registry: https://<this VM's public IP>/ (port 80 redirects there). The certificate is this
# VM's own, self-signed: its public half is C:\ProgramData\Verdaccio\ssl\verdaccio-cert.pem.
# npm: npm config set cafile verdaccio-cert.pem, then npm login --registry https://<public IP>/
# Guide: https://www.cloudimg.co.uk/guides/verdaccio-on-windows-server-2025-azure/

verdaccio-windows-server.admin.user=admin
verdaccio-windows-server.admin.password=<24 random characters, different on every VM>

The username is always admin; the password is random and different on every VM. Keep it somewhere safe.

Step 6 - Open the web UI

On your own computer, browse to https://<vm-public-ip>/. The certificate is this VM's own self signed one, so your browser warns about it the first time: accept it to continue (or install a trusted certificate, see Use a DNS name and a trusted certificate below). Before you sign in Verdaccio lists nothing, because anonymous visitors cannot see any package; it shows the commands that point npm, pnpm, yarn or bun at this registry.

Verdaccio's web UI before sign-in, with the commands that point a package manager at the registry

Choose Login (top right) and sign in as admin with the password from Step 5. There is no way to create an account from the web UI or from npm: sign-up is closed.

The Verdaccio Login dialog with the admin account

Step 7 - Point npm at the registry

npm checks the registry's certificate, so first give npm this VM's certificate. Its public half is C:\ProgramData\Verdaccio\ssl\verdaccio-cert.pem (it holds no key): copy it to your computer over the Remote Desktop session, for example to your project folder. Then, in the project:

npm config set registry https://<vm-public-ip>/ --location project
npm config set cafile <full path to>/verdaccio-cert.pem --location project
npm login --registry https://<vm-public-ip>/

npm login asks for the username admin and the password from Step 5, and saves a token for this registry in your user .npmrc. cafile replaces npm's list of trusted authorities, which is right when every package comes through this registry; to keep both, set NODE_EXTRA_CA_CERTS to the file's path instead. With a trusted certificate (below) you need neither.

This is what it looks like on the VM itself, where the registry's address is the VM's computer name (the token line of .npmrc is not shown):

# .npmrc (the token line is not shown)
registry=https://wsrdp-e90a79/
cafile=C:\ProgramData\Verdaccio\ssl\verdaccio-cert.pem

PS> npm whoami
admin

PS> npm view hello-registry name version description dist.tarball
name = 'hello-registry'
version = '1.0.0'
description = 'A first package published to this private Verdaccio registry.'
dist.tarball = 'https://wsrdp-e90a79/hello-registry/-/hello-registry-1.0.0.tgz'

# package.json of a new project
{ "name": "my-app", "version": "1.0.0", "private": true }

PS> npm install hello-registry is-number
added 2 packages, and audited 3 packages in 3s
found 0 vulnerabilities

PS> npm ls
my-app@1.0.0 C:\Windows\Temp\my-app
+-- hello-registry@1.0.0
`-- is-number@7.0.0

PS> node -e "console.log(require('hello-registry')('Verdaccio'))"
Hello, Verdaccio!

hello-registry was published to this registry in Step 8; is-number is a public package that Verdaccio fetched from npmjs and cached. npm audit works through the registry too.

Step 8 - Publish a package

From a folder with a package.json, npm publish sends the package to your registry (never to npmjs). It appears in the web UI within a few seconds:

npm publish --registry https://<vm-public-ip>/

The Verdaccio package list after publishing a first package with npm publish

Select a package to see its README, its versions and dependencies, and the install command for each package manager:

A package's page in Verdaccio with its README and install commands

Step 9 - Install packages through the proxy

Any package that is not published here is fetched from npmjs on first use and cached in C:\ProgramData\Verdaccio\storage, so npm install of your own and public packages works through the one registry, as Step 7's output shows for hello-registry and is-number. The web UI lists only packages published to this registry, not cached ones.

Add accounts for your team

Sign-up is closed by max_users: 1 in C:\ProgramData\Verdaccio\config.yaml (Verdaccio refuses new accounts once that many exist). To add accounts, raise it to the number of accounts you want, restart the service, have each person run npm adduser --registry https://<vm-public-ip>/, then set it back to the new total:

notepad C:\ProgramData\Verdaccio\config.yaml      # auth: htpasswd: max_users: 3
Restart-Service Verdaccio

Accounts are stored, bcrypt-hashed, in C:\ProgramData\Verdaccio\htpasswd. The packages section of config.yaml decides who may read and publish each package scope; every rule starts as $authenticated (any signed-in account). See the Verdaccio documentation for groups and per-scope rules.

Use a DNS name and a trusted certificate

The image's certificate is self signed and named for the VM's IP addresses and computer name. To use a DNS name with a certificate your clients already trust, point the name at the VM's public IP, get a certificate for it as a PFX file, and replace C:\ProgramData\Verdaccio\ssl\verdaccio.pfx with it, setting its password as passphrase under https in config.yaml; then Restart-Service Verdaccio. npm then needs no cafile.

Maintenance

  • Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts Verdaccio automatically.
  • Back up your data: everything Verdaccio keeps (config.yaml, the htpasswd accounts, the certificate and every package in storage) is in C:\ProgramData\Verdaccio. Back it up, or use Azure Backup of the VM.
  • Upgrade Verdaccio: you choose when to upgrade. In an administrator PowerShell, stop the service, install the version you want with npm, and start it again; your data is kept:
Stop-Service Verdaccio
cd 'C:\Program Files\Verdaccio'
& 'C:\Program Files\nodejs\npm.cmd' install verdaccio@<version> --ignore-scripts
Start-Service Verdaccio
  • Logs: the service's output is in C:\ProgramData\Verdaccio\logs, and the first boot log is C:\ProgramData\verdaccio-windows-server-firstboot.log (it never contains the password).
  • Firewall: Windows Firewall allows 443 and 80 through the rules in the Verdaccio group; the network security group decides who can reach them.

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. Contact support@cloudimg.co.uk.