Overview
The OneSignal + Azure Synapse integration enables syncing of custom events from your Azure Synapse Analytics workspace to OneSignal to trigger automated messaging campaigns and Journeys based on user behavior. Azure Synapse Analytics is Microsoft’s cloud-based analytics service that combines data integration, data warehousing, and analytics.Requirements
- Access to Custom Events (currently in beta)
- Updated Account Plan (not available on free apps).
Azure Synapse
- Azure Synapse workspace with SQL pool access
- Database user with appropriate permissions
- Event tables containing structured behavioral data
- Firewall access for OneSignal IP addresses
Setup
1
Create dedicated login for OneSignal
Create a dedicated login and user account with a strong, unique password:
Replace
<your-database>
with your actual database name containing event data.2
Grant read permissions
Provide read-only access to your event data:
Replace
<your-schema>
with your actual schema name containing event data. Repeat this command for each schema you want OneSignal to access.3
Configure firewall access
Configure Azure Synapse firewall to allow OneSignal IP addresses.Use the Windows Azure Management Portal or run sp_set_firewall_rule on the primary database:
Contact OneSignal support for the current IP address ranges for your region.
4
Connect to OneSignal
In OneSignal, go to Data > Integrations and click Add Integration.Select Azure Synapse and provide the following connection details:
- Host: Your Synapse SQL endpoint hostname
- Port: 1433 (default)
- Database: Your database name
- Username:
CENSUS
- Password: The password from Step 1
Event data mapping
Map your to OneSignal’s custom events format:OneSignal Field | Description | Required | |
---|---|---|---|
name | event_name | Event identifier | Yes |
external_id | user_id | User identifier | Yes |
timestamp | event_timestamp | When event occurred | No |
properties | event_data | No |
Example Event Table Schema
SQL Query Mode
Write custom SQL queries to transform your event data:Azure-Specific Features
Distributed Architecture
- Events distributed by
user_id
for optimal query performance - Clustered columnstore indexes for analytics workloads
- Massively parallel processing (MPP) for large-scale event data
Integration with Azure Ecosystem
- Connect to Azure Data Factory for automated event pipelines
- Integrate with Azure Event Hubs for real-time event streaming
- Leverage Azure Active Directory for authentication
Advanced Network Configuration
OneSignal can successfully connect to Azure Synapse instances that are using advanced networking controls including region constraints, IP address allow lists, or SSH Tunneling. For more information about configuring network access, contact your Azure Synapse administrator or OneSignal support.Limitations
- Based on SQL Server JDBC driver connection protocol
- Requires explicit firewall rules for OneSignal IP addresses
- Complex queries may impact SQL pool performance and costs
- JSON operations require careful indexing for optimal performance
FAQ
Can I connect to multiple Azure Synapse schemas?
Yes, you can grant the CENSUS user access to multiple schemas by running theGRANT SELECT, VIEW DEFINITION ON SCHEMA::<schema>
statement for each schema containing event data.
How do I configure firewall access for OneSignal?
Use the Azure Management Portal orsp_set_firewall_rule
to add OneSignal’s IP addresses. Contact OneSignal support for the current IP ranges.