Azure SQL managed instance
You can deploy EMS using an Azure SQL managed instance. Azure provides two SQL-based offerings: Azure SQL managed instances and Azure SQL databases, which are mutually incompatible. EMS only supports Azure SQL managed instances. Azure SQL databases do not provide all features that EMS requires.
The following example deploys Azure virtual machines (VM) for EMS nodes. However, the deployment also supports on-premise EMS instances. You can set up on-premise EMS nodes outside of the Azure environment.
The deployment consists of the following steps:
- Deploy VMs in Azure. See To deploy VMs in Azure:.
- Install an Azure SQL managed instance. See To install an Azure SQL managed instance:.
- Configure file sharing. See To configure file sharing:.
- Install EMS. See To install EMS:.
The document also provides information on backing up and restoring a database on EMS when using this deployment. See To restore a database:.
To deploy VMs in Azure:
- In the Azure marketplace, select the desired VM listing.
- Click Create, then Create a virtual machine hosted by Azure.
- Configure the basic configuration fields as follows:
- If you require VM redundancy, select the desired availability option. Otherwise, select No infrastructure redundancy required.
- Select the desired VM image. See Management capacity.
- Configure other fields as desired. Click Next.
- For OS disk type, select Premium SSD. Click Next.
- Configure network settings:
- Configure other settings as desired, then create the VM. This example uses default settings.
- For both EMS nodes, configure security group inbound ports and allow access to ports 8013, 443, 8015, 10443, and 8443 for endpoint connection, EMS web access, FortiGate Fortinet Security Fabric connection, FortiClient package deployment, and Chromebook access.
To install an Azure SQL managed instance:
- In the Azure marketplace, search for SQL managed instance.
- Click Create.
- When configuring the number of vCores and the storage size, consider the sizing guidelines in Management capacity. Configure other fields as desired, then click Next.
- Configure network settings:
- From the Virtual network / subnet dropdown list, select the EMS servers' VNet.
- For the Connection type (VNet-local endpoint) dropdown list, leave the default value, Proxy (Default).
- If the EMS server may need to access this SQL instance over the Internet, enable Public endpoint (data). Otherwise, click disable this option.
- Configure other settings as desired, then create the instance.
- After deployment finishes, go to Settings > Connection strings. Note the SQL database FQDN and listen port. The EMS installation requires these values.
- If you plan to have the EMS server access the SQL database publicly, go to the SQL managed instance network security group and add an inbound rule to allow access for port 3342.
To configure file sharing:
Sharing files between EMS nodes relies on network shares that only the EMS nodes can access. If you are deploying on-premise EMS nodes, you can use a shared folder. For this deployment, where the EMS nodes are deployed on Azure, file sharing uses Azure blob file share.
- Create a storage account:
- In the Azure marketplace, search for storage account.
- Click Create.
- For Performance, select Premium.
- From the Premium account type dropdown list, select Block blobs. Configure other fields as desired, then click Next.
- On the Advanced tab, leave the default settings. Click Next.
- Under Public network access, select Enabled from selected virtual networks and IP addresses.
- Under Virtual networks, select the EMS server VNet.
- Set Routing Preference to Microsoft network routing.
- Leave the default settings for data protection and encryption. Proceed to create the account.
- Once Azure creates the storage account, verify the following settings under Configuration:
- Secure Transfer required is disabled.
- Blob public access is enabled.
- Storage account key access is enabled.
- Version 1.2 is configured for minimum TLS version.
- Go to Security + networking > Networking.
- Under Firewall, add IP addresses to allow access from the Internet.
- Enable Allow Azure services on the trusted services list to access this storage account.
- Go to Data storage > File shares.
- Create a file share.
- From the context menu, click Connect, then select Show Script.
- Note the path, username, and password values to use during EMS installation.
To install EMS:
Do one of the following:
- If installing EMS on nodes in Azure, do the following:
- During EMS installation, the installer mounts file shares as the W:\ drive. Ensure that the W:\ drive is free on all EMS nodes.
- Start the EMS installation on the primary node using the following command:
FortiClientEndpointManagementServer_7.0.9._x64.exe SQLServer=<Azure_SQL_FQDN> SQLPort=<Azure_SQL_Port> PaaS=azure SQLUser=<SQL User> SQLUserPassword=<SQL_Password> InstallSQL=0 ScriptDB=1 FileStorageNic= FileStorageNicUser= FileStorageNicPass=
Parameter
Description
PaaS=azure
Informs EMS that it will connect to an Azure SQL managed instance. FileStorageNic
Fileshare path. FileStorageNicUser
Fileshare username.
FileStorageNicPass
Fileshare password.
ScriptDB=1
Specifies that this is the primary node.
The following provides an example command:
SQLServer=azuresqlemsha.public.123456789.database.windows.net SQLPort=3342 PaaS=azure SQLUser=emsadmin SQLUserPassword=Password123# InstallSQL=0 ScriptDB=1 FileStorageNic= \\fileshare.file.core.windows.net\storage FileStorageNicUser=localhost\fileshare FileStorageNicPass= TfXCxJkNP4kbzR78GhOYYxcZS22hGQ+lMcke
After installation completes, a mapped drive for the fileshare is created.
Start the EMS installation on the secondary node using the following command:
FortiClientEndpointManagementServer_7.0.9._x64.exe SQLServer=azuresqlemsha.public.123456789.database.windows.net SQLPort=3342 PaaS=azure SQLUser=emsadmin SQLUserPassword=Password123# InstallSQL=0 ScriptDB=0 FileStorageNic= \\fileshare.file.core.windows.net\storage FileStorageNicUser=localhost\fileshare FileStorageNicPass= TfXCxJkNP4kbzR78GhOYYxcZS22hGQ+lMcke
ScriptDB=0
indicates that this is the secondary node.For Azure traffic manager setup in an Azure environment, see Fabric connection setup using traffic manager.
- If installing on-premise EMS, do the following:
- Create and share a folder on the network. This share folder is mounted as a drive during EMS installation.
- Install EMS on the primary node with the following command:
FortiClientEndpointManagementServer_7.0.9._x64.exe SQLServer=<Azure_SQL_FQDN> SQLPort=<Azure_SQL_Port> PaaS=azure SQLUser=<SQL User> SQLUserPassword=<SQL_Password> InstallSQL=0 ScriptDB=1 FileStorageNic= FileStorageNicUser= FileStorageNicPass=
.The following provides an example command:
FortiClientEndpointManagementServer_7.0.9._x64.exe SQLServer=azuresqlemsha.public.123456789.database.windows.net SQLPort=3342 PaaS=azure SQLUser=emsadmin SQLUserPassword=AzureSql123!@# InstallSQL=0 ScriptDB=1 FileStorageNic= \\Server\emsshare FileStorageNicUser=LAB\administrator FileStorageNicPass= Admin123!
Parameter
Description
FileStorageNic
Fileshare path. FileStorageNicUser
Username for account with read/write/modify permissions to the shared folder.
FileStorageNicPass
Password for account with read/write/modify permissions to the shared folder.
- Install EMS on the secondary node with the following command:
FortiClientEndpointManagementServer_7.0.9._x64.exe SQLServer=azuresqlemsha.public.123456789.database.windows.net SQLPort=3342 PaaS=azure SQLUser=emsadmin SQLUserPassword=AzureSql123!@# InstallSQL=0 ScriptDB=0 FileStorageNic= \\Server\emsshare FileStorageNicUser=LAB\administrator FileStorageNicPass= Admin123!
To restore a database:
When using an Azure SQL managed instance database, EMS cannot manage database backups or restore backups generated from another EMS instance. Azure provides a comprehensive dashboard to set up and managed automatic database backups. This is the recommended method of database restore and backup for this deployment. Restoring a regular SQL server backup and upgrading EMS from an existing SQL server installation to an EMS with Azure SQL managed instance database is not supported.
- In the Azure portal, go to Databases.
- Select the FCM database.
- Click Restore.
- Enter a unique name.
- Repeat the process for all EMS databases.
- Log in to SQL Server Management Studio and confirm that it lists the backup databases.
- To restore a database, delete the original database from the Azure portal.
- Rename the backup database to the original name using the following command. For example, to restore the FCM_backup database, rename it to FCM as follows:
ALTER DATABASE [FCM_backup] MODIFY NAME = [FCM]
.