'Disable activity in Azure Data factory pipeline without removing it

So I am testing each of the activities of the pipeline and I want to disable some of the activities in it. Essentially there is an activity of sending emails which I want to disable as I wanted to see the output of prior activities.

Offcourse I dont want to remove the email sending activity because it is in the prod environment and not developed by me.

Is there any way to disable it?



Solution 1:[1]

You could disable the trigger or delay the trigger execution to some date in the future.

Solution 2:[2]

This builds on Martin Esteban Zurita's answer, if you need to prevent activities from the beginning or from within the middle of your pipeline running, without deleting them altogether:

You can temporarily change the order of the activities and make the ones you want to disable run at the end of the pipeline instead, (closing any gaps you may have created), then click the last activity you do want to run and click the breakpoint circle icon to prevent the "disabled" activities from running.

Then reinstate the order after testing/debugging.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rajesh
Solution 2 System.Linq