How to setup Databricks Job notifications using Microsoft Teams webhook ?

ravi28 5 Reputation points
2023-06-09T17:20:38.14+00:00

Couple of things I tried:

  1. I created a webhook connector in msft teams and copied it Notifications destinations via Admin page -> New destination -> from dropdown I selected Microsoft teams -> added webhook url and saved it.

 

outcome: I don't get the option to test it and the destination doesn't show up in databricks job notification settings

 

Second, instead of selecting the type Teams, while creating destination, I created the it by selecting webhook and copied msft teams webhook in the url field and saved it.

 

outcome: the test option failed with 400 error.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
Microsoft Teams Microsoft Teams for business Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-06-12T01:37:05.2+00:00

    Hi

    Thanks for visiting our forum. Kindly note that Teams tag mainly focus on Microsoft Teams application general usage questions, since your question is mainly related to Azure Databricks, so we will remove teams tag from your thread. Thanks for your understanding and patience!


    However I found this document for your reference:
    https://learn.microsoft.com/en-us/azure/databricks/administration-guide/workspace/settings/notification-destinations


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-06-14T21:36:57.2233333+00:00

    Microsoft Teams is not a supported destination for jobs.

    supported destinations for job notifications are: Email, Slack and Webhook

    Manage notification destinations is in Public Preview, so all available destinations are not supported for job notifications.

    If you are still receiving the error 400 for webhook, it might be due to the format of the message being sent to the webhook. Microsoft Teams expects messages in a specific format called MessageCard. Refer to the Microsoft Teams MessageCard documentation for more information on the expected format.

    https://docs.databricks.com/administration-guide/workspace/settings/notification-destinations.html

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.