Network Management
Microsoft Teams Integration with SolarWinds Platform Alerts
This article discusses how to integrate Microsoft Teams with SolarWinds Platform Alerts.
First published date
Last published date
Overview
How to integrate alerts from the SolarWinds Platform with Microsoft Teams.
Product section
Resolution
As of July 2024, Microsoft has announced the retirement of Office 365 connectors with Microsoft Teams. For more information, refer to the following blog post. See How to Update Webhook URLs for Microsoft Teams due to Webhook Connector Retirement for updated instructions. A firewall rule may need for SolarWinds to allow communication between SolarWinds and Microsoft Azure because MS Workflows is a cloud app.
- As an administrator of your organization's Team software, login to your Teams desktop application and click on the Team that you wish to add your integration to, then select "Workflows".
Click Manage
Select the workflow you created, and Click Edit
-Click "Send each adaptive card"
-Click on the Three Dots next to "Post card in a chat or channel" and delete
-Click "Add an action"
-Search " Apply to Each" and Add it by clicking
Select the "attachments" Dynamic content
Click on Add an action (this should be inside the "Apply to each" action")
-Search and select "post card in a chat or channel"
Configure the fields as needed stating the Channel Team and Name
-Make sure to set Adaptive card to "content"
Flow should be like below, Save it
- Then copy the URL from the top flow and paste this in your alert http Post along with your JSON:
-Make sure to set the Content type to application/json:
Here is a Sample JSON :
{
"type": "Application/JSON",
"attachments": [{
"contentType": "object",
"content": {
"type": "AdaptiveCard",
"version": "1.4",
"body": [{
"type": "TextBlock",
"text": "***Solarwinds Alert***",
"isSubtle": false,
"wrap": false,
"size": "Large",
"weight": "Bolder",
"spacing": "None"
}, {
"type": "TextBlock",
"text": "Node **${NodeName}** is ***DOWN***",
"isSubtle": false,
"wrap": false,
"spacing": "None"
}, {
"type": "TextBlock",
"text": "IP ADDRESS: ${N=SwisEntity;M=IP_Address}",
"isSubtle": false,
"wrap": false,
"spacing": "None"
}, {
"type": "TextBlock",
"text": "Alert Trigger Time: ${N=Alerting;M=AlertTriggerTime;F=DateTime}",
"isSubtle": false,
"wrap": false,
"spacing": "None"
}, {
"type": "TextBlock",
"text": "OP LOC: ${N=SwisEntity;M=CustomProperties.OP_LOC}",
"isSubtle": false,
"wrap": false,
"spacing": "None"
}, {
"type": "TextBlock",
"text": "**Please acknowledge ownership and investigate**",
"isSubtle": false,
"wrap": false,
"spacing": "None"
}
]
}
}
]
}
Result
See Create incoming webhooks with Workflows for Microsoft Teams for more information on creating webhook Workflows.