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:
- Temporarily disconnect Git integration (via ADF management blade in Azure Portal).
- Export the Live mode artifacts (via ARM template or JSON export).
- 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
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.