Sync feature between live mode and git mode Data Factory

Mateo Giraldo Arboleda 20 Reputation points
2025-06-12T01:26:46.24+00:00

Is There an Official Way to Synchronize Live Mode and Git Mode in Azure Data Factory?

I'm currently using Azure Data Factory with Git integration enabled. However, I was curious about what happens if I start making changes in Live mode instead of Git mode.

Specifically, is there an official or recommended way to synchronize changes made in Live mode back into Git mode?

For example, when I make changes directly in Live mode and then click the Publish all button, I expect it might sync the changes. But since Live mode and Git mode operate differently, I consistently encounter the following error:

enter image description here

How should I approach syncing Live mode content with Git mode properly to avoid this issue?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,582 questions
0 comments No comments
{count} votes

Accepted answer
  1. Smaran Thoomu 24,015 Reputation points Microsoft External Staff Moderator
    2025-06-12T04:24:17.7033333+00:00

    Hi @Mateo Giraldo Arboleda

    Thanks for sharing the details - including the screenshot. The error you’re seeing:

    "You are not allowed to make changes or publish from 'Data Factory' mode as your data factory has Git enabled."

    This is expected behavior when Git integration is enabled in Azure Data Factory.

    Important Clarification:

    Once Git is enabled:

    • All authoring must happen in Git mode.
    • Live (Data Factory) mode becomes read-only - it's meant to reflect the last successful publish from Git.

    This means:

    • Any changes made directly in Live mode will not be synced to Git, nor can they be published.
    • Trying to publish from Live mode leads to the error you're experiencing.

    Suggested workflow:

    • Use Git mode to make all changes.
    • Use “Publish” (top-right in Git mode) to deploy changes to Live mode.
    • This ensures your code is version-controlled and synced properly.

    If you made changes in Live mode by mistake:

    To recover and sync them into Git:

    1. Temporarily disconnect Git integration (via ADF management blade in Azure Portal).
    2. Export the Live mode artifacts (via ARM template or JSON export).
    3. Re-enable Git and manually merge those changes into your repo.

      Note: There’s no automated sync from Live to Git - Git is always considered the source of truth when enabled.

    Please check the links below.

    https://github.com/Azure/Azure-DataFactory/tree/main/SamplesV2/ContinuousIntegrationAndDelivery

    https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-automate-azure-pipelines

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    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.