How to automate Azure SQL DB Sync with other databases using ADF pipeline

Sahit 20 Reputation points
2024-01-06T11:09:36.3933333+00:00

How can I schedule the automation of Azure SQL DB Sync to other databases using an ADF pipeline? Currently, I can set a frequency, but there seems to be no option to set a start date and time. Can we initiate the Sync process through ADF pipelines?

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2024-01-07T00:04:47.08+00:00

    Maybe you can change the approach to solve the problem and use Azure Data Factory to configure an Azure Batch Job that will start the sync at the time you configure it using an Azure Az script like the one shown below:

    $resourceGroupName = "<resourceGroupName>"
    $serverName = "<serverName>"
    $databaseName = "<databaseName>"
    $syncGroupName = "MySyncGroup"
    Start-AzSqlSyncGroupSync -ResourceGroupName $resourceGroupName -ServerName $serverName -DatabaseName $databaseName -SyncGroupName $syncGroupName
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.