In case of ADF, the For each activity would complete all iterations irrespective of failure in intermediate iteration.
There are 2 ways how you can abort :
- use web activity to cancel the pipeline run in case if you want to abort post failure in any iteration
- Have a log table wherein you flag whether the iteration is a success/failure. At the start of foreach, have a lookup activity to chcek whether the prev iteration is success, then proceed else skip