Developer Tools Azure

Jenkins LTS on Windows Server 2025 on Azure User Guide

| Product: Jenkins LTS 2.580 on Windows Server 2025

Overview

Jenkins is the open source automation server behind countless continuous integration and delivery pipelines: it builds, tests and deploys your code on every change, with freestyle jobs, pipelines and a large plugin ecosystem.

This image runs Jenkins 2.580.3 LTS on the Eclipse Temurin 25 JDK on Windows Server 2025 Datacenter (Desktop Experience), so Windows batch, PowerShell and .NET build steps run natively on the server. Jenkins listens on 127.0.0.1:8080 only; Caddy serves it over HTTPS on port 443 with a certificate made for this VM, and port 80 only redirects to HTTPS. The setup wizard is replaced by a per-VM administrator: on the first boot of every VM the image creates the Jenkins home, the admin account with its own random password and the TLS certificate, so nothing is shared between machines and no default password works. The Windows Server licence is included in the virtual machine price that Microsoft bills; Jenkins is open source under the MIT License. Jenkins is a registered trademark of LF Charities Inc. 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:

  • Jenkins 2.580.3 LTS (the Jenkins project's jenkins.war, checksum verified, MIT License) in C:\Program Files\Jenkins
  • Eclipse Temurin 25.0.5.1+2 JDK (GPLv2 with the Classpath Exception), private to Jenkins, in C:\Program Files\Jenkins\jdk
  • The Windows service Jenkins (startup Automatic), running under its own virtual account NT SERVICE\Jenkins, not LocalSystem, on 127.0.0.1:8080
  • Caddy 2.11.9 as the Windows service JenkinsProxy under its own virtual account NT SERVICE\JenkinsProxy: HTTPS on TCP 443, and TCP 80 redirecting to HTTPS
  • The Jenkins home (jobs, builds, users, plugins and secrets) in C:\ProgramData\Jenkins\home, readable only by SYSTEM, Administrators and the Jenkins service
  • A per-VM admin password and self signed TLS certificate (for the VM's public IP address, private IP address and computer name), both made at first boot
  • Sign-up and anonymous access off, CSRF protection on, the inbound agent port (TCP 50000) closed and usage statistics to the Jenkins project off
  • No plugins preinstalled: you add the ones you need from Manage Jenkins > Plugins
  • Windows Firewall rules for TCP 443 and TCP 80 only
  • 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 small team; choose a larger size for many or heavy builds, since every build runs on this VM until you add agents. In the network security group, allow inbound TCP 3389 (Remote Desktop) from your own address only, and TCP 443 (Jenkins over HTTPS) and TCP 80 (the redirect to HTTPS) from your users' address ranges.

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Jenkins LTS 2.580 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), HTTPS (443) and HTTP (80), then narrow each rule's source to your own address ranges 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:jenkins-windows-server:default:latest

az vm create \
  --resource-group <your-rg> \
  --name jenkins \
  --image cloudimg1647283583153:jenkins-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 jenkins --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name jenkins --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name jenkins --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 Jenkins home, the admin account and its password, the certificate and the credentials file, and starts both services. Ports 443 and 80 stay closed in Windows Firewall until Jenkins has proved it signs in over HTTPS, so nothing answers on them before then. The setup is finished when the file C:\ProgramData\jenkins-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 Jenkins is running

Test-Path C:\ProgramData\jenkins-windows-server-firstboot.done
Get-CimInstance Win32_Service -Filter "Name LIKE 'Jenkins%'" | Format-Table Name, State, StartMode, StartName -AutoSize
Get-NetTCPConnection -State Listen -LocalPort 443, 80, 8080, 50000 -ErrorAction SilentlyContinue | Format-Table LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).ProcessName}} -AutoSize
curl.exe -skI https://127.0.0.1/login | Select-String '^(HTTP|X-Jenkins:)'
True

Name         State   StartMode StartName
----         -----   --------- ---------
Jenkins      Running Auto      NT SERVICE\Jenkins
JenkinsProxy Running Auto      NT SERVICE\JenkinsProxy

LocalAddress LocalPort Process
------------ --------- -------
::                  80 caddy
::                 443 caddy
127.0.0.1         8080 java

HTTP/1.1 200 OK
X-Jenkins: 2.580.3

True confirms first boot finished. Both services run under their own accounts and start automatically with Windows. Caddy is the only process listening on the network, on ports 443 and 80; Jenkins itself (java) listens on 127.0.0.1 only, which nothing outside the VM can reach, and nothing listens on the agent port 50000. The same checks in an elevated PowerShell window on a new VM:

An elevated PowerShell window on a new VM: first boot done, Jenkins and JenkinsProxy running and set to Automatic under their own NT SERVICE accounts, caddy on ports 80 and 443, java on 127.0.0.1:8080 only, and the sign-in page answering 200 with X-Jenkins 2.580.3

Jenkins refuses its API to anyone not signed in, and port 80 only redirects to HTTPS:

curl.exe -sk -o NUL -w "%{http_code}`n" https://127.0.0.1/api/json
curl.exe -sI http://127.0.0.1/manage/ | Select-String '^(HTTP|Location)'
403
HTTP/1.1 301 Moved Permanently
Location: https://127.0.0.1/manage/

The versions and the firewall rules:

& "C:\Program Files\Jenkins\jdk\bin\java.exe" -version
& "C:\Program Files\Jenkins\caddy\caddy.exe" version
Get-NetFirewallRule -Group 'Jenkins' | Get-NetFirewallPortFilter | Format-Table Protocol, LocalPort -AutoSize
openjdk version "25.0.5.1" 2026-11-17 LTS
OpenJDK Runtime Environment Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS)
OpenJDK 64-Bit Server VM Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS, mixed mode, sharing)
v2.11.9 h1:bhZtcRKQOq0fuLvEgCdPYvUxXyGn9kzjG4lh2332DTE=

Protocol LocalPort
-------- ---------
TCP      80
TCP      443

The first boot log records what it made. In this output and the next, the test VM's public IP address is shown as <vm-public-ip>; yours shows its own.

Get-Content C:\ProgramData\jenkins-windows-server-firstboot.log -Tail 16
2026-12-03T14:51:55.2577737Z provisioning finished
2026-12-03T14:52:06.3683841Z services: Jenkins as NT SERVICE\Jenkins, JenkinsProxy as NT SERVICE\JenkinsProxy
2026-12-03T14:52:06.6846316Z made C:\ProgramData\Jenkins (home, work: Jenkins modify; bootstrap: Jenkins read; proxy: JenkinsProxy read, proxy\state: JenkinsProxy modify)
2026-12-03T14:52:11.2289859Z init script and bootstrap files written (Jenkins URL https://<vm-public-ip>/)
2026-12-03T14:53:37.6703647Z Jenkins 2.580.3 ready and admin provisioned after 78 s
2026-12-03T14:53:46.1331297Z admin sign-in: signIn=1 adminAdmin=1 wrong=1 anonymous=1 noSignup=1 status=whoAmI:200,adminAdmin:401,wrong:401,anonymous:403,signup:404
2026-12-03T14:53:48.7522138Z security settings: realm=1 authz=1 agentPortOff=1 executors=1 csrf=1 usageStatsOff=1 noWizardPassword=1 provisioned=1
2026-12-03T14:53:48.7572197Z bootstrap admin password file deleted
2026-12-03T14:54:08.9542446Z certificate CN=<vm-public-ip> names=wsrdp-3d510d,<vm-public-ip>,10.20.0.14 sha256=B7A3DD75B2187DD5F39505074FC26A9798DFBFE148FACDC3397B8831ADE49D64; Caddyfile written
2026-12-03T14:54:37.2666770Z HTTPS front: page=1 signIn=1 redirect=1 status=200/200/301 x-jenkins=2.580.3
2026-12-03T14:54:37.2902943Z credentials written (SYSTEM and Administrators only)
2026-12-03T14:54:38.4521636Z Windows Firewall rules cloudimg-Jenkins-HTTPS-In, cloudimg-Jenkins-HTTP-In (TCP 443, 80) enabled
2026-12-03T14:54:40.3883079Z both services Automatic and running
2026-12-03T14:54:56.6141210Z first boot done

The admin sign-in line is first boot's own proof, made before the firewall opened: the admin password signs in (whoAmI:200), the well-known admin/admin and a wrong password are refused (401), anonymous access is refused (403) and there is no sign-up page (404). The password file Jenkins' setup wizard would have used is deleted once that is proven. The certificate is named for the VM's public IP address, its private IP address (10.20.0.14 here) and its computer name (wsrdp-3d510d here), and is valid for ten years; compare its SHA-256 fingerprint with the one in the log when your browser first shows it.

Step 5 - Read the admin password

First boot wrote the sign-in to a file that only the SYSTEM account and the Administrators group can read. Here it is with the password hidden:

(Get-Acl C:\ProgramData\jenkins-windows-server-credentials.txt).Access | Format-Table IdentityReference, FileSystemRights -AutoSize
(Get-Content C:\ProgramData\jenkins-windows-server-credentials.txt) -replace '(password=).*', '$1<hidden here>' | Select-String -NotMatch '^#'
IdentityReference      FileSystemRights
-----------------      ----------------
NT AUTHORITY\SYSTEM         FullControl
BUILTIN\Administrators      FullControl

jenkins-windows-server.admin.user=admin
jenkins-windows-server.admin.password=<hidden here>
jenkins-windows-server.url=https://<vm-public-ip>/

Run Get-Content C:\ProgramData\jenkins-windows-server-credentials.txt to see the password itself. It is random and different on every VM.

An elevated PowerShell window: the credentials file readable by SYSTEM and Administrators only, and the admin user, hidden password and Jenkins URL it holds

The certificate Caddy serves, and the firewall rules that admit HTTPS and the redirect:

$c = [Security.Cryptography.X509Certificates.X509Certificate2]::new('C:\ProgramData\Jenkins\proxy\tls\cert.pem'); $c | Format-List Subject, NotBefore, NotAfter, @{n='SHA256';e={$_.GetCertHashString('SHA256')}}

An elevated PowerShell window: this VM's own certificate (subject the VM's public IP, valid ten years) with its SHA-256 fingerprint, and the cloudimg-Jenkins-HTTPS-In and cloudimg-Jenkins-HTTP-In firewall rules for TCP 443 and 80

Step 6 - Sign in to Jenkins

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 use your own certificate, see Use your own domain name and certificate below). Port 80 redirects to the same page. Jenkins shows its sign-in page; there is no sign-up link:

Jenkins' sign-in page, served over HTTPS by the VM, with Username and Password fields and no sign-up link

Sign in as admin with the password from Step 5. Jenkins opens on its dashboard. This one already has a job, hello-cloudimg, whose first build succeeded:

The Jenkins dashboard with the hello-cloudimg job, its successful build #1, the build queue and the built-in node's two executors

Use the browser at the address in the credentials file (the VM's public IP address), or a DNS name you add as described below: Jenkins builds its links from that Jenkins URL.

Step 7 - Run a Windows build

Choose New Item, give the job a name, pick Freestyle project and choose OK. Under Build Steps choose Add build step > Execute Windows batch command and enter your commands, for example:

@echo off
echo Building %JOB_NAME% #%BUILD_NUMBER% on Windows Server 2025
ver
whoami
"C:\Program Files\Jenkins\jdk\bin\java.exe" -version
echo Done.

Save, then Build Now. Open the build from Build History and choose Console Output to follow it:

The console output of hello-cloudimg #1: the batch step ran as nt service\jenkins on Windows Server 2025, printed the Temurin 25 JDK version and finished with SUCCESS

Build steps run as the Jenkins service's own account, nt service\jenkins, in the job's workspace under C:\ProgramData\Jenkins\home\workspace. (The line Running as SYSTEM is Jenkins' name for its own internal identity, not the Windows SYSTEM account.) That account cannot administer Windows: install the build tools your jobs need (for example the .NET SDK, Visual Studio Build Tools or Git for Windows) as an administrator over Remote Desktop, and grant NT SERVICE\Jenkins access to any folder outside its workspace that a job must write to.

Step 8 - Use the REST API with an API token

Scripts and other tools call Jenkins' REST API with an API token rather than your password. Create one under your user menu (top right) on the Security page with Add new Token, or from PowerShell on the VM as below. This run creates a token, creates a job from an XML definition, builds it and reads its result and console, using only the token after the first call:

PS> $pw = (Select-String C:\ProgramData\jenkins-windows-server-credentials.txt -Pattern 'admin\.password=(\S+)').Matches[0].Groups[1].Value

PS> curl.exe -sk -o NUL -w "%{http_code}`n" https://127.0.0.1/api/json
403

PS> $crumb = curl.exe -sk -u "admin:$pw" -c jar.txt https://127.0.0.1/crumbIssuer/api/json | ConvertFrom-Json
PS> $new = curl.exe -sk -u "admin:$pw" -b jar.txt -H "$($crumb.crumbRequestField): $($crumb.crumb)" --data "newTokenName=pipeline" https://127.0.0.1/me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken | ConvertFrom-Json
PS> $token = $new.data.tokenValue; $token.Substring(0, 6) + '...'
1188a8...

PS> Get-Content job.xml | Select-String '<command>' -Context 0,3
>       <command>@echo off
  echo Hello from Jenkins on Windows Server 2025
  ver
  whoami</command>

PS> curl.exe -sk -u "admin:$token" -o NUL -w "%{http_code}`n" -H "Content-Type: application/xml" --data-binary "@job.xml" "https://127.0.0.1/createItem?name=hello-windows"
200
PS> curl.exe -sk -u "admin:$token" -o NUL -w "%{http_code}`n" -X POST https://127.0.0.1/job/hello-windows/build
201

PS> Start-Sleep 15; curl.exe -sk -u "admin:$token" "https://127.0.0.1/job/hello-windows/1/api/json?tree=result,duration"
{"_class":"hudson.model.FreeStyleBuild","duration":132,"result":"SUCCESS"}

PS> curl.exe -sk -u "admin:$token" https://127.0.0.1/job/hello-windows/1/consoleText
Started by user admin
Running as SYSTEM
Building in workspace C:\ProgramData\Jenkins\home\workspace\hello-windows
[hello-windows] $ cmd /c call C:\ProgramData\Jenkins\work\tmp\jenkins12529643096573353812.bat
Hello from Jenkins on Windows Server 2025

Microsoft Windows [Version 10.0.26100.33828]
nt service\jenkins
Finished: SUCCESS

job.xml is a freestyle job's definition (the config.xml of any job you made in the browser, at https://<vm-public-ip>/job/<name>/config.xml, is a good start). Requests made with an API token need no CSRF crumb. From your own computer, use the VM's address in place of 127.0.0.1. Revoke a token you no longer need on the same Security page.

Step 9 - Add plugins, agents and pipelines

Open Manage Jenkins (the gear icon) for the server's settings:

Manage Jenkins: the notice about building on the built-in node, the Content Security Policy notice, and System, Tools, Plugins, Nodes, Clouds and Appearance under System Configuration

  • Plugins: the image has none preinstalled, so you choose exactly what runs on your server. Under Manage Jenkins > Plugins > Available plugins, search for and install what you need, for example Pipeline (for Jenkinsfile pipelines), Git, Credentials Binding and Workspace Cleanup, then restart Jenkins when it asks. The VM needs outbound HTTPS to updates.jenkins.io and its mirrors.
  • Agents: Jenkins warns that building on the built-in node can be a security issue, because jobs then run on the server that holds Jenkins' own secrets. For more than one trusted team, add agents under Manage Jenkins > Nodes and set the built-in node's executors to 0. The inbound agent port (TCP 50000) is closed in this image; agents that connect over WebSocket use the same HTTPS port 443, or you can open a TCP agent port under Manage Jenkins > Security and in the firewall and network security group.
  • Content Security Policy: the blue notice is Jenkins' own suggestion; read the linked page before you enable it, as some plugins do not support it yet.

Change the admin password and add users

Change the admin password from your user menu (top right) on its Security page, then update C:\ProgramData\jenkins-windows-server-credentials.txt so the file stays right, or delete the file once you keep the password elsewhere. Sign-up is off, so you add each person yourself under Manage Jenkins > Users > Create User. Every signed-in user can do everything (the Logged-in users can do anything authorization); for finer control install the Matrix Authorization Strategy or Role-based Authorization Strategy plugin and set it under Manage Jenkins > Security.

Use your own domain name and certificate

Jenkins builds its links from its Jenkins URL, which first boot set to https://<vm-public-ip>/. To use a DNS name:

  1. Point the name (for example ci.example.com) at the VM's public IP address.
  2. In Manage Jenkins > System, set Jenkins URL to https://ci.example.com/ and Save.
  3. Replace C:\ProgramData\Jenkins\proxy\tls\cert.pem and key.pem with your certificate (full chain) and its private key, in PEM format, keeping the files' permissions.
  4. Restart the proxy:
Restart-Service JenkinsProxy

If the public IP address changes (a dynamic IP after the VM is deallocated), set the new address as the Jenkins URL the same way, or give the VM a static public IP. When you browse at an address other than the Jenkins URL, Manage Jenkins shows "It appears that your reverse proxy set up is broken": set the Jenkins URL to the address you use.

Server components

Component Version Where
Jenkins LTS 2.580.3 C:\Program Files\Jenkins\jenkins.war, service Jenkins
Eclipse Temurin JDK 25.0.5.1+2 C:\Program Files\Jenkins\jdk
Caddy 2.11.9 C:\Program Files\Jenkins\caddy\caddy.exe, service JenkinsProxy
WinSW (service wrapper) 2.12.0 C:\Program Files\Jenkins\Jenkins-service.exe, JenkinsProxy-service.exe
Windows Server 2025 Datacenter Desktop Experience

Files and folders

Path What it holds
C:\ProgramData\Jenkins\home JENKINS_HOME: jobs, builds, users, plugins, secrets and the job workspaces
C:\ProgramData\Jenkins\work The unpacked war, Jenkins' temp folder and service-logs (Jenkins' service log)
C:\ProgramData\Jenkins\proxy Caddy's Caddyfile, the certificate and key (tls) and its state and logs (state\logs)
C:\Program Files\Jenkins\README.txt What is installed, with licences, services and paths
C:\ProgramData\jenkins-windows-server-credentials.txt This VM's admin sign-in (Step 5)
C:\ProgramData\jenkins-windows-server-firstboot.log What first boot did (it never contains a password)

Maintenance

  • Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts both services automatically.
  • Back up Jenkins: everything Jenkins keeps is in C:\ProgramData\Jenkins\home. Use Azure Backup of the VM, or stop the Jenkins service and copy the folder.
  • Upgrade Jenkins: you choose when to upgrade. Read the LTS changelog and upgrade guide first, back up the Jenkins home, then stop the Jenkins service, replace C:\Program Files\Jenkins\jenkins.war with the new LTS war and start the service. Keep plugins current under Manage Jenkins > Plugins > Updates.
  • Logs: Jenkins' output is in C:\ProgramData\Jenkins\work\service-logs, Caddy's in C:\ProgramData\Jenkins\proxy\state\logs; Manage Jenkins > System Log shows Jenkins' own log in the browser.
  • Firewall: Windows Firewall allows TCP 443 and 80 through the rules in the Jenkins group; the network security group decides who can reach them.

Troubleshooting

  • Nothing answers on 443 just after deployment: first boot is still running. Wait for C:\ProgramData\jenkins-windows-server-firstboot.done, and read the first boot log.
  • The browser shows a certificate warning: expected with the image's self signed certificate; compare the fingerprint with the first boot log, or install your own certificate.
  • "It appears that your reverse proxy set up is broken": you are browsing at an address other than the Jenkins URL; set the Jenkins URL to the address you use (see Use your own domain name and certificate).
  • A build step cannot find a tool or write a folder: build steps run as NT SERVICE\Jenkins; install the tool for all users and grant that account access to the folder.
  • No plugins can be installed: the VM needs outbound HTTPS to the Jenkins update site.

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. If you have any questions about this Jenkins image or need help with your deployment, contact us through the cloudimg website.