An Azure service for ingesting, preparing, and transforming data at scale.
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.