Skip to main content
Connector ID azuresql The Azure SQL source reads from Azure SQL Database and Azure SQL Managed Instance with resumable keyset snapshots, incremental watermark reads and change data capture. It is in preview. It runs the same reader as the SQL Server source and differs only in how it connects. Snapshot reads, types, incremental reads, change data capture and permissions work as that page describes.

Configuration

Azure SQL Database allows snapshot isolation by default, so auto reads each shard at a consistent point in time.

Authentication

sql signs in with a SQL login and password. The other types sign in with Microsoft Entra ID.
  • service_principal uses an application registration and its client secret.
  • managed_identity uses the managed identity of the host running the worker. Leave client_id empty for a system-assigned identity.
  • default tries the Azure default credential chain in order. That covers AZURE_* environment variables, AKS workload identity, managed identity and a local az login.
An Entra principal needs a database user before it can connect. Create one while signed in as an Entra administrator of the server.
In url mode set the fedauth parameter to any workflow go-mssqldb supports, such as sqlserver://myserver.database.windows.net?database=app&fedauth=ActiveDirectoryManagedIdentity.

Change data capture

The capture process differs by deployment. On Azure SQL Database it is a built-in scheduler, and CDC needs a vCore database or an S3 or higher DTU tier. On Azure SQL Managed Instance it is a SQL Agent job. Enabling CDC on the database takes db_owner on Azure SQL Database and sysadmin on Managed Instance.
The capture wait after an initial snapshot needs VIEW DATABASE PERFORMANCE STATE on Azure SQL Database. On Managed Instance it also needs VIEW SERVER PERFORMANCE STATE, granted in master, as on SQL Server 2022. Everything else follows change data capture on the SQL Server page.