BYOD for options generators
For the BYOD integration to function correctly with your RMM, it is essential that the Database Config Name is set exactly as Rewst Cache - Database. Failure to do so will result in caching issues, affecting data retrieval performance.
This process requires you to have at least a basic understanding of PowerShell and how to use it with Microsoft.
What does BYOD do?
RMM customers occasionally face challenges with the speed at which data is returned from RMM's APIs. One efficient workaround is to leverage the Bring Your Own Database (BYOD) functionality of Rewst's SQL Database integration. Integrating BYOD with RMM streamlines data retrieval and bypasses potential lags or slow responses. With BYOD in place, RMM's options generation workflows are optimized, leading to improved performance and reduced wait times.
Set up BYOD for options generators
Set up the database
You'll need to do the following before attempting setup in Rewst:
Database setup via PowerShell: Set up an Azure Database instance utilizing the script below. It is assumed that you have an understanding of how to use PowerShell to run PowerShell scripts. Ensure that you're running this script with PowerShell 7. For more information regarding PowerShell please refer to Microsoft's documentation.
Password and script output: During the Azure setup, you'll be prompted to create a password for the DB account designated for the integration. Make sure to safely store this password and all information resulting from the run of the script. Retaining all of the script's output will be crucial for the next steps in Rewst.
Click to expand and copy the below script.
Set up steps in Rewst
Navigate to Configuration > Integrations in the left side menu of your Rewst platform.
Search for
SQL Database.Click on the integration tile.
Note that as with traditional use of the SQL Database integration, multiple databases are entered into Rewst using the drop-down menu at the top left of your configuration page.

Enter the information received from running the PowerShell script into the relevant fields:
Name - Enter
Rewst Cache - DatabaseexactlyDescription - A brief description of what the database does
Is Default checkbox - Keep this checked on
Database Config Name - Unique identifier to pick database for action
Database Type - Supported SQL databases
Hostname - Hostname for database connection
Port - Port for database connection
Username - Database user username
Password - Database user password
Database Name - Database name for database connection
SSL Required - SSL encryption provides end-to-end security of data sent during the session
SSL Hostname Verification - Verify that the SSL certificate hostname matches the connection hostname. Disable for cloud databases (GCP, AWS, Azure) that use dynamic hostnames or load balancers. SSL certificates are still validated when disabled. SSL Required must be enabled.
Custom Connection Timeout (seconds) - Default database connection timeout is 5 seconds
Custom SSL Certificate - Leave this blank if using AWS RDS or Azure SQL, which are supported by default. If your database needs a custom SSL, copy and paste the raw CA certificate here.
Click Save Configuration.
Post-integration steps specific to Rewst workflows
Following the database setup, you must attach the [Rewst - TASK] BYOD: Upsert Cache DB Data Listener workflow as a completion handler to the on-prem workflows. If you are missing this workflow, please reach out to Rewst support.
Navigate to Automations > Workflows.
Search for
[Rewst - TASK] BYOD: Upsert Cache DB Data Listener.Click ⋮ .
Select On Completion.
Click Run this workflow when...
Click
.Select the following settings:
Workflow: [REWST - OPT GEN] On-Prem: List Users By Filter With SID And UPN/sam
Trigger On Statuses: succeeded
Integration Override: SQL Database
Enabled: On
Click Submit.
Repeat steps 6-8 with the following workflows:
[REWST - OPT GEN] List On-Prem Exchange Email Domains[REWST - OPT GEN] Get All AD OUs Containing Users[REWST - TASK] List On-Prem Groups(Not Tenant Specific)[REWST - OPT GEN] Graph: List Mail Enabled Graph Users with ID and UPN[REWST - OPT GEN] List On-Prem Exchange Databases— optional[REWST - TASK] List On Prem Exchange Shared Mailboxes— optional[REWST - OPT GEN] List On-Prem Exchange Servers— optional
Post-integration steps specific to Rewst org variables
Create an organization variable named db_override and set its value to 0. This variable must exist for the BYOD integration to function correctly. To bypass BYOD tasks and fall back to live RMM calls, change the value to 1.
The first run of [REWST - TASK] BYOD: Upsert Cache DB Data Listener may take significantly longer than subsequent runs due to the initial loading of data into the cache.
Last updated
Was this helpful?
