top of page

Databricks to Teams notifications via workflows

  • Writer: Vitalija B
    Vitalija B
  • Feb 14
  • 2 min read

Note: As the office 365 connectors are planned to be retired by January 31, 2025, the recommended upgrade is to create incoming webhooks with workflows.


Receiving notifications of failures in pipelines is a crucial part of Data Engineering work. Here, I will lead through how to make teams notifications from Databricks (in this case using Databricks Standard) to Microsoft Teams using workflows.

ree

First, we want to create a new teams channel, where the notifications will be coming through:


ree

In my case I will call it "Databricks - Error notifications PROD"


ree

Press Create, then the new channel in Microsoft Teams is created.


ree

Once the channel is created, we will start to setup a workflow connection:

We will select More options next to channel and select workflows:


ree


Pressing the workflows, we will get a tab on what workflow we want to connect:

In this case, I want to post to a channel when a webhook request is received:

ree

We pick that one, it automatically picks my email:

ree

Press Next: Then the Microsoft teams channel where the webhook connector can be added will pop up:

ree

We press Add workflow. Easy as that - the new workflow is added succesfully.

ree

We copy the URL to the notepad.

Workflow has been set in Microsoft teams now.

For connecting to Databricks we want to go to Databricks workspace. Press on your name to get this tab:

ree

We go to settings:

ree

In settings we press notifictions:

ree

We want to manage notification destinations:


ree

Then I press add a destination:


ree

Then this tab will appear:


ree

Under the destination type I want to choose Microsoft Teams:


ree

Once the Microsoft Teams destination is chosen, the only two things you will need to choose is name of this connection and workflow URL we copied previously to our notepad.


ree

I will call it Workflow connector

ree

Press save. Then we go to the ultimate test: Open a job to in the Databricks workspace and try adding up the notifications based on our desires:

For this I have created a mock job which will fail just for different tests:

ree

So we go to the job notifications, press Edit Notifications:

ree

We press add notification:

ree

Select Destination:

ree

We pick the workflow connector we just created a few minutes ago:


ree

Save, then we run the workflow to see if we get a notification in our designated teams channel.


And we can see the notification via workflow appeared in my designated Teams channel:


ree


Happy connecting!


Recent Posts

See All

© 2024 by Vitalija Bartusevičiūtė. All rights reserved. 

  • GitHub
  • X
  • LinkedIn
bottom of page