Azure Data Factory and Synapse pipelines
After the Copy / Data Flow activity that lands the batch, add one of:
- Databricks Python activity / notebook (if you use Databricks):
%pip install odcr-databricksand the Python API. - Azure Function activity: a small HTTP function with
odcr-<adapter>inrequirements.txtthat runsrun_contractand returns HTTP 500 when the contract fails. - Custom activity (Azure Batch) or a self-hosted integration runtime VM running
odcr run --contract-id orders --batch-id @{pipeline().RunId} --where "load_id = '@{pipeline().RunId}'".
For file arrivals in ADLS, a storage event trigger (Blob created) can start the pipeline that runs
odcr run --for-object @{triggerBody().folderPath}/@{triggerBody().fileName} with the files adapter.
Use a managed identity: the files adapter (ADLS), sqlserver / synapse / fabric
(authentication: ActiveDirectoryMsi) and cosmosdb (no key → DefaultAzureCredential) all support it.