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_principaluses an application registration and its client secret.managed_identityuses the managed identity of the host running the worker. Leaveclient_idempty for a system-assigned identity.defaulttries the Azure default credential chain in order. That coversAZURE_*environment variables, AKS workload identity, managed identity and a localaz login.
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 takesdb_owner on Azure SQL Database and sysadmin on Managed
Instance.
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.