Hi @Mathilda Smith ,
Welcome to Microsoft Q&A platform and thanks for posting your query.
Could you please elaborate on your ask as what do you mean when you say 'failure between Azure Data factory and git'?
From what I understand , it seems that you want to send an email alert whenever there is any failure while publishing new changes in ADF. Please correct me if my understanding is wrong here.
Interaction between ADF and GIT happens when we hit publish button after a new change in main branch of ADF pipelines. As this is a manual process when you go on hitting the publish button and it specifies in notification section whether the publish is successful or failed.
In case of failure , error details are also popped up in notification section. It's not the part of ADF pipelines , rather it's part of ADF functionality. Unfortunately, it's not yet possible that this error message gets triggered and shown up in the Teams as notification.
If the suggested response helped you, please click Accept Answer
and kindly upvote
the same. If you have extra questions about this answer, please do Comment.