TeamPass on Windows Server 2025 on Azure User Guide
Overview
TeamPass is an open source collaborative password manager for teams. It keeps shared credentials in an encrypted vault organised as a folder tree, and grants access per folder and per role, so each person sees only what their role allows. It records item history and audit logs of who viewed or changed what, makes one-time links for handing a secret to someone outside the vault, stores file attachments, generates passwords and enforces expiry policies, and can sign people in through LDAP or Active Directory with optional two-factor authentication.
This image runs TeamPass 3.2.4.6 on Windows Server 2025 Datacenter (Desktop Experience) with IIS, PHP 8.4 and a local MariaDB 11.4 server. TeamPass is served over HTTPS on port 443, and port 80 redirects to HTTPS. Because this is a password manager, the image contains no vault at all: no database, no settings file, no encryption key and no administrator. On the first boot of every VM, TeamPass's own installer runs on that VM only and makes its database, its encryption saltkey, the MariaDB passwords, the admin password and a TLS certificate for this VM; the installer is then deleted, and IIS serves nothing until all of that is done. The Windows Server licence is included in the virtual machine price that Microsoft bills; TeamPass is free software under the GNU General Public License v3. 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:
- TeamPass 3.2.4.6 from the project's release archive (checksum verified), installed in
C:\Program Files\TeamPass, with only itspublicfolder served by IIS - IIS through the IIS URL Rewrite module, in its own application pool TeamPass (No Managed Code, its own ApplicationPoolIdentity)
- PHP 8.4.28 (non thread safe, x64) under IIS FastCGI, with the extensions TeamPass needs and OPcache on
- MariaDB 11.4.14 (long term support) as the Windows service
MariaDB, running as its own virtual account and listening on 127.0.0.1 only - TeamPass's background tasks run every minute by the scheduled task
\TeamPass\TeamPass scheduler, as LOCAL SERVICE - A per-VM encryption saltkey, database passwords and
adminpassword, all made on your VM at its first boot - HTTPS on TCP 443 with this VM's own self signed certificate, TCP 80 redirecting to HTTPS, and Windows Firewall rules for both
- Windows Server 2025 Datacenter, patched with Windows Update at build, with 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; choose a larger size for many users or a large vault. In the network security group, allow inbound TCP 3389 (Remote Desktop), TCP 443 (TeamPass) and TCP 80 (the redirect to HTTPS) from your own address ranges only.
Step 1: Deploy from the Azure Marketplace
Sign in to the Azure Portal, choose Create a resource, search the Marketplace for TeamPass 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:teampass-windows-server:default:latest
az vm create \
--resource-group <your-rg> \
--name teampass \
--image cloudimg1647283583153:teampass-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 teampass --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name teampass --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name teampass --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 database, saltkey, passwords and certificate, runs TeamPass's installer and starts IIS. Until then TeamPass does not answer on ports 80 and 443. The setup is finished when the file
C:\ProgramData\TeamPass\cloudimg-firstboot.doneexists (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 TeamPass is running
Get-Content C:\ProgramData\TeamPass\cloudimg-firstboot.done
Get-Service W3SVC, MariaDB | Format-Table Status, StartType, Name, DisplayName -AutoSize
Get-NetTCPConnection -State Listen -LocalPort 80, 443, 3306 | Sort-Object LocalPort | Format-Table LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).ProcessName}} -AutoSize
Get-ScheduledTask -TaskPath \TeamPass\ | Format-Table TaskName, State, @{n='RunAs';e={$_.Principal.UserId}} -AutoSize
Select-String -Path 'C:\Program Files\TeamPass\app\config\include.php' -Pattern "'TP_VERSION(_MINOR)?'" | ForEach-Object { $_.Line.Trim() }
& 'C:\Program Files\PHP\php.exe' -r 'echo PHP_VERSION, PHP_EOL;'
& 'C:\Program Files\MariaDB 11.4\bin\mariadb.exe' --version
done 2026-12-03T16:50:46.0667597Z address=<VM address> certificate=B603DB6446357777F31E56DCD8A704B23EB01E2A
Status StartType Name DisplayName
------ --------- ---- -----------
Running Automatic MariaDB MariaDB
Running Automatic W3SVC World Wide Web Publishing Service
LocalAddress LocalPort Process
------------ --------- -------
:: 80 System
:: 443 System
127.0.0.1 3306 mysqld
TaskName State RunAs
-------- ----- -----
TeamPass scheduler Ready LOCAL SERVICE
define('TP_VERSION', '3.2.4');
define('TP_VERSION_MINOR', '6');
8.4.28
C:\Program Files\MariaDB 11.4\bin\mariadb.exe from 11.4.14-MariaDB, client 15.2 for Win64 (AMD64), source revision e6b2d842af869e102809e31cf3d00ee897e60a86
The first line shows when first boot finished, the address it named the certificate for (the VM's public IP address) and the certificate's thumbprint. IIS (W3SVC) and MariaDB start automatically with Windows. Ports 80 and 443 belong to System because IIS listens through the Windows HTTP stack, and MariaDB listens on 127.0.0.1 only, so the database is never reachable from the network. The scheduler task is Ready and runs every minute. The last lines are the TeamPass version (3.2.4 minor 6, that is 3.2.4.6), then the PHP and MariaDB versions.

Step 5: Read your TeamPass password
First boot wrote this VM's passwords to a file that only the SYSTEM account and the Administrators group can read:
Get-Content C:\ProgramData\TeamPass\teampass-credentials.txt
TeamPass on Windows Server 2025 by cloudimg: this VM's own credentials, made at its first boot.
TeamPass: https://<VM address>/ (on this VM: https://localhost/)
TEAMPASS_ADMIN_USERNAME=admin
TEAMPASS_ADMIN_PASSWORD=<this VM's own password>
MARIADB_ROOT_USERNAME=root
MARIADB_ROOT_PASSWORD=<this VM's own password>
TEAMPASS_DB_NAME=teampass
TEAMPASS_DB_USERNAME=teampass
TEAMPASS_DB_PASSWORD=<this VM's own password>
MariaDB listens on 127.0.0.1:3306 only. The HTTPS certificate is self-signed for this VM: replace it with your own.
Back up the saltkey in C:\Program Files\TeamPass\secrets with the database: without it no stored password can be decrypted.
Change the admin password in TeamPass (your profile) and see the user guide:
https://www.cloudimg.co.uk/guides/teampass-on-windows-server-2025-azure/
TEAMPASS_ADMIN_PASSWORD is the password of TeamPass's admin account. The MariaDB passwords are for the database itself: TeamPass already has its own (encrypted with this VM's saltkey in C:\Program Files\TeamPass\app\config\settings.php), and you need root only for backups and maintenance. Keep the file safe, and change the admin password after your first sign-in (Step 6).
Step 6: Sign in to TeamPass
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 trusted certificate below). On the VM itself, Microsoft Edge trusts it and opens https://localhost/ without a warning, and http:// addresses redirect to HTTPS.

Enter the account admin and the password from Step 5. The third field is how many minutes your session lasts. The first sign-in takes a few seconds longer while TeamPass makes the account's personal encryption keys; that happens once per user. To change your password, open the account menu at the top right and choose your profile.
Step 7: The dashboard
After signing in you land on the administration dashboard. It shows the TeamPass version, counts of active users, items, folders and the last day's log entries, a System Health panel (its Encryption System: Operational confirms this VM's saltkey is loaded) and Actions required, TeamPass's own checklist for a new vault.

One of those actions is Save a Recovery Package: download it and keep it somewhere safe and separate from the VM, as TeamPass asks.
Step 8: Add your team and grant access
Credentials live in folders, and access is granted per folder through roles. Under Access in the left menu:
- Folders: select New to add a folder (for example
Infrastructure), with a name and a password complexity requirement. - Roles: create a role, then give it read or write rights on the folders it needs.
- Users: select New to add each person with their login, email and role.

The admin account administers settings, folders, roles and users; it is not listed among the users and does not hold credentials itself. Create named accounts for the people who read and store passwords. To sign people in with their directory accounts, set up LDAP or Active Directory under Authentication; two-factor authentication is set up there too. To send email (new account notices, one-time links), configure an SMTP server under Configuration.
Step 9: Check the identities everything runs as
TeamPass's web pages run in the IIS application pool TeamPass under its own ApplicationPoolIdentity, a low privilege account that can read TeamPass's code, settings and saltkey but not change them, and can write only its sessions, uploads and logs. MariaDB runs as its own virtual account, and the scheduler task as LOCAL SERVICE. Open Internet Information Services (IIS) Manager and select Application Pools to see the pool:

The same from PowerShell, with the saltkey folder and the credentials file's permissions:
Import-Module WebAdministration
Get-ChildItem IIS:\AppPools | Select-Object Name, State, managedRuntimeVersion, @{n='Identity';e={$_.processModel.identityType}} | Format-Table -AutoSize
Get-CimInstance Win32_Service -Filter "Name='MariaDB'" | Format-List Name, StartName, StartMode, State
Get-ChildItem -Force 'C:\Program Files\TeamPass\secrets' | Format-Table Mode, LastWriteTime, Length, Name -AutoSize
(Get-Acl C:\ProgramData\TeamPass\teampass-credentials.txt).Access | Format-Table IdentityReference, FileSystemRights, AccessControlType -AutoSize
name state managedRuntimeVersion Identity
---- ----- --------------------- --------
TeamPass Started ApplicationPoolIdentity
Name : MariaDB
StartName : NT SERVICE\MariaDB
StartMode : Auto
State : Running
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/25/2026 7:11:24 PM 0 .gitkeep
-a---- 12/3/2026 4:50:15 PM 136 u1JYE36g6psEv6Gkqp9jVHm6YhY7E8BPbzxw4uX3
IdentityReference FileSystemRights AccessControlType
----------------- ---------------- -----------------
NT AUTHORITY\SYSTEM FullControl Allow
BUILTIN\Administrators FullControl Allow
The file in secrets with the long random name is this VM's saltkey, made at first boot (the .gitkeep beside it comes with TeamPass's release). Its name and contents are different on every VM.

Server Components
| Component | Version or setting | Where |
|---|---|---|
| TeamPass | 3.2.4.6 | C:\Program Files\TeamPass (web root public\, code and settings in app\, saltkey in secrets\, attachments in storage\) |
| Web server | IIS 10, site TeamPass on public\ only, pool TeamPass (ApplicationPoolIdentity, No Managed Code), IIS URL Rewrite 2.1 |
C:\Program Files\TeamPass\public |
| PHP | 8.4.28 NTS x64, IIS FastCGI | C:\Program Files\PHP |
| Database | MariaDB 11.4.14, service MariaDB (NT SERVICE\MariaDB), 127.0.0.1:3306 only, utf8mb4 |
C:\Program Files\MariaDB 11.4, data in C:\ProgramData\TeamPass\mariadb-data |
| Background tasks | Scheduled task \TeamPass\TeamPass scheduler, every minute, LOCAL SERVICE |
php.exe C:\Program Files\TeamPass\app\sources\scheduler.php |
| HTTPS | TCP 443, this VM's self signed certificate (RSA 2048, private key not exportable, valid 3 years) | Cert:\LocalMachine\My, friendly name "TeamPass web server (this VM, cloudimg)" |
| HTTP | TCP 80, redirects to HTTPS | Windows Firewall rules in the group TeamPass |
| Windows Server | 2025 Datacenter, Desktop Experience, build 26100 |
Filesystem Layout
| Path | What it holds |
|---|---|
C:\Program Files\TeamPass\public\ |
What IIS serves: TeamPass's pages, with web.config holding TeamPass's URL rules |
C:\Program Files\TeamPass\app\config\settings.php |
The database connection, its password encrypted with this VM's saltkey. Not served, and the web pool cannot change it |
C:\Program Files\TeamPass\secrets\ |
This VM's saltkey. Back it up with the database: without it no stored password can be decrypted |
C:\Program Files\TeamPass\storage\ |
Encrypted file attachments, uploads, TeamPass's backups and logs |
C:\ProgramData\TeamPass\mariadb-data\ |
The MariaDB data directory and its my.ini. MariaDB's account, SYSTEM and Administrators only |
C:\ProgramData\TeamPass\sessions\, tmp\, log\ |
PHP sessions, temporary files and PHP's error log |
C:\ProgramData\TeamPass\teampass-credentials.txt |
This VM's passwords. SYSTEM and Administrators only |
C:\ProgramData\TeamPass\cloudimg-firstboot.log |
What first boot did (never a password or key) |
Managing the Services
From an elevated PowerShell window:
# restart the web server
iisreset
# restart the database
Restart-Service MariaDB
# run TeamPass's background tasks now
Start-ScheduledTask -TaskPath \TeamPass\ -TaskName 'TeamPass scheduler'
To confirm the HTTP redirect, the HTTPS page, that TeamPass's installer and its code folders are not served, and this VM's certificate and bindings, define a small helper that shows the status line of an address without following redirects, then run the checks:
function Get-Status([string]$url) {
$rq = [Net.HttpWebRequest]::Create($url); $rq.AllowAutoRedirect = $false; $rq.Timeout = 60000
try { $rs = $rq.GetResponse() } catch [Net.WebException] { $rs = $_.Exception.Response; if (-not $rs) { return "no answer ($($_.Exception.Status))" } }
try { "$([int]$rs.StatusCode) $($rs.StatusDescription) $($rs.Headers['Location'])".Trim() } finally { $rs.Close() }
}
Import-Module WebAdministration
$ip = @(Get-NetIPAddress -AddressFamily IPv4 | Where-Object { $_.IPAddress -notlike '127.*' -and $_.IPAddress -notlike '169.254.*' })[0].IPAddress
Get-Status http://localhost/
Get-Status https://localhost/
Get-Status "https://$ip/install/install.php"
Get-Status https://localhost/sources/core.php
Get-Status https://localhost/includes/language/english.php
Get-ChildItem Cert:\LocalMachine\My | Where-Object FriendlyName -like 'TeamPass*' | Format-List Subject, NotAfter, Thumbprint, FriendlyName
Get-WebBinding -Name TeamPass | Format-Table protocol, bindingInformation -AutoSize
301 Moved Permanently https://localhost/
200 OK
404 Not Found
403 Forbidden
403 Forbidden
Subject : CN=<VM address>
NotAfter : 12/3/2029 4:49:42 PM
Thumbprint : B603DB6446357777F31E56DCD8A704B23EB01E2A
FriendlyName : TeamPass web server (this VM, cloudimg)
protocol bindingInformation
-------- ------------------
http *:80:
https *:443:
Port 80 answers 301 Moved Permanently to https://localhost/ and the sign-in page answers 200. TeamPass's installer answers 404 because first boot deleted it once it had made this VM's vault, and TeamPass's internal source and language files answer 403, as TeamPass's own rules require. The certificate is named for the VM's public IP address and is valid for three years.

On Startup
At the first start of your VM, the scheduled task cloudimg-firstboot (SYSTEM) runs once:
- It keeps IIS stopped and disabled and the TeamPass scheduler off, and waits until Azure has finished setting up the VM
- It creates
C:\ProgramData\TeamPasslocked to SYSTEM and Administrators, with only the access the web server, MariaDB and the scheduler need - It creates a new MariaDB instance for this VM: no anonymous accounts, no test database, root on this VM only with its own password, and a
teampassdatabase and account with their own password - It creates this VM's TLS certificate, named for the VM's public and private addresses, and binds it to port 443
- It runs TeamPass's own installer on this VM only (answered to the VM itself, never to the network): the database tables, this VM's saltkey,
settings.phpand theadminaccount with this VM's own password; then it deletes the installer - It writes
C:\ProgramData\TeamPass\teampass-credentials.txt, readable by administrators only - It turns the scheduler on, starts IIS, waits for TeamPass's sign-in page at
https://localhost/, sets IIS to start automatically, writescloudimg-firstboot.done, then removes itself and its script
If anything fails, IIS stays stopped, the scheduler stays off, and the task starts again from a clean state at the next start. Every start after that, IIS and MariaDB start with Windows.
Security Recommendations
- Keep ports 80 and 443 to your own networks. TeamPass holds your team's passwords: open 443 only to the networks your team is on, and prefer a VPN or private network.
- Change the
adminpassword after your first sign-in, keepadminfor administration, and give every person a named account (or connect LDAP or Active Directory). - Turn on two-factor authentication under Authentication before you store real credentials.
- Back up the saltkey with the database (see Maintenance). If you lose it, the stored passwords cannot be recovered, by design.
- Do not give this VM a managed identity unless you need one. Any program on the VM can reach the Azure Instance Metadata Service (
169.254.169.254) and, through it, a managed identity's tokens.
Use a trusted certificate
First boot's certificate is self signed. To use a certificate for your own DNS name, import it (a .pfx with its private key) into Cert:\LocalMachine\My and bind it to port 443 of the TeamPass site:
$cert = Import-PfxCertificate -FilePath C:\path\to\vault.example.com.pfx -CertStoreLocation Cert:\LocalMachine\My -Password (Read-Host -AsSecureString 'PFX password')
Import-Module WebAdministration
(Get-WebBinding -Name TeamPass -Protocol https -Port 443).AddSslCertificate($cert.Thumbprint, 'My')
Point your DNS name at the VM's public IP address and browse to https://vault.example.com/. Then set TeamPass's own address to it under Configuration, so the links in its emails use your name.
Maintenance
- Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts IIS and MariaDB automatically.
- TeamPass updates: follow TeamPass's own upgrade procedure for the new release, after a backup. Your vault, saltkey and settings stay on the VM; keep
secrets\,app\config\settings.phpandstorage\when you replace the code. - Back up your vault: back up the database with
mariadb-dump(as root, with the password from the credentials file), the saltkey folderC:\Program Files\TeamPass\secrets,app\config\settings.phpandstorage\, together. Keep the saltkey somewhere safe and separate as well, with the Recovery Package from Step 7. Azure Backup for the whole VM is a simple alternative. - Logs: TeamPass's logs are in
C:\Program Files\TeamPass\storage\logsand PHP's inC:\ProgramData\TeamPass\log, IIS's inC:\inetpub\logs\LogFiles, and first boot's inC:\ProgramData\TeamPass\cloudimg-firstboot.log(it never contains a password). - Firewall: Windows Firewall allows 443 and 80 through the rules in the TeamPass group; the network security group decides who can reach them.
Troubleshooting
TeamPass does not answer, or cloudimg-firstboot.done is missing
First boot may still be running: give it a few minutes and check again. Its log shows how far it got:
Get-Content C:\ProgramData\TeamPass\cloudimg-firstboot.log
TeamPass refuses the sign-in
The account is admin (lower case). Copy the password from TEAMPASS_ADMIN_PASSWORD= in C:\ProgramData\TeamPass\teampass-credentials.txt. If you changed the password in TeamPass, the file still holds the first one. TeamPass locks an account for a while after repeated wrong passwords: wait, then try again with the right one.
Background tasks do not run
Check that the task is Ready and when it last ran:
Get-ScheduledTask -TaskPath \TeamPass\ | Get-ScheduledTaskInfo | Format-List TaskName, LastRunTime, LastTaskResult
Forgot the Windows password
Use Reset password on the VM's page in the Azure portal.
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.
TeamPass is a trademark of its respective owner. cloudimg is not affiliated with or endorsed by the TeamPass project; the software is provided under its open source licence (GPL-3.0).