SQL installation options
Access Manager requires a Microsoft SQL Server 2017 or higher database. The setup program can install a pre-configured instance of SQL express, or you can choose to use an existing SQL server, or even an Azure SQL database.
Using the pre-configured SQL Express instance
During installation, you can choose to have a pre-configured instance of SQL Express installed. The installer will create and configure a new SQL express instance (named AMS
) on the local machine. Access to the database will be restricted to local administrators and the AMS service account.
This is suitable for small to medium-sized installations of Access Manager, and has a number of benefits such as being completely configured and managed by the AMS service itself. Do note that SQL express has several limitations that you will need to consider;
1 GB maximum memory used by the database engine
10 GB maximum database size
1 MB maximum buffer cache
Limited to the lesser of one (1) CPU socket or four (4) cores
For larger installations of Access Manager, you should consider using SQL server Standard or Enterprise edition.
If you are using the high-availability feature of Access Manager, you cannot use SQL Express. The SQL instance will need to be installed on a separate computer. Alternatively, use an Azure SQL or Amazon RDS database configured for high availability.
If you plan to use SQL Express, but the server you are installing on does not have an internet connection, then download the SQL Express installer and copy it to the server. You'll be prompted to provide this file during setup.
Using SQL Standard or Enterprise Edition
If you are running Access Manager in a large environment, or SQL express is otherwise not suitable, you can set up the AMS database on an SQL instance of your choosing. You must manually set up your instance, and create the database, before running the installer. During installation, you will be prompted for the server and instance name.
The database should be called AccessManager
and the AMS service account must be added to the db_owner
role of the database. Your database administrator can do this for you, or you can use the script below to create a new database with the default settings, and assign the correct permissions.
Installation steps
Use the following steps to manually create the database, allowing you to specify advanced properties like where the database files will be located, how big they should be initially and how much they should grow by, and what recovery mode to use.
Create a new database on the SQL server with the name
AccessManager
.Create a login for the service account
Map the service account login to the
AccessManager
databaseAdd the service account to the
db_owner
role for theAccessManager
databaseOnce these steps are complete, you can run the AMS installer, and specify your SQL server name and instance when prompted
Alternatively, you can use the following script to create a basic database with default settings. Note, that the default settings may not result in a database that is suitable for production use. You should ensure that at least the following settings are appropriate for your environment
Database file location
Database initial size and auto growth settings
Ensure the recovery mode matches your backup strategy and recovery point objectives
Using Azure SQL
Using an Azure SQL database is fully supported by Access Manager. You'll need to create an empty database before running the installer, and create a login for the AMS service to use.
Installation steps
From the Azure Portal, create a new
SQL Database
resourceFollow the wizard prompts, specifying the database name, and instance type as appropriate. We recommend you use the name
AccessManager
Once the database has been provisioned, open the new resource
Select the
Query editor
option from the left menu, and authenticate to the instanceIn the query editor window, paste the following code after modifying the password field to contain your own strong password
Run the code to create a user in the database for the service account to use
From the menu on the left-hand side, select
Connection Strings
, and copy theADO.NET
connection stringModify the username and password in the connection string to contain the username and password you created earlier. Your connection string should look similar to below
Once these steps are complete, you can run the AMS installer, and provide the connection string when prompted.
Using Amazon RDS
Using an AWS RDS Microsoft SQL database is fully supported by Access Manager. You'll need to create an empty database before running the installer, and create a login for the AMS service to use.
Installation steps
From the AWS Console, create a new
Microsoft SQL Server
RDS resourceSelect the appropriate options and instance configuration for your environment
Once the server has been provisioned, ensure you allow the AMS server access to the RDS instance via the appropriate security groups
Using Microsoft SQL Management Studio, connect to the RDS instance using the admin credentials created during the setup process
In the query editor window, paste the following code after modifying the password field to contain your own strong password
Using the connecting string template below, modify the
Server
,User ID
andPassword
variables to match the RDS endpoint and service credentials you created
Once these steps are complete, you can run the AMS installer, and provide the connection string when prompted.
Security considerations
It is important to secure access to your database. It contains information used by computers to authenticate to the AMS directory, as well as their group membership.
We recommend that if possible, the database server is kept dedicated for Access Manager, and not shared with other applications. Administrators of the database server should be restricted to AMS admins only.
Last updated