Before You Start Database Access Service Account Installing First Login Installing Your License Connecting to Entra ID If Something Goes Wrong Glossary

Written For Non-Technical Installers

Installing Vetenari, start to finish.

This guide assumes no prior experience with SQL Server, Windows service accounts, or PowerShell - every technical term is explained the first time it comes up, and every command has the exact thing to type, with a plain-English explanation of what it does and what you should see happen.

If you get stuck partway through, that's normal - installing server software touches several systems at once (a database, Windows, IIS). The If Something Goes Wrong section near the end covers the most common snags in plain language.

Total time: 30–60 minutes for a local-sign-in install (most of it waiting on your DBA/IT team), +15–20 minutes if you're also connecting Entra ID.

Part 0

Before you start

Vetenari has two moving parts on the server side: a database (where all the data lives) and the application itself (which reads and writes that data). This guide sets up both. Gather these first - most of it means a short conversation with your IT team or DBA before you touch a keyboard.

Gather this first

  • The install file - a zip file named something like Vetenari.Api-v0.5.0-windows-service.zip or ...-iis.zip. If you don't have one, you're in the wrong document - this guide starts from an already-built release.
  • A decision on where the database lives - on the same machine you're installing on, or on a separate database server. Vetenari expects a Microsoft SQL Server database somewhere reachable from this machine.
  • A decision on how the app proves itself to the database - see Database Access below; you (or your DBA) will pick between two straightforward options.
  • Administrator rights on the Windows machine you're installing onto. If you don't have these, ask IT to either grant them temporarily or run the install steps with you.
  • (IIS installs only) confirmation that IIS is already set up on this machine, or willingness to install it - see Installing.
  • Your license file - the .lic file issued to your organization; see Installing Your License. If you don't have this yet, get in touch before you start - you can complete the rest of this guide without it, but most of the app won't work until it's installed.
  • (Optional) if your organization wants Entra ID sign-in, 15–20 minutes with whoever manages your Entra tenant to register an application - see Connecting to Entra ID. Skip this entirely if everyone signing in locally with a Vetenari password is fine.
About "DSN"

If someone's asked you to "set up the DSN," they mean giving Vetenari a way to find and log into its database - that's what the whole of the next section covers. Vetenari doesn't use a classic Windows ODBC DSN specifically; it uses a connection string instead, which does the same job (see the Glossary for the difference) but is typed once during install rather than configured separately in Windows.

Part 1

Setting up database access

Vetenari needs somewhere to store its data (a SQL Server database) and a way to prove it's allowed to use it. There are two ways to do the second part - pick one before continuing. If you're not sure which your organization uses, ask your DBA or IT team; the question to ask them is literally "should Vetenari connect with a SQL login, or with a Windows service account?"

Simpler, works anywhere

SQL Server Login

A username and password created directly on the database server, similar to a normal website login. Works the same way whether or not your organization has a domain, and is quicker to set up if you're not sure about the Windows Service Account path yet.

  • Just needs your DBA to run one script
  • Password is stored in Vetenari's own configuration
  • No Windows account or domain needed

Path A - Windows Service Account

1

Get a service account created

If your organization has an Active Directory domain, ask IT for a new domain service account dedicated to this application. A short email works:

Email template

"Please create a domain service account (e.g. CONTOSO\svc-vetenari) for a new application called Vetenari. It doesn't need to log in interactively or be a member of any special groups - it just needs 'Log on as a service' rights on [name of the server you're installing on], and we'll ask the DBA team to grant it access to a SQL Server database separately."

2

Ask your DBA to create a matching SQL Server login

Send your DBA this script, with the account name IT gave you filled in. This creates a login for that Windows account - nobody types a password for it, SQL Server trusts the Windows identity directly.

-- Run in SQL Server Management Studio, or hand to your DBA
CREATE LOGIN [CONTOSO\svc-vetenari] FROM WINDOWS;
GO
CREATE DATABASE Vetenari;
GO
USE Vetenari;
GO
CREATE USER [CONTOSO\svc-vetenari] FOR LOGIN [CONTOSO\svc-vetenari];
GO
ALTER ROLE db_owner ADD MEMBER [CONTOSO\svc-vetenari];
GO

Replace CONTOSO\svc-vetenari everywhere with the actual account IT created for you.

Vetenari needs db_owner specifically because it creates and updates its own database tables automatically the first time it starts (and after every update) - a narrower permission would make the app fail to start at all.

3

Your connection string will look like this

Server=SQLSERVER01;Database=Vetenari;Trusted_Connection=True;TrustServerCertificate=True

Replace SQLSERVER01 with the actual database server's name or address. Keep this line handy - you'll paste it into the install command in Part 3.

Path B - SQL Server Login

1

Ask your DBA to run this script

Pick a password yourself first (or ask your DBA to generate one) - this script creates a dedicated login for Vetenari with that password.

-- Run in SQL Server Management Studio, or hand to your DBA
CREATE LOGIN vetenari WITH PASSWORD = 'a strong password here';
GO
CREATE DATABASE Vetenari;
GO
USE Vetenari;
GO
CREATE USER vetenari FOR LOGIN vetenari;
GO
ALTER ROLE db_owner ADD MEMBER vetenari;
GO

Same reason as Path A: db_owner is needed because Vetenari manages its own database structure automatically.

2

Your connection string will look like this

Server=SQLSERVER01;Database=Vetenari;User Id=vetenari;Password=that password;TrustServerCertificate=True

Replace SQLSERVER01 and that password with your actual values. Keep this line handy for Part 3.

Test the connection before moving on

✓

Catch network problems now, not during install

From the machine you're about to install Vetenari on, open PowerShell and run this - replacing the server name with your own. It just checks the network path is open; it doesn't need Vetenari installed yet.

Test-NetConnection -ComputerName SQLSERVER01 -Port 1433
You should see TcpTestSucceeded : True. If it says False, the two machines can't reach each other on the network - that's a firewall or network configuration issue for IT to resolve before continuing. Installing Vetenari won't fix this; nothing below will work until this says True.

Part 2

Setting up the Windows Service Account

Only needed if you chose Path A above. If you're using a SQL Server Login (Path B), skip straight to Installing - there's no Windows-side account setup needed.

1

Confirm the account IT created for you

You should have a domain account name like CONTOSO\svc-vetenari and its password from Part 1, Step 1. If you don't have these yet, that has to happen before continuing - the install script needs both.

2

"Log on as a service" - usually automatic, worth knowing about

Windows requires an account to have this specific right before it can run as a service. The install script grants it automatically as part of installing (both the Windows Service and IIS paths handle this themselves) - you don't need to do anything here in advance. It's mentioned now only so that if the install step later reports a "logon failure," you'll recognize what it means: see If Something Goes Wrong.

No domain?

If your organization doesn't have Active Directory, you can create a plain local Windows account instead (Settings → Accounts → Other users → Add account, or ask IT to do it) and refer to it as .\svc-vetenari instead of CONTOSO\svc-vetenari everywhere in this guide. Note that a local account can only use Windows Authentication against a SQL Server running on that same machine - for a database on a separate server, you'll need either a domain account or to fall back to Path B (SQL Server Login) in Part 1.

Part 3

Installing Vetenari

You should now have a connection string from Part 1, and (if you chose Path A) a service account name and password from Part 2. Pick whichever of the two sections below matches the zip file you were given.

Installing as a Windows Service

1

Extract the zip

Right-click Vetenari.Api-v0.5.0-windows-service.zip and choose Extract All. Anywhere is fine - e.g. C:\Vetenari.

2

Open PowerShell as Administrator, in that folder

In the extracted folder, hold Shift and right-click an empty space, choose Open PowerShell window here (or Open in Terminal), then confirm it's elevated - if unsure, close it and instead search the Start Menu for "PowerShell", right-click it, choose Run as administrator, then type cd C:\Vetenari (or wherever you extracted to).

3

Build your install command

If you're using a SQL Server Login (Path B):

.\install-service.ps1 -ConnectionString "Server=SQLSERVER01;Database=Vetenari;User Id=vetenari;Password=...;TrustServerCertificate=True"

If you're using a Windows Service Account (Path A):

.\install-service.ps1 `
  -ConnectionString "Server=SQLSERVER01;Database=Vetenari;Trusted_Connection=True;TrustServerCertificate=True" `
  -ServiceAccount "CONTOSO\svc-vetenari" `
  -ServiceAccountPassword "that account's password"

Paste your own connection string from Part 1 in place of the highlighted text, and (Path A only) your service account name and password.

4

Run it and watch what happens

Paste your finished command and press Enter. Here's what each line means as it appears:

Creating service 'Vetenari.Api'... - Windows now knows about the app.
Setting environment variables... - your connection string is being saved (only Windows itself can read it).
Starting 'Vetenari.Api'... - the app is launching.
Verifying... - the script is checking the app actually came up correctly. This can take up to 20 seconds, especially the very first time (it's setting up its database tables).
Vetenari.Api is installed, running, and healthy at http://localhost:5000 - success.

If instead you see a warning about a password prompt for a Breakglass account, that's expected and important - see First Login next, don't close the window yet.

Installing under IIS

1

Confirm IIS and the .NET Hosting Bundle are installed

If your organization already runs other websites on this machine, IIS is probably already there. If this is a brand-new server, ask IT to install the Web Server (IIS) Windows feature, then install the .NET Hosting Bundle on top of it (a small, one-time download from Microsoft).

2

Extract the zip to where the website should live

A typical location is C:\inetpub\wwwroot\vetenari-api. Create that folder if it doesn't exist, then extract Vetenari.Api-v0.5.0-iis.zip directly into it.

3

Open PowerShell as Administrator, in that folder

Same as the Windows Service instructions above - Shift + right-click in the folder, or open PowerShell as administrator and cd into it.

4

Build and run your install command

SQL Server Login (Path B):

.\install-iis.ps1 -ConnectionString "Server=SQLSERVER01;Database=Vetenari;User Id=vetenari;Password=...;TrustServerCertificate=True"

Windows Service Account (Path A):

.\install-iis.ps1 `
  -ConnectionString "Server=SQLSERVER01;Database=Vetenari;Trusted_Connection=True;TrustServerCertificate=True" `
  -ServiceAccount "CONTOSO\svc-vetenari" `
  -ServiceAccountPassword "that account's password"
You should end with Vetenari.Api is installed under IIS and healthy at http://localhost/health. As with the Windows Service path, watch for a Breakglass password prompt before closing the window.
5

Set up HTTPS

The install script deliberately leaves this to you - it doesn't know which certificate you want to use. In IIS Manager, select the site, choose Bindings, add an https binding, and select your organization's certificate.

Part 4

Logging in for the first time

The very first time Vetenari starts against a brand-new database, it creates one emergency login for itself, called Breakglass, and shows you its password exactly once. This never happens again after the first successful start - treat this step as unmissable.

1

Read the password the install script shows you

Right after the "healthy" message in Part 3, if this is a genuinely new database, you'll see a highlighted block containing an email address and a long, random password. The script then asks:

Have you saved this password somewhere safe? Type 'yes' to delete this file now

Copy the password into your organization's password manager before typing anything. Once you type "yes", the file holding it is deleted and there is no way to retrieve it again - not even by reinstalling. If you're not certain you've saved it, type anything other than "yes" for now; the file will be left in place until you're sure, but delete it yourself as soon as you've saved the password, since it sits on disk as plain, unprotected text until then.

2

Sign in with the Breakglass account, once

Open the Vetenari desktop client (or web address, if you're using the browser-based pages), and sign in with the email and password you just saved. This account can see and do everything - that's exactly why it's not meant for daily use.

3

Create a real Admin account, then stop using Breakglass

From the Users page, create a proper Admin account for yourself (or whoever will administer the system day to day), with a password you choose normally. From this point on, sign in with that account for everyday administration, and reserve Breakglass strictly for a genuine emergency (e.g. every Admin account somehow becomes locked out).

4

Set up departments and your first real users

Vetenari scopes every record to a department. Create the departments your organization actually has from the Departments page, then create user accounts for your GRC team, assigning each one a department and the modules they need - see the Feature Guide's Access Control section for what each role tier can do.

Part 5

Installing your license

Vetenari needs a license file before most of the app is usable - a small .lic file issued to your organization once you've purchased it, tied to your organization's exact name. If you haven't received one yet, get in touch before continuing.

1

Sign in and open the License tab

Using the Breakglass account (or the real Admin account you created in Part 4), open the desktop client, go to Settings, and select the License tab.

2

Install the license file you were sent

Click Install license file... and pick the .lic file. It's plain text - don't open and re-save it in a text editor first, as that can alter it enough to fail verification.

The License tab should now show Valid, your organization's name, and how many days remain before it expires.
Common snag

If installing the file fails with "could not be verified," the single most common cause is that the license was issued for a different organization name than the one your Vetenari instance is actually set up under (even a small difference, like a missing "Ltd", is enough) - check what your organization is named in Vetenari and compare it with what you told us when the license was issued, then get in touch if they don't match so a corrected file can be issued.

Part 6

Connecting to Microsoft Entra ID

Optional. By default, everyone signs in with an email and password set inside Vetenari itself, and that keeps working forever - you don't need this section at all unless your organization specifically wants people signing in with their existing Microsoft work account instead. The emergency Breakglass account can always sign in locally with its own password no matter what you choose here, even if Entra sign-in is later misconfigured.

1

Register an application in Microsoft Entra ID

This part happens entirely on Microsoft's side, in your organization's Entra tenant, and is the same process any application goes through - it isn't specific to Vetenari, so we'll point you at Microsoft's own instructions rather than duplicate them here: Quickstart: Register an application with the Microsoft identity platform. By the end of it you should have four things written down:

  • The Directory (tenant) ID
  • The Application (client) ID
  • A client secret (created under Certificates & secrets - copy its value immediately, it's never shown again)
  • A redirect URI added under Authentication, set to your Vetenari server's own address plus /signin-oidc - for example https://vetenari.yourcompany.com/signin-oidc
2

Enter those details into Vetenari

Back in the desktop client, sign in as Breakglass or Admin, open Settings → Authentication, switch Sign-in mode to EntraId, and fill in the tenant ID, client ID, client secret, and redirect base URL (your server's own address, without the /signin-oidc part) from Step 1. Save.

Takes effect on restart

Switching the sign-in mode itself applies immediately, but if you changed the tenant ID, client ID, or secret, the server needs a restart before those specific values take effect.

3

Make sure your users already exist in Vetenari

Entra sign-in proves who someone is; it doesn't create their Vetenari account for them. Each person signing in with Entra needs an existing Vetenari user (see Part 4, Step 4) whose email address matches their Entra account exactly - create or import those first, or their sign-in will be rejected even though their Microsoft credentials are correct.

Part 7

If something goes wrong

Most install problems trace back to one of a handful of causes. Find what you're seeing below.

What you seeWhat it meansWhat to do
Test-NetConnection said "False" (Part 1) The install machine can't reach the database server at all over the network. This is a firewall or network configuration issue - hand it to IT. Nothing else in this guide will work until this is fixed.
"Login failed for user" during install Either the SQL login/password is wrong, or (for a Windows Service Account) that account has no matching SQL Server login. Re-check Part 1's script actually ran successfully against the right server, and that you typed the connection string exactly as your DBA gave it to you.
Service or app pool starts, then immediately stops Almost always a wrong service account password, or the account missing "Log on as a service" (Windows Service) / "Log on as a batch job" (IIS) rights. Double-check the password you typed. If it's definitely correct, ask IT to check Local Security Policy → User Rights Assignment for that right - a domain Group Policy can occasionally block it from being granted automatically.
Install script never says "healthy", just times out The app started but couldn't finish setting up (usually a database permissions problem, not a network one, since you already confirmed the network path works in Part 1). Confirm the login was actually granted db_owner in Part 1 - a login that can connect but can't create tables will get stuck exactly like this.
I missed the Breakglass password / deleted it by accident There is currently no way to recover or reset it after the fact. If you already created a real Admin account (Part 4, Step 3), you're fine - sign in with that instead. If not, the only path is restoring the database from a backup taken before installation, or deleting the Breakglass account's row from the database directly, which causes a new one to be generated on the next restart.
(IIS) Site shows a generic error page, no detail IIS's detailed startup log is off by default. Open web.config in the install folder, find stdoutLogEnabled under system.webServer/aspNetCore, set it to true, restart the site, reproduce the error, then check the log file that appears in the logs folder next to it.
License file won't install ("could not be verified") Almost always an organization-name mismatch between the license and your Vetenari instance - see Part 5's own note. Compare your organization's exact name in Vetenari against what was given when the license was issued. If they genuinely match and it still fails, the file may have been altered (e.g. re-saved by a text editor) - get in touch for a fresh copy.
"No Vetenari account is provisioned" when signing in with Entra ID The Entra sign-in succeeded, but no Vetenari user has a matching email address. Create (or fix the email on) a matching Vetenari user account - see Part 6, Step 3. Entra ID proves identity, it never creates the account itself.
Entra sign-in still failing after saving new tenant/client ID or secret Those three specific values only take effect after a server restart, unlike the Local/EntraId mode switch itself. Restart the Vetenari service (or app pool, for an IIS install) and try again.

Reference

Glossary

Plain-English definitions of every technical term used in this guide.

Connection string
A single line of text that tells an application where its database is and how to log into it - the server's name, the database's name, and either a username/password or an instruction to use the current Windows identity instead.
DSN
Short for "Data Source Name" - an older Windows mechanism for storing database connection details separately, configured through a Windows control panel rather than typed into the application itself. Vetenari doesn't use one; its connection string does the same job in one step, during install.
Service account
A Windows user account that exists to run a piece of software, not for a person to log in with. Using one instead of a person's own account means the software keeps working when that person leaves, changes their password, or is on holiday.
Windows (Integrated) Authentication
Proving your identity to SQL Server using your Windows login itself, with no separate password. Requires the connecting account (here, the service account) to have its own login created on the database server.
SQL (Server) Authentication
Proving your identity to SQL Server with a username and password created directly on the database, independent of Windows entirely.
Application pool
IIS's term for the isolated process a website actually runs inside. Vetenari's install script creates one dedicated to it, so it can't be affected by (or affect) any other website on the same server.
Health check
A web address (/health) Vetenari exposes specifically to answer "am I actually working?" - returns "Healthy" when it can reach its database, and something else when it can't. The install scripts check this automatically so you don't have to guess.
Breakglass account
A single emergency-only login, created automatically the first time Vetenari ever starts, with a random password shown exactly once. Named after the "break glass in case of emergency" fire-alarm boxes - meant for genuine emergencies only, not everyday administration.