Azure SQL Database Configuration
Overview
This section provides instructions on how to create and configure your Azure SQL database.
Create the Azure SQL database
The Azure SQL database instance has to be created in the Azure Portal. See Create an Azure SQL database in the Azure portal for more information on how to create the database. Once you've completed the instructions, you'll have:
The name of the Azure SQL server
The credentials of the administrator account
A server-level firewall rule for your IP address server
The name of the Azure SQL database.
Step 1: Configure the Azure SQL database
Via the Azure Portal
Connect to your Azure SQL database instance with the administrator account you created by using the SQL Database Query Editor in Azure Portal or SQL Management Studio.
You have to create a SQL Server user account with
db_datareader
anddb_datawriter
permissions. See How to create a non-administrator user account, or run the following script in the SQL Database Query Editor or SQL Management Studio (the master database must be selected):Get the database creation script by downloading the latest WorkflowGen manual installation pack and extracting it to
DRIVE:\temp
.Open the
DRIVE:\temp\pack\Databases\MsSQLServer
source folder and run thecreate.sql
database creation SQL script on the new database instance.
Via the Azure CLI
The Azure SQL database can also be created via Azure CLI scripts. To do this:
Copy the WorkflowGen database
create.sql
script to theC:\Azure\setup\sql
folder. If you want to change the path, you'll have to edit the$sqlScriptPath
variable in the following script as well.
The following scripts create the SQL Server and SQL Database. The SQL database admin password variable ($sqlAdminPassword
) must be updated; the resource group name ($resourceGroup
), pricing tier ($sqlServiceObjective
), and SQL script path ($sqlScriptPath
) should be updated as well. (For more information on the pricing tier, see https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-database-service-objectives-azure-sql-database?view=azuresqldb-current.)
Option A: Contained database mode The following script creates the database user (
wfgen_user
) in a contained database. The SQL database user password variable ($sqlUserPassword
) must be updated.✏️ Note: Do not run the
Remove my public IP
script if you need access to the database from your desktop or if your WorkflowGen server is not hosted by Azure.Option B: Standard database mode The following script creates the database user (
wfgen_user
) in a standard database. The SQL database user password variable ($sqlUserPassword
) must be updated.✏️ Note: Do not run the
Remove my public IP
script if you need access to the database from your desktop or if your WorkflowGen server is not hosted by Azure.
Step 2: Configure WorkflowGen
Open the WorkflowGen web.config
file and add the following node under <connectionStrings>
:
Replace
<server name>
with the server name (e.g.workflowgen.database.windows.net
).Replace
<database name>
with the database name (e.g.WFGEN
).Replace
<database user>
with the database user (e.g.wfgen_user
).Replace
<password>
with the database user's password.
We strongly recommend that you add encrypt=true
and trustServerCertificate=false;
to the connectionString
in order to establish a secure connection to the database.
Last updated