Apache Subversion on Windows Server 2025 on Azure User Guide
Overview
This guide covers the deployment and use of Apache Subversion on Windows Server 2025 on Microsoft Azure, using cloudimg's virtual machine image from the Azure Marketplace.
Apache Subversion (SVN) is the Apache Software Foundation's open source (Apache License 2.0) centralised version control system. This image runs a Subversion server, svnserve, as a Windows service: your developers check out, commit and update over the svn:// protocol on TCP port 3690, with any Subversion client (TortoiseSVN, the svn command line, or an IDE). The VM comes with one repository, made for this VM at its first boot, and a sign-in for it with this VM's own password.
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:
- Apache Subversion 1.15.0:
svnserve,svnadmin,svnlookand thesvnclient, from TortoiseSVN 1.15.0 (64-bit), the Windows Subversion client, installed from its official MSI. The MSI's SHA-256 checksum and its Authenticode signature were verified when the image was built. Every TortoiseSVN feature is installed except its crash reporter, so nothing on the VM sends crash reports anywhere svnserverunning as the Windows service svnserve ("Subversion Server (svnserve)") under its own virtual service account NT SERVICE\svnserve, never LocalSystem: started at boot and restarted if it ever stops. It serves every repository underC:\Repositories- One repository,
C:\Repositories\repo(svn://<your-vm>/repo), created at the first boot of your VM, so its UUID is its own - The user cloudimg with a random 24-character password made at the first boot of your VM, written to
C:\ProgramData\svn-credentials.txt(readable by administrators only). No password ships in the image, so no two VMs share one - Anonymous access off: every read and write needs a user name and password. Passwords are checked with CRAM-MD5, so they never cross the network in clear
- A Windows Firewall rule, Subversion svnserve (TCP-In), allowing TCP 3690 in for
svnserve.exeonly - 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 2 December 2026
- The Azure VM agent, so Azure features such as Reset password and Run command work
- Accelerated networking supported (on sizes that offer it), Trusted Launch and NVMe sizes supported
- 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 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.
Subversion sign-in: user cloudimg, password in C:\ProgramData\svn-credentials.txt on your VM
svn://is not encrypted. svnserve protects the password (CRAM-MD5) but sends your files and commit messages in clear. Reach it from inside your Azure virtual network, over a VPN, or from your own fixed addresses only (Step 1), never from the whole internet.
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 (and, if your developers work from outside Azure, Subversion) from that address only
- A Subversion client for your developers: TortoiseSVN on Windows, or the
svncommand line (brew install subversion,sudo apt install subversion)
Recommended size: Standard_B2ms (2 vCPUs, 8 GiB memory), plenty for a team's repositories; a larger data disk is worth adding for big repositories (Filesystem Layout).
Step 1: Deploy the Virtual Machine
Option A: Azure Portal
- In the Azure Marketplace, search for "Apache Subversion 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 8)
- On the Networking tab, choose the Virtual network your developers' machines (or your VPN gateway) are in
- Click Review + create, then Create
- When the deployment finishes, open the VM's Networking (Network settings) page and edit the inbound rule for port 3389: set Source to My IP address (or your office or VPN address range). If developers outside Azure will use Subversion directly, add a rule for TCP 3690 from their addresses only
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:apache-subversion-windows-server:default:latest
az vm create \
--resource-group myResourceGroup \
--name my-svn \
--image cloudimg1647283583153:apache-subversion-windows-server:default:latest \
--size Standard_B2ms \
--vnet-name myVnet --subnet default \
--admin-username <your-admin-name> \
--public-ip-sku Standard \
--nsg-rule NONE
Then allow Remote Desktop, and Subversion if you need it from outside Azure, from your own address only:
az network nsg rule create \
--resource-group myResourceGroup \
--nsg-name my-svnNSG \
--name allow-rdp-svn-from-my-ip \
--priority 1000 \
--direction Inbound --access Allow --protocol Tcp \
--destination-port-ranges 3389 3690 \
--source-address-prefixes <your-public-ip>/32
az vm list-ip-addresses --resource-group myResourceGroup --name my-svn \
--query "[0].virtualMachine.network.{public:publicIpAddresses[0].ipAddress, private:privateIpAddresses[0]}" -o table
No rule is needed for machines in the same (or a peered) virtual network: Azure's default AllowVnetInBound rule already lets them reach port 3690.
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.
Subversion does not need you to stay signed in: svnserve runs as a Windows service from the moment the VM starts.
The service shows in Services (services.msc) as Subversion Server (svnserve): Running, Automatic, logging on as NT SERVICE\svnserve:

Step 3: Check the server and read your password
Open Windows PowerShell as administrator (right-click the Start button, then Terminal (Admin)) and run:
Test-Path C:\ProgramData\svn-firstboot.done
Get-CimInstance Win32_Service -Filter "Name='svnserve'" | Format-List Name, DisplayName, State, StartMode, StartName, PathName
Get-NetTCPConnection -State Listen -LocalPort 3690 | Format-Table LocalAddress, LocalPort -AutoSize
svnserve --version --quiet
On a new VM:
True
Name : svnserve
DisplayName : Subversion Server (svnserve)
State : Running
StartMode : Auto
StartName : NT SERVICE\svnserve
PathName : "C:\Program Files\TortoiseSVN\bin\svnserve.exe" --service --root "C:\Repositories" --listen-host 0.0.0.0 --listen-port 3690
LocalAddress LocalPort
------------ ---------
0.0.0.0 3690
1.15.0
True means the one-time first-boot task has finished (see On Startup). --root "C:\Repositories" means a URL's path is read from that folder: svn://<your-vm>/repo is C:\Repositories\repo.

Your Subversion sign-in is in C:\ProgramData\svn-credentials.txt. Open it in Notepad (as administrator) or print it:
Get-Content C:\ProgramData\svn-credentials.txt
Here with the password hidden:
# Apache Subversion on Windows Server 2025 by cloudimg: this VM's own Subversion sign-in, made at first boot.
# From inside your virtual network use the private address below; from elsewhere use the VM's public IP
# address or DNS name (Azure portal > the VM > Overview), with TCP 3690 allowed in its network security group.
# Guide: https://www.cloudimg.co.uk/guides/apache-subversion-on-windows-server-2025-azure/
svn.url.private=svn://10.20.0.15/repo
svn.repository=C:\Repositories\repo
svn.uuid=baf60a64-e179-7746-b8fa-02031daa9a5a
svn.user=cloudimg
svn.password=<redacted>
svn.url.private uses your VM's private address; the UUID is your repository's own.
Step 4: Your first commit
On the VM, the svn command line is ready to use (TortoiseSVN's command line tools are on the path). Anonymous access is refused; the cloudimg user checks out the empty repository, adds a file and commits it. Reading the password into a variable and passing it on standard input keeps it off the screen and out of the command history:
svn info svn://127.0.0.1/repo --non-interactive
$pw = ((Get-Content C:\ProgramData\svn-credentials.txt) -match '^svn.password=') -replace '^svn.password=', ''
$pw | svn checkout svn://127.0.0.1/repo C:\work\repo --username cloudimg --password-from-stdin
Set-Content C:\work\repo\README.txt 'Our first file'; svn add C:\work\repo\README.txt
$pw | svn commit C:\work\repo -m "Add README" --username cloudimg --password-from-stdin
$pw | svn log svn://127.0.0.1/repo -v --username cloudimg --password-from-stdin

Step 5: A second working copy
Each developer works in their own working copy. A second check-out (here on the same VM, in C:\work\second) gets the README from Step 4, adds a file of its own and commits it; the log on the server then shows both commits. A wrong password is refused like no password at all:
"not-the-password" | svn info svn://127.0.0.1/repo --username cloudimg --password-from-stdin --non-interactive
$pw | svn info svn://127.0.0.1/repo --username cloudimg --password-from-stdin
$pw | svn checkout svn://127.0.0.1/repo C:\work\second --username cloudimg --password-from-stdin
Set-Content C:\work\second\hello.txt "Hello from a second working copy"; svn add C:\work\second\hello.txt
$pw | svn commit C:\work\second -m "Add hello.txt" --username cloudimg --password-from-stdin
$pw | svn log svn://127.0.0.1/repo -v --username cloudimg --password-from-stdin
svn: E170013: Unable to connect to a repository at URL 'svn://127.0.0.1/repo'
svn: E170001: Authentication error from server: Password incorrect
Path: repo
URL: svn://127.0.0.1/repo
Relative URL: ^/
Repository Root: svn://127.0.0.1/repo
Repository UUID: baf60a64-e179-7746-b8fa-02031daa9a5a
Revision: 1
Node Kind: directory
Last Changed Author: cloudimg
Last Changed Rev: 1
Last Changed Date: 2026-12-02 00:58:52 +0000 (Wed, 02 Dec 2026)
A work\second\README.txt
Checked out revision 1.
A work\second\hello.txt
Adding work\second\hello.txt
Transmitting file data .done
Committing transaction...
Committed revision 2.
------------------------------------------------------------------------
r2 | cloudimg | 2026-12-02 01:03:02 +0000 (Wed, 02 Dec 2026) | 1 line
Changed paths:
A /hello.txt
Add hello.txt
------------------------------------------------------------------------
r1 | cloudimg | 2026-12-02 00:58:52 +0000 (Wed, 02 Dec 2026) | 1 line
Changed paths:
A /README.txt
Add README
------------------------------------------------------------------------
svn info shows the repository's UUID, the same as svn.uuid in svn-credentials.txt. To bring the first working copy up to date with the second one's commit, run $pw | svn update C:\work\repo --username cloudimg --password-from-stdin.
Step 6: Connect from your developers' machines
From a machine in the same virtual network, use the private URL from svn-credentials.txt; from outside, use the VM's public IP address or DNS name (with TCP 3690 allowed from that machine's address, Step 1):
svn checkout svn://<vm-private-or-public-address>/repo myproject --username cloudimg
svn asks for the password. TortoiseSVN on Windows: right-click in a folder, SVN Checkout..., enter svn://<address>/repo, then the user name and password when asked.
If you already have a repository, import it into the new one with svnadmin load (Backups below) or start by committing your tree with svn import.
Step 7: The firewall
Port 3690 is let in by one Windows Firewall rule, for svnserve.exe only. All three firewall profiles are on, blocking every other inbound connection:
Get-NetFirewallProfile -PolicyStore ActiveStore | Format-Table Name, Enabled, DefaultInboundAction -AutoSize
Get-NetFirewallRule -Group 'Subversion (svnserve)' | ForEach-Object { [pscustomobject]@{ Rule = $_.DisplayName; Enabled = $_.Enabled; Direction = $_.Direction; Action = $_.Action; Protocol = ($_ | Get-NetFirewallPortFilter).Protocol; LocalPort = ($_ | Get-NetFirewallPortFilter).LocalPort; Program = ($_ | Get-NetFirewallApplicationFilter).Program } } | Format-List

Who can reach port 3690 is decided by the VM's network security group (Step 1): keep it to your virtual network, VPN or your own addresses.
Step 8: Users and passwords
Users and passwords for a repository are in its conf\passwd file, one name = password line per user under [users]. Open it as administrator:
notepad C:\Repositories\repo\conf\passwd
# Users of this repository and their passwords (svnserve password-db). Readable by SYSTEM, Administrators and
# NT SERVICE\svnserve only. Add a user as another "name = password" line; svnserve reads it at each connection.
[users]
cloudimg = <this VM's password>
alice = <a long random password>
The alice line is one you add: a line per developer, save, and they can sign in at their next connection. The file holds passwords in plain text, which is why only administrators and the svnserve service can read it: keep it that way. To change the cloudimg password, change its line here (and in svn-credentials.txt if you keep using that file).
Finer control (read-only users, per-folder rights) goes in an authz file: add authz-db = authz under [general] in conf\svnserve.conf and write the rules as in the Subversion book's path-based authorization.
Step 9: More repositories
Every folder under C:\Repositories that is a repository is served, at svn://<address>/<folder>. A new repository starts with Subversion's default svnserve.conf, which allows anonymous read access, so copy this VM's settings into it straight away:
svnadmin create C:\Repositories\project2
Copy-Item C:\Repositories\repo\conf\svnserve.conf, C:\Repositories\repo\conf\passwd C:\Repositories\project2\conf\ -Force
The new repository inherits C:\Repositories' permissions (SYSTEM and Administrators full control, the service modify), so svnserve can write to it with no restart.
Step 10: Keeping Windows and Subversion up to date
Windows: Windows Update is on, as in Microsoft's image. Check for updates in Settings > Windows Update, and plan restarts: svnserve starts again by itself after a restart, and developers cannot commit while the VM restarts.
Subversion: new releases are announced at subversion.apache.org and shipped for Windows in new TortoiseSVN versions, at tortoisesvn.net/downloads.html. Download the 64-bit MSI, check its signature (Get-AuthenticodeSignature .\TortoiseSVN-<version>-x64-svn-<svn-version>.msi reports Valid), stop the service and install it over the old one, leaving out the crash reporter as this image does:
Stop-Service svnserve
msiexec /i .\TortoiseSVN-<version>-x64-svn-<svn-version>.msi /qn /norestart ADDLOCAL=ALL REMOVE=CrashReporter
Start-Service svnserve
svnserve --version --quiet
Your repositories, svnserve.conf and passwd are untouched by an upgrade. A new Subversion version reads repositories made by older ones; run svnadmin upgrade C:\Repositories\repo only if its release notes ask for it.
Server Components
| Component | Version or setting | Where |
|---|---|---|
| Apache Subversion | 1.15.0 (svnserve, svnadmin, svnlook, svn) |
C:\Program Files\TortoiseSVN\bin\ |
| TortoiseSVN | 1.15.0.29830, 64-bit, every feature but the crash reporter | C:\Program Files\TortoiseSVN\ |
| Service | svnserve ("Subversion Server (svnserve)"), NT SERVICE\svnserve, Automatic, restarted on failure |
Services |
| Subversion protocol | svn:// on TCP 3690, every address; CRAM-MD5 passwords, no anonymous access |
firewall group "Subversion (svnserve)" |
| Repositories | C:\Repositories\ (served root), repo made at first boot |
|
| Windows Server | 2025 Datacenter, Desktop Experience, 24H2, build 26100.33828 |
Configuration
Each repository's conf\svnserve.conf is its server configuration. This VM's repository has:
[general]
anon-access = none
auth-access = write
password-db = passwd
[sasl]
use-sasl = false
anon-access = none refuses anyone without a password; auth-access = write lets signed-in users read and commit. The service's own settings (the served root, the address and the port) are on its command line, the PathName in Step 3. To serve on another port, change it with sc.exe config svnserve binPath= ... and change the firewall rule to match, then restart the service.
Backups
Two ways, both while svnserve keeps running:
svnadmin hotcopy C:\Repositories\repo D:\backup\repo-copy
svnadmin dump C:\Repositories\repo --quiet > D:\backup\repo.dump
hotcopy makes a ready-to-use copy of the repository; dump makes a portable file you load into any Subversion server with svnadmin load. Store them off the VM (an Azure file share or Blob storage), or use Azure Backup for the whole VM.
Filesystem Layout
| Path | What it holds |
|---|---|
C:\Program Files\TortoiseSVN\bin\ |
svnserve.exe, svnadmin.exe, svnlook.exe, svn.exe and the other Subversion tools, with TortoiseSVN's own programs |
C:\Repositories\ |
Every served repository. SYSTEM and Administrators full control, NT SERVICE\svnserve modify |
C:\Repositories\repo\conf\ |
svnserve.conf and passwd (Administrators and SYSTEM full control, the service read only; passwd read by no one else) |
C:\ProgramData\svn-credentials.txt |
This VM's Subversion URL, repository, UUID, user and password (Administrators and SYSTEM only) |
C:\ProgramData\svn-firstboot.log |
What the one-time first-boot task did |
C:\ProgramData\svn-firstboot.done |
Written when the first-boot task finished |
The OS disk is Microsoft's 127 GB Windows disk (C:). For large repositories, add a data disk and move or create repositories on it under a folder you then serve (change --root on the service command line).
Managing the Service
From an elevated PowerShell window:
Restart-Service svnserve
Get-Service svnserve | Format-Table Name, Status, StartType -AutoSize
Stop-Service svnserve and Start-Service svnserve stop and start it; to keep it stopped across restarts, also run Set-Service svnserve -StartupType Disabled (and -StartupType Automatic to undo).
On Startup
At the first start of your VM, the scheduled task \cloudimg\Subversion first boot (SYSTEM) runs once:
- It waits until Windows setup and Azure have finished setting up the VM
- It creates
C:\Repositorieswith its permissions already in place, then the repositoryrepowithsvnadmin create, so its UUID is this VM's own - It locks the repository's
confandhooksfolders to administrators (the service may read them, not change them) and writessvnserve.conf - It makes the
cloudimgpassword (24 random characters) and writesconf\passwdandC:\ProgramData\svn-credentials.txt, each created with its permissions already in place - It sets the service to Automatic, starts it and waits until a signed-in
svn infoanswers with the repository's UUID - It writes
C:\ProgramData\svn-firstboot.done, then deletes its own task and script
Its log is C:\ProgramData\svn-firstboot.log. It runs only once, so there is nothing to turn off. Every start after that, Windows starts the svnserve service.
Troubleshooting
svn-credentials.txt or svn-firstboot.done is missing
The first-boot task may still be running: give it a minute or two after the VM starts and check again. Its log shows how far it got. A failure leaves the task in place, so it tries again at the next start.
"Can't get username or password"
The server asked for a password and the client had none to give (--non-interactive, or a script). Give --username and the password, as in Step 4. Anonymous access is refused on purpose.
"Authentication error from server: Password incorrect"
The user name or password does not match a line in the repository's conf\passwd. Copy the password from svn-credentials.txt again (it has no spaces), and check the user's line in passwd.
"Unable to connect" or a timeout from another machine
- Check svnserve is running and listening (Step 3)
- From inside the virtual network, use the VM's private address; from outside, check the network security group allows TCP 3690 from the client's public address (Step 1)
- Test the port from the client:
Test-NetConnection <address> -Port 3690(Windows) ornc -vz <address> 3690(Linux, macOS)
Forgot the Windows password
Use Reset password on the VM's page in the Azure portal.
Security Recommendations
svn://is not encrypted: keep port 3690 to your virtual network, a VPN or your own fixed addresses, never the whole internet- Keep Remote Desktop restricted to your own address (Step 1), or use Azure Bastion
- Give each developer their own user in
conf\passwdrather than sharingcloudimg, and remove a line when someone leaves - Never turn on anonymous access, and copy this VM's
svnserve.confinto every new repository (Step 9) - Back up the repositories off the VM, and keep Windows Update on
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, connecting your Subversion clients, users, repositories 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
Apache, Apache Subversion and Subversion are trademarks of the Apache Software Foundation. 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.