Share via

ADF devOps Publish behavior

Ravi Kumar 80 Reputation points
2023-09-14T17:48:58.68+00:00

Hello Experts,

I want to know how Publish works in the live mode in Azure data factory when it connects to git.

does it replace everything in the live mode? The reason I am asking is when it publishes does this relace triggers created using APIs?

if this is true how to retain triggers in the live mode?

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

Bhargava-MSFT 31,361 Reputation points Microsoft Employee Moderator
2023-09-18T22:04:46.22+00:00

Hello Ravi Kumar,

In addition to Vahid Ghafarpour answer,

When you publish changes from the main branch in adf, it will replace everything in the live mode, including the triggers created using the API. So, if you make any changes to the pipeline via the UI and publish again, the triggers created through the API will be lost.

You can follow the solution below.

  • Create the trigger using API in live mode.
  • Get the trigger details as JSON using the get trigger API.
  • Place the JSON as a trigger file in the main branch.

This way, the trigger will be created in both live mode and the main branch.

Thank you again for your time and patience.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,605 Reputation points
    2023-09-14T19:14:39.5466667+00:00

    If you need to retain certain triggers that you've created manually in the live mode and don't want them to be overwritten during publishing, consider using an external scheduler (e.g., Azure Logic Apps, Azure Functions) to trigger your pipelines.

    Was this answer helpful?

    0 comments No comments

Your answer

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