Applications Azure

GLPI on Windows Server 2025 on Azure User Guide

| Product: GLPI on Windows Server 2025

Overview

GLPI is an open source IT service management and IT asset management suite. From a web browser your team runs a service desk (tickets, problems and changes with SLAs), keeps an inventory of computers, monitors, network devices, phones, printers, software and licences, and tracks contracts, suppliers, budgets and a knowledge base, with dashboards and reports over all of it.

This image runs GLPI 12.0.2 on Windows Server 2025 Datacenter (Desktop Experience) with IIS, PHP 8.4 and a local MariaDB 11.4 server. GLPI is served over HTTPS on port 443, and port 80 redirects to HTTPS. On the first boot of every VM the image creates this VM's own GLPI database, GLPI's encryption key, the MariaDB passwords, the glpi administrator's password and a TLS certificate for this VM; IIS serves nothing until that is done. The Windows Server licence is included in the virtual machine price that Microsoft bills; GLPI 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:

  • GLPI 12.0.2 from the GLPI project's release archive (checksum verified), installed in C:\Program Files\GLPI, with its configuration, documents and logs kept outside the web root in C:\ProgramData\GLPI
  • IIS serving only GLPI's public folder, through the IIS URL Rewrite module, in its own application pool GLPI (No Managed Code, its own ApplicationPoolIdentity)
  • PHP 8.4.28 (non thread safe, x64) under IIS FastCGI, with the extensions GLPI 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
  • GLPI's automatic actions run every minute by the scheduled task \GLPI\GLPI cron, as LOCAL SERVICE
  • A per-VM password for the glpi super-admin; GLPI's other default accounts (tech, normal, post-only) disabled with random passwords
  • 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 small IT team; choose a larger size for many technicians, a large inventory or heavy reporting. In the network security group, allow inbound TCP 3389 (Remote Desktop), TCP 443 (GLPI) 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 GLPI 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:glpi-windows-server:default:latest

az vm create \
  --resource-group <your-rg> \
  --name glpi \
  --image cloudimg1647283583153:glpi-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 glpi --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name glpi --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name glpi --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, passwords, key and certificate and starts IIS. Until then GLPI does not answer on ports 80 and 443. The setup is finished when the file C:\ProgramData\GLPI\cloudimg-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. php and mariadb are on the system path.

Step 4: Confirm GLPI is running

Get-Content C:\ProgramData\GLPI\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 \GLPI\ | Format-Table TaskName, State, @{n='RunAs';e={$_.Principal.UserId}} -AutoSize
Get-ChildItem 'C:\Program Files\GLPI\version' | Select-Object -ExpandProperty Name
& '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-02T00:31:30.1180347Z address=52.188.121.147 certificate=CC8FF4CA126F79B917F007B2D1496576E1222212

 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
--------  ----- -----
GLPI cron Ready LOCAL SERVICE

12.0.2
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 cron task is Ready and runs every minute, and the last three lines are the GLPI, PHP and MariaDB versions.

An elevated PowerShell window on a new VM: IIS and MariaDB running and set to start automatically, ports 80 and 443 on IIS and 3306 on 127.0.0.1 only, the GLPI cron task ready as LOCAL SERVICE, and the GLPI, PHP and MariaDB versions

Step 5: Read your GLPI 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\GLPI\glpi-credentials.txt
GLPI on Windows Server 2025 by cloudimg: this VM's own credentials, made at its first boot.
GLPI: https://52.188.121.147/  (on this VM: https://localhost/)
GLPI_ADMIN_USERNAME=glpi
GLPI_ADMIN_PASSWORD=<this VM's own password>
MARIADB_ROOT_USERNAME=root
MARIADB_ROOT_PASSWORD=<this VM's own password>
GLPI_DB_NAME=glpi
GLPI_DB_USERNAME=glpi
GLPI_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.
Change the GLPI password in GLPI (My settings) and see the user guide:
https://www.cloudimg.co.uk/guides/glpi-on-windows-server-2025-azure/

GLPI_ADMIN_PASSWORD is the password of GLPI's glpi super-admin. The MariaDB passwords are for the database itself: GLPI already has its own (C:\ProgramData\GLPI\config\config_db.php), and you need root only for backups and maintenance. Keep the file safe, and change the glpi password after your first sign-in (Step 6).

Step 6: Sign in to GLPI

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.

GLPI's sign-in page in Microsoft Edge on the VM, served by IIS over HTTPS

Sign in as glpi with the password from Step 5. GLPI's well known default passwords do not work on this image: glpi has this VM's own password, and tech, normal and post-only are disabled. To change your password, open the user menu at the top right, choose My settings, and set a new one under Password.

Step 7: The dashboard

After signing in you land on the Home page of GLPI's standard interface, with the Central dashboard: counts of your assets, tickets by status and month, and quick links. A new GLPI shows demonstration data on its dashboards until you switch it off, with a banner saying so: select Disable demonstration in that banner, and the dashboard shows your own data (empty until you add some).

GLPI's Central dashboard after signing in as the glpi super-admin, with demonstration data switched off

Step 8: Add assets to the inventory

Open Assets > Computers to see the computer inventory. Add a computer with the + button, or import computers automatically by installing the GLPI Agent on them and pointing it at https://<your GLPI address>/ (GLPI's native inventory is under Administration > Inventory; enable it there first). The same views exist for monitors, software, network devices, printers, phones and the rest, and Assistance > Tickets is the service desk.

Assets > Computers in GLPI: the inventory's search view on a new VM, ready for computers added by hand or by the GLPI Agent

To send email notifications (ticket updates, alerts), configure an SMTP server under Setup > Notifications > Email notifications configuration, then turn notifications on under Setup > Notifications.

Step 9: Check the identities everything runs as

GLPI's web pages run in the IIS application pool GLPI under its own ApplicationPoolIdentity, a low privilege account that can read GLPI's code and configuration and write only its documents and logs. MariaDB runs as its own virtual account, and the cron task as LOCAL SERVICE. Open Internet Information Services (IIS) Manager and select Application Pools to see the pool:

IIS Manager showing the GLPI application pool, No Managed Code, running as its own ApplicationPoolIdentity

The same from PowerShell, with 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-Acl C:\ProgramData\GLPI\glpi-credentials.txt).Access | Format-Table IdentityReference, FileSystemRights, AccessControlType -AutoSize
name state   managedRuntimeVersion Identity
---- -----   --------------------- --------
GLPI Started                       ApplicationPoolIdentity

Name      : MariaDB
StartName : NT SERVICE\MariaDB
StartMode : Auto
State     : Running

IdentityReference      FileSystemRights AccessControlType
-----------------      ---------------- -----------------
NT AUTHORITY\SYSTEM         FullControl             Allow
BUILTIN\Administrators      FullControl             Allow

An elevated PowerShell window: MariaDB running as NT SERVICE\MariaDB, the credentials file readable by SYSTEM and Administrators only, and its contents with every password hidden

Server Components

Component Version or setting Where
GLPI 12.0.2 C:\Program Files\GLPI (code), C:\ProgramData\GLPI (configuration, documents, logs)
Web server IIS 10, site GLPI on public\ only, pool GLPI (ApplicationPoolIdentity, No Managed Code), IIS URL Rewrite 2.1 C:\Program Files\GLPI\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\GLPI\mariadb-data
Automatic actions Scheduled task \GLPI\GLPI cron, every minute, LOCAL SERVICE php.exe C:\Program Files\GLPI\front\cron.php
HTTPS TCP 443, this VM's self signed certificate (RSA 2048, private key not exportable, valid 3 years) Cert:\LocalMachine\My, friendly name "GLPI web server (this VM, cloudimg)"
HTTP TCP 80, redirects to HTTPS Windows Firewall rules in the group GLPI
Windows Server 2025 Datacenter, Desktop Experience, build 26100

Filesystem Layout

Path What it holds
C:\Program Files\GLPI\ GLPI's code. Administrators only can change it; IIS serves only its public folder
C:\Program Files\GLPI\inc\downstream.php Points GLPI at its configuration, data and log folders under C:\ProgramData\GLPI
C:\ProgramData\GLPI\config\ config_db.php (the database connection), glpicrypt.key (GLPI's encryption key, made for this VM) and GLPI's OAuth keys
C:\ProgramData\GLPI\files\ Uploaded documents, pictures, caches, sessions and cron locks
C:\ProgramData\GLPI\log\ GLPI's logs (php-errors.log, cron.log and others)
C:\ProgramData\GLPI\mariadb-data\ The MariaDB data directory and its my.ini. MariaDB's account, SYSTEM and Administrators only
C:\ProgramData\GLPI\glpi-credentials.txt This VM's passwords. SYSTEM and Administrators only
C:\ProgramData\GLPI\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 GLPI's automatic actions now
php "C:\Program Files\GLPI\front\cron.php"

# GLPI's own command line (database checks, caches, plugins and more)
php "C:\Program Files\GLPI\bin\console" list

To confirm the HTTP redirect, the HTTPS page, that GLPI's installer and log folder 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
Get-Status http://localhost/
Get-Status https://localhost/
Get-Status https://localhost/install/install.php
Get-Status https://localhost/files/_log/
Get-ChildItem Cert:\LocalMachine\My | Where-Object FriendlyName -like 'GLPI*' | Format-List Subject, NotAfter, Thumbprint, FriendlyName
Get-WebBinding -Name GLPI | Format-Table protocol, bindingInformation -AutoSize
301 Moved Permanently https://localhost/
200 OK
404 Not Found
404 Not Found

Subject      : CN=52.188.121.147
NotAfter     : 12/2/2029 12:30:09 AM
Thumbprint   : CC8FF4CA126F79B917F007B2D1496576E1222212
FriendlyName : GLPI web server (this VM, cloudimg)

protocol bindingInformation
-------- ------------------
http     *:80:
https    *:443:

Port 80 answers 301 Moved Permanently to https://localhost/, the sign-in page answers 200, and GLPI's web installer and its data folders answer 404 because IIS serves only GLPI's public folder. The certificate is named for the VM's public IP address and is valid for three years.

An elevated PowerShell window: http://localhost/ redirecting to HTTPS, the sign-in page answering 200, the web installer answering 404, this VM's own certificate and the site's two bindings

On Startup

At the first start of your VM, the scheduled task cloudimg-firstboot (SYSTEM) runs once:

  1. It keeps IIS stopped and disabled and the GLPI cron task off, and waits until Azure has finished setting up the VM
  2. It creates C:\ProgramData\GLPI locked to SYSTEM and Administrators, with only the access the web server, MariaDB and the cron task need
  3. 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 glpi database and account with their own password
  4. It installs GLPI's database, which creates this VM's glpicrypt.key, then sets this VM's password for glpi and disables tech, normal and post-only
  5. It writes C:\ProgramData\GLPI\glpi-credentials.txt, readable by administrators only
  6. It creates this VM's TLS certificate, named for the VM's public and private addresses, and binds it to port 443
  7. It starts IIS, waits for GLPI's sign-in page at https://localhost/, turns the cron task on, sets IIS to start automatically, writes cloudimg-firstboot.done, then removes itself and its script

If anything fails, IIS stays stopped, the cron task 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. GLPI holds your inventory and your users' tickets: open 443 only to the networks your technicians and users are on, and prefer a VPN or private network.
  • Change the glpi password after your first sign-in, and create named accounts (or connect LDAP or Active Directory under Setup > Authentication) instead of sharing glpi.
  • Do not re-enable the tech, normal or post-only accounts without giving each a new password: GLPI's published defaults for them are well known.
  • Keep the plugin marketplace on the command line. In this image plugins are installed with php bin\console marketplace:download and plugin:install by an administrator on the VM, never from the browser, so the web server cannot install code.
  • 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 GLPI site:

$cert = Import-PfxCertificate -FilePath C:\path\to\glpi.example.com.pfx -CertStoreLocation Cert:\LocalMachine\My -Password (Read-Host -AsSecureString 'PFX password')
Import-Module WebAdministration
(Get-WebBinding -Name GLPI -Protocol https -Port 443).AddSslCertificate($cert.Thumbprint, 'My')
php "C:\Program Files\GLPI\bin\console" config:set url_base https://glpi.example.com

Point your DNS name at the VM's public IP address and browse to https://glpi.example.com/. url_base is the address GLPI puts in the links of its emails.

Maintenance

  • Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts IIS and MariaDB automatically.
  • GLPI updates: follow GLPI's own upgrade procedure: back up first, replace the code in C:\Program Files\GLPI with the new release (keeping inc\downstream.php), then run php bin\console database:update. Your configuration and data in C:\ProgramData\GLPI are untouched by the code change.
  • Back up your data: back up the database with mariadb-dump (as root, with the password from the credentials file) and the folders C:\ProgramData\GLPI\config and C:\ProgramData\GLPI\files; keep glpicrypt.key with the backup, because GLPI's stored secrets cannot be read without it. Azure Backup for the whole VM is a simple alternative.
  • Logs: GLPI's logs are in C:\ProgramData\GLPI\log, IIS's in C:\inetpub\logs\LogFiles, and first boot's in C:\ProgramData\GLPI\cloudimg-firstboot.log (it never contains a password).
  • Firewall: Windows Firewall allows 443 and 80 through the rules in the GLPI group; the network security group decides who can reach them.

Troubleshooting

GLPI 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\GLPI\cloudimg-firstboot.log

"Incorrect username or password"

The username is glpi (lower case). Copy the password from GLPI_ADMIN_PASSWORD= in C:\ProgramData\GLPI\glpi-credentials.txt. If you changed the password in GLPI, the file still holds the first one.

GLPI reports a problem with its requirements

Run GLPI's own check from an elevated PowerShell window; it names anything missing:

php "C:\Program Files\GLPI\bin\console" system:check_requirements

Automatic actions do not run

Check that the task is Ready and when it last ran, and read GLPI's cron log:

Get-ScheduledTask -TaskPath \GLPI\ | Get-ScheduledTaskInfo | Format-List TaskName, LastRunTime, LastTaskResult
Get-Content C:\ProgramData\GLPI\log\cron.log -Tail 20

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.

GLPI is a trademark of Teclib'. cloudimg is not affiliated with or endorsed by Teclib' or the GLPI project; the software is provided under its open source licence (GPL-3.0).