Microsoft Teams Integration for Runbooks
Harness Incident Response integrates with Microsoft Teams through a Connector-based approach, enabling automated incident communication and team collaboration.
Overview
Teams integration enables your runbooks to:
- Send automated notifications
- Create incident-specific channels
- Schedule and manage meetings
- Share incident updates
- Coordinate response teams
Connector-Based Integration
Prerequisites
- Microsoft Teams admin access
- Azure AD application registration
- Harness Project Admin role
Setup Steps
- Navigate to Settings → Connectors
- Click + New Connector
- Select Microsoft Teams
- Configure Azure AD settings:
- Application (client) ID
- Directory (tenant) ID
- Client secret
- Grant required permissions:
- Channel.Create
- ChannelMessage.Send
- Team.ReadBasic.All
- TeamMember.ReadWrite.All
Verification
- Test connector connectivity
- Send test message
- Create test channel
- Verify permissions
Using Teams in Runbooks
Channel Creation
- Action Type: Teams
Operation: Create Channel
Team: "Incident Response"
Name: "incident-[incident.id]"
Description: "Channel for incident [incident.id]"
Members: ["@oncall", "@sre-team"]
Notifications
- Action Type: Teams
Operation: Send Message
Channel: "incident-[incident.id]"
Message: "🚨 [incident.severity] incident detected"
Sections:
- Title: "Impact"
Content: "[incident.description]"
Meeting Management
- Action Type: Teams
Operation: Schedule Meeting
Title: "Incident [incident.id] Bridge"
Attendees: ["@oncall", "@sre-team"]
Duration: 60
Best Practices
Channel Management
- Use consistent naming conventions
- Archive resolved incident channels
- Limit channel creation to active incidents
- Document channel purpose
Message Structure
- Use clear formatting
- Include severity indicators
- Add relevant links
- Mention appropriate teams
Permissions
- Follow least privilege principle
- Regular permission audits
- Document access requirements
- Monitor usage
Common Use Cases
Incident Coordination
- Create dedicated channel
- Notify stakeholders
- Share initial assessment
- Track response actions
Status Updates
- Send periodic updates
- Track resolution progress
- Share incident metrics
- Document action items
Meeting Management
- Schedule incident bridges
- Send meeting reminders
- Share meeting notes
- Track action items
Troubleshooting
Common Issues
-
Authentication Failures
- Verify Azure AD settings
- Check permission scopes
- Confirm application registration
-
Channel Creation Errors
- Check naming conventions
- Verify team access
- Confirm bot permissions
-
Message Failures
- Validate channel existence
- Check message formatting
- Verify rate limits