For Azure Data Factory, how to check the branch of the triggered pipeline?

Shan Zhou 6 Reputation points
2021-09-03T04:23:32.047+00:00

For our project, a pipeline exists in both master branch and another branch (pre_prod branch).

When we manually triggered (using trigger now button) the pipeline in pre_prod branch, we are able to monitor the run status in Monitor Panel.

The question is: In monitor panel, is there any way to know whether the pipeline is triggered in the master branch or pre_prod branch?

128924-image.png
128935-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,640 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. svijay-MSFT 5,206 Reputation points Microsoft Employee
    2021-09-06T19:49:09.247+00:00

    Hello ShanZhou-4402

    Welcome to the Microsoft Q&A platform. !

    My understanding is that you'd like to know when branch of the Data factory is run when the manual trigger is run.

    When you click on the Manual Trigger - The version that has been published (Live Mode) to the ADF Service will be run by default. You could click on the pipeline run name to view the activities run.

    129692-image.png

    129732-image.png

    If you would like to know which branch has been triggered manually in the Debug Mode in other development branches.

    129741-image.png

    You could make use of the 'Annotations' feature in the Azure Data Factory.

    Step 1 : Go to the necessary branch.

    Step 2 : Click on the properties and click on New Under Annotation & provide a tag.

    Step 3: You could repeat the steps for other branches as well.

    129648-annotations.gif

    Go to Monitor Section --> Pipeline Runs --> Debug

    You could filter based on the tag/Annotation to find runs associated with each branch for the runs post this configuration.

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

    ------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    1 person found this answer helpful.