Is it possible to change the text in an Azure Error in Azure Databricks run email

MAYERS Peter 1 Reputation point
2022-11-07T11:28:03.013+00:00

As part of an Azure Data Factory Pipeline, I execute an Azure Databricks notebook. This all works perfectly and the only issues that I have is the text in the Error email which I receive when there is a problem with the execution of the notebook. Is it possible to alter the text in the email to make it more bespoke to our particular use case?

Please see the screenshot below for example email:
257854-image.png

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,015 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,895 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 82,196 Reputation points Microsoft Employee
    2022-11-08T06:27:13.857+00:00

    Hello @MAYERS Peter ,

    Thanks for the question and using MS Q&A paltform.

    Unfortuanately, you cannot customize the metrics you want to fetch or format of the mail in Azure Data Factory.

    Note: You can create an Alerts in Azure Data Factory (ADF) Monitor section under Alerts and Metrics option.

    • Using Alert in ADF, you can get metrics like : PipelineSucceededRuns (The total number of pipeline runs that succeeded within a certain time window) , ActivityFailedRuns(The total number of activity runs that failed within a certain time window), PipelineFailedRuns(The total number of pipeline runs that failed within a certain time window) etc.
    • However, you can't customize the metrics you want to fetch or format of the mail you want to have like we can do using Logic apps. Also, as per your ask you want to get error message, it is not possible with alerts.

    For more details, refer to creating alerts in Azure Data Factory.

    Alternative: You can use Azure Logic Apps to change the text in an Azure Error in Azure Databricks run email

    You may checkout this video on Azure Data Factory Custom Email Notifications Tutorial and blog on Custom email notification in Azure Data Factory.

    You can Send notifications to a Microsoft Teams channel from an Azure Data Factory

    Hope this will help. Please let us know if any further queries.

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

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      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
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments