Integrating Alerts with Microsoft Teams

Overview

Microsoft Teams integration allows Server Scout to send real-time monitoring alerts directly to your team channels. This guide walks you through setting up a Teams Incoming Webhook connector and configuring Server Scout to deliver formatted notifications to your preferred channel.

Teams webhook integration uses Microsoft's connector framework, which differs from Slack's webhook format. Server Scout automatically handles the payload formatting to ensure your alerts display properly in Teams.

Creating a Teams Incoming Webhook

Step 1: Access Channel Connectors

  1. Navigate to your desired Teams channel
  2. Click the three dots (...) next to the channel name
  3. Select Connectors from the dropdown menu
  4. Search for "Incoming Webhook" in the connectors gallery

Step 2: Configure the Webhook

  1. Click Add next to "Incoming Webhook"
  2. Provide a descriptive name (e.g., "Server Scout Alerts")
  3. Optionally upload a custom icon to identify Server Scout notifications
  4. Click Create
  5. Copy the generated webhook URL - you'll need this for Server Scout configuration

Important: Store this URL securely as it provides direct access to post messages in your channel.

Configuring Server Scout Notifications

Adding the Teams Webhook

  1. Log into your Server Scout dashboard
  2. Navigate to SettingsNotifications
  3. Click Add New Notification Channel
  4. Select Microsoft Teams from the channel types
  5. Paste your webhook URL into the Webhook URL field
  6. Assign a recognisable name for internal reference
  7. Choose which alert types should trigger Teams notifications
  8. Click Save Configuration

Notification Filtering

Configure which events trigger Teams alerts:

  • Critical Alerts: System failures, service outages
  • Warning Alerts: High resource usage, approaching thresholds
  • Recovery Notifications: When issues resolve automatically
  • Maintenance Notices: Planned downtime or configuration changes

Understanding Teams Message Formatting

MessageCard vs Adaptive Card Format

Server Scout utilises Adaptive Cards for Teams integration, providing richer formatting than the legacy MessageCard format. This enables:

  • Colour-coded severity indicators: Red for critical, amber for warnings
  • Structured data presentation: Server details, metrics, timestamps
  • Action buttons: Quick links to Server Scout dashboard
  • Formatted text: Bold headings, bullet points for clarity

Sample Alert Format

{
  "type": "AdaptiveCard",
  "version": "1.3",
  "body": [
    {
      "type": "TextBlock",
      "text": "Server Scout Alert",
      "weight": "Bolder",
      "size": "Medium"
    },
    {
      "type": "FactSet",
      "facts": [
        {"title": "Server", "value": "web-server-01"},
        {"title": "Alert Type", "value": "High CPU Usage"},
        {"title": "Current Value", "value": "87%"},
        {"title": "Threshold", "value": "80%"}
      ]
    }
  ]
}

Key Differences: Teams vs Slack Webhooks

Understanding these differences helps troubleshoot integration issues:

Authentication:

  • Teams: Uses Office 365 connector tokens embedded in webhook URLs
  • Slack: Simple webhook URLs without embedded authentication

Payload Structure:

  • Teams: Requires Adaptive Card or MessageCard JSON schema
  • Slack: Accepts simple JSON with text/attachment fields

URL Format:

  • Teams: Contains outlook.office.com domain with connector-specific paths
  • Slack: Uses hooks.slack.com domain structure

Testing Your Integration

Manual Test

  1. In Server Scout, navigate to your Teams notification channel
  2. Click Send Test Message
  3. Verify the alert appears in your Teams channel within 30 seconds
  4. Check formatting appears correctly with proper colour coding

Triggering Real Alerts

Temporarily lower a threshold (e.g., CPU warning to 1%) to generate genuine alerts, then restore normal settings once confirmed working.

Troubleshooting Common Issues

Webhook Connector Expiry

Problem: Messages stop arriving despite successful configuration. Solution: Teams connectors can expire or be removed. Recreate the webhook connector and update the URL in Server Scout.

Tenant Security Policies

Problem: "Forbidden" errors when sending messages. Solution: Contact your Office 365 administrator to verify external connector policies allow incoming webhooks for your organisation.

Invalid URL Format

Problem: "Invalid webhook URL" error during Server Scout configuration. Solution: Ensure the URL starts with https://outlook.office.com/webhook/ and contains the complete connector token. Re-copy from Teams if truncated.

Message Delivery Delays

Problem: Alerts arrive several minutes late. Solution: Check your internet connectivity and Teams service status. Server Scout sends alerts immediately, but Teams may experience processing delays during high load periods.

Best Practices

  • Create separate channels for different alert severity levels
  • Use descriptive webhook names to identify their purpose
  • Regularly verify webhook functionality with test messages
  • Document webhook URLs securely for team handovers

Your Teams integration should now deliver timely, well-formatted Server Scout alerts directly to your team's workflow.

Frequently Asked Questions

How do I set up Microsoft Teams alerts in ServerScout?

First, create an incoming webhook connector in your Teams channel by clicking the three dots next to the channel name, selecting Connectors, and adding 'Incoming Webhook'. Copy the generated URL, then in ServerScout, go to Settings → Notifications → Add New Notification Channel, select Microsoft Teams, and paste the webhook URL.

What's the difference between Teams and Slack webhooks in ServerScout?

Teams webhooks use Office 365 connector tokens embedded in URLs and require Adaptive Card JSON schema, while Slack uses simple webhook URLs without embedded authentication and accepts basic JSON with text/attachment fields. Teams URLs contain outlook.office.com domains, whereas Slack uses hooks.slack.com.

Why are my Teams webhook alerts not working?

Common issues include expired webhook connectors (recreate the connector and update the URL), tenant security policies blocking external connectors (contact your Office 365 admin), or invalid URL format. Ensure your URL starts with https://outlook.office.com/webhook/ and contains the complete connector token.

How does ServerScout format alerts in Microsoft Teams?

ServerScout uses Adaptive Cards format for Teams integration, providing colour-coded severity indicators (red for critical, amber for warnings), structured data presentation with server details and metrics, action buttons linking to the dashboard, and formatted text with bold headings and bullet points.

What types of alerts can I send to Microsoft Teams?

You can configure Teams notifications for critical alerts (system failures, service outages), warning alerts (high resource usage, approaching thresholds), recovery notifications when issues resolve automatically, and maintenance notices for planned downtime or configuration changes.

How do I test my Teams integration with ServerScout?

In ServerScout, navigate to your Teams notification channel and click 'Send Test Message'. Verify the alert appears in your Teams channel within 30 seconds with proper formatting and colour coding. You can also temporarily lower a threshold to generate real alerts for testing.

Why are my Teams alerts delayed?

ServerScout sends alerts immediately, but message delivery delays are typically caused by Teams service processing during high load periods. Check your internet connectivity and Teams service status. The issue is usually on Microsoft's side rather than ServerScout's delivery system.

Was this article helpful?