Appearance
Microsoft Teams Emergency Notifications - Quick Start Guide
Feature Overview
This quick start guide will get your Microsoft Teams emergency notification monitoring up and running in 30-45 minutes. It covers the essential steps for Azure setup, Call Telemetry configuration, and user authentication.
What You'll Achieve:
- Real-time monitoring of Microsoft Teams emergency call notifications
- Automatic detection and processing of emergency notifications
- Complete audit trail of emergency communication events
- Integration with Call Telemetry's emergency response workflows
Prerequisites Checklist
Before starting, ensure you have:
- [ ] Azure Subscription with Event Hub creation permissions
- [ ] Global Admin Access to create App Registrations
- [ ] Dedicated Service User with Microsoft Teams license
- [ ] Teams Emergency Policies Configured (emergency call notifications enabled)
- [ ] Network Access (outbound HTTPS to Microsoft services)
- [ ] Call Telemetry Access with Teams integration permissions
Step 1: Azure Setup (15 minutes)
Create App Registration
Sign in to Azure Portal → Azure Active Directory → App registrations
Click "+ New registration"
Configure Registration:
- Name:
Call Telemetry Teams Integration
- Account types:
Single tenant
- Redirect URI: Leave blank
- Click "Register"
- Name:
Copy Key Information:
- Application (client) ID:
________________
- Directory (tenant) ID:
________________
- Application (client) ID:
Create Client Secret:
- Go to Certificates & secrets → + New client secret
- Description:
Call Telemetry Secret
- Expires:
24 months
- Copy secret value:
________________
Enable Device Flow:
- Go to Authentication → Advanced settings
- Enable mobile and desktop flows:
Yes
- Click "Save"
Configure API Permissions
- Add Graph Permissions: Go to API permissions → + Add permission → Microsoft Graph → Delegated
- Add These Permissions:
- [ ]
User.Read
- [ ]
Chat.Read
- [ ]
Chat.ReadBasic
- [ ]
ChatMessage.Read
- [ ]
openid
- [ ]
offline_access
- [ ]
profile
- [ ]
Create Event Hub (10 minutes)
Create Resource Group:
- Resource groups → + Create
- Name:
RG-Call-Telemetry-Teams
- Region: Choose closest to your location
Create Event Hub Namespace:
- Event Hubs → + Create
- Namespace name:
calltelemetry-teams-[random]
(must be unique) - Resource group: Select created group
- Pricing tier:
Basic
Create Event Hub:
- Navigate to namespace → + Event Hub
- Name:
teams-events
- Partition count:
2
- Message retention:
1
day
Configure Event Hub Permissions
Grant Microsoft Graph Permissions:
bash# Replace with your values SUBSCRIPTION_ID="your-subscription-id" RESOURCE_GROUP="RG-Call-Telemetry-Teams" NAMESPACE_NAME="calltelemetry-teams-[your-suffix]" # Run this command az role assignment create \ --assignee $(az ad sp list --display-name "Microsoft Graph Change Tracking" --query "[0].id" -o tsv) \ --role "Azure Event Hubs Data Sender" \ --scope "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.EventHub/namespaces/$NAMESPACE_NAME"
Create Access Policy:
- Event Hub → teams-events → Shared access policies → + Add
- Name:
CallTelemetry-ReadWrite
- Permissions: Check
Listen
andSend
- Copy Connection String:
________________
Step 2: Call Telemetry Configuration (10 minutes)
Configure Teams Integration
Navigate to MS Teams:
- Log in to Call Telemetry
- Go to MS Teams (sidebar)
OAuth Settings Tab:
Client ID: [App Registration ID] Client Secret: [Secret Value] Tenant ID: [Directory Tenant ID] Refresh Token Expiration: 2196 (leave default)
Subscription Settings Tab:
Delivery Mode: Event Hub Subscription Timeout: 4320 minutes
Event Hub Tab:
Enable Event Hub: ✅ True Event Hub Name: teams-events Consumer Group: $Default Connection String: [Your connection string] Partition Count: 2
Permissions Tab:
- Verify all permissions are checked ✅
- Click Save to apply configuration
Step 3: User Authentication (10 minutes)
Add Monitoring User
Start Authentication:
- Click Add Monitoring User → Start Authentication
- Note the User Code (e.g.,
BFCC-GQVT
) - Note the Verification URL
Complete Authentication (on separate device):
- Open browser on phone/tablet/computer
- Go to
https://microsoft.com/devicelogin
- Enter the User Code
- Sign in with service integration user
- Grant consent to all requested permissions
Verify Success:
- Return to Call Telemetry
- Status should show ✅ Success
- User profile populated with service user details
Create Chat Subscription
Setup Monitoring:
- Click Setup Chat Monitoring
- Select Event Hub delivery
- Click Continue
Review and Save:
- Review OAuth settings → Save and Continue
- Review Event Hub settings → Save and Continue
Create Subscription:
- Click Create Subscription
- Wait for subscription creation (30-60 seconds)
- Verify subscription shows Active status
Step 4: Verification and Testing (5 minutes)
Verify Integration Health
Check Teams Integration Dashboard:
- Navigate to MS Teams → Dashboard
- Verify connection status shows Healthy
- Confirm subscription is Active and Tokens are Valid
Test Event Processing:
- Send a test chat message by dialing 933 (test emergency number)
- Check Event Hub metrics in Azure Portal
- Monitor Call Telemetry logs for message processing
Troubleshooting Quick Fixes
Authentication Issues
Problem: "Device code expired"
Solution: Restart authentication process, complete within 15 minutes
Problem: "Permission denied"
Solution: Verify service user has Teams license and proper permissions
Problem: "Invalid tenant"
Solution: Confirm tenant ID matches Azure AD tenant
Subscription Issues
Problem: "Send claim required"
Solution: Run the Microsoft Graph permissions command from Step 1
Problem: "Subscription creation failed"
Solution: Verify Event Hub connection string and permissions
Problem: "No events received"
Solution: Check Teams emergency policies and notification settings
Network Issues
Problem: "Connection timeout"
Solution: Verify firewall allows outbound HTTPS to Microsoft services
Problem: "DNS resolution failed"
Solution: Ensure DNS can resolve *.microsoft.com and *.servicebus.windows.net
Success Criteria
Your integration is successfully configured when:
- [ ] Authentication Status: ✅ User authenticated with valid tokens
- [ ] Subscription Status: ✅ Active subscription with future expiration
- [ ] Connection Health: ✅ Excellent or Good connection to Event Hub
- [ ] Event Processing: ✅ Messages flowing from Teams → Event Hub → Call Telemetry
- [ ] Dashboard Active: ✅ Real-time metrics and monitoring available
Next Steps
After successful quick start:
- Configure Monitoring: Set up alerts for authentication and processing failures
- Test Emergency Scenarios: Validate end-to-end emergency notification flow
- Review Documentation: Read full installation and operations guides
- Plan Maintenance: Schedule regular token and subscription monitoring
- Scale Considerations: Plan for additional integration users if needed
Related Documentation
- Installation Guide - Complete detailed setup procedures
- Architecture Overview - Technical architecture and system design
Estimated Time
Estimated Total Time: 30-45 minutes for basic setup Production Ready: Add monitoring, alerting, and operational procedures
Your Microsoft Teams emergency notification monitoring is now active and ready to detect emergency call notifications in real-time!