Elementary’s Microsoft Teams integration enables sending alerts when data issues happen.
The alerts are sent using Adaptive Cards format, which provides rich formatting and interactive capabilities.
The alerts include rich context, and you can create alert rules to distribute alerts to different channels and destinations.
Select an environment and click connect on the Connect messaging app card (first card), and select Microsoft Teams.
For each MS Teams channel you connect to Elementary, you will need to create a Webhook. There are two ways to create a webhook:
Go to a channel in your Team and choose Manage channel
Click on Edit connectors.
Search for Incoming webhook and choose Add.
Choose Add again and add a name to your webhook, then click on Create.
Copy the URL of the webhook.
Note: Microsoft 365 Connectors (previously called Office 365 Connectors) are nearing deprecation, and the creation of new Microsoft 365 Connectors will soon be blocked. Consider using Power Automate Workflows instead.
You can create a webhook using Power Automate in two ways:
Method 1: Directly from Teams
Go to your Teams channel
Click the three dots (…) next to the channel name
Select Workflows
Choose the template “Post to channel when a webhook request is received”
Search for “When a HTTP request is received” as your trigger
In the flow, add a “Post adaptive card in a chat or channel” action
Configure the team and channel where you want to post
Save the flow and copy the HTTP POST URL
Important Note: When using Power Automate Workflows, Elementary CLI cannot directly verify if messages were successfully delivered. You’ll need to monitor your workflow runs in Power Automate to check for any errors.
Configure your Microsoft Teams webhooks, and give each one a name indicating it’s connected channel:
Select a default channel for alerts, and set the suppression interval.
The default channel you select will automatically add a default alert
rule to sends all failures to
this channel. Alerts on warnings are not sent by default. To modify and add
tules, navigate to Alert Rules page.