Set Up Teams Connector
An authenticated connection to a Microsoft Teams channel so your agent can post updates, reply to threads, and read messages. Learn more → Send Notifications. Time: ~5 minutes.
Prerequisites
- An agent created in the Azure SRE Agent portal
- A Microsoft Teams account with access to the target channel
- A Teams channel URL (you'll get this during setup)
- Contributor role on the agent's resource group (requires
Microsoft.Web/connections/writeandMicrosoft.Authorization/roleAssignments/write) - A managed identity configured on the agent
Step 1: Navigate to Connectors
- Open your agent in the Azure SRE Agent portal
- In the left sidebar, expand Builder
- Select Connectors
Step 2: Add a Teams connector
- Click Add connector in the toolbar
- In the connector picker, select Send notification (Microsoft Teams)
- Click Next
Your agent can have one Teams connector at a time. If a connector already exists, the card is disabled with the message "Your agent can only have one Teams connector."
Step 3: Sign in to Microsoft Teams
- Wait for the permission check to complete
- Click Sign in to Microsoft Teams
- Complete the OAuth authentication in the popup window
- On success, you'll see a Connected as card showing your email address with a green checkmark
Checkpoint: Green checkmark with your email address visible. If you see a permissions warning, verify you have Contributor role on the resource group.
If the authentication dialog doesn't appear, check that your browser isn't blocking popups from sre.azure.com.
Step 4: Paste Teams channel link
- In Microsoft Teams, right-click the target channel and select Get link to channel
- Copy the channel URL
- Back in the connector setup form, paste the URL into the Teams channel link field
The URL should look like:
https://teams.microsoft.com/l/channel/19%3A...%40thread.tacv2/channel-name?groupId=...
The form automatically extracts the channel ID and group ID from this URL.
Checkpoint: The form accepts the URL without error. If the URL is invalid, the field clears the extracted IDs — verify you copied the link from "Get link to channel" and not from a meeting or chat link.
Step 5: Select managed identity and save
- From the Managed identity dropdown, select a managed identity (system-assigned or user-assigned)
- Click Next to proceed to the Review + add step
- Verify your connector details
- Click Add connector to create the connector
Checkpoint: A toast notification confirms the connector was created successfully. Your connector appears in the connectors list.
Step 6: Test your Teams connector
Ask your agent:
Post to our Teams channel: "SRE Agent is connected and ready for notifications"
Your agent formats the message as HTML and posts it to the configured Teams channel.
Checkpoint: The agent shows a tool card confirming the message was posted. Check your Teams channel to verify the message appeared.
Edit or remove the connector
Edit
- In the connectors list, click the ⋯ (more actions) menu on the Teams connector row
- Select Edit connector
- The edit dialog opens — you can change the Teams channel link, re-authenticate, or update the managed identity
- Click Save
Delete
- Click ⋯ on the connector row → Delete connector, or select the checkbox and click Remove in the toolbar
- Confirm the deletion
After deleting, your agent can no longer post to Teams. You can add a new Teams connector at any time.
What you learned
- How to add a Teams connector using OAuth and a channel link
- How to get and paste a Teams channel URL
- How to verify the connector by posting a test message
- What Teams tools become available to your agent
Troubleshooting
| Issue | Solution |
|---|---|
| Channel link not accepted | Ensure the URL is from Get link to channel in Teams, not a meeting or chat link |
| Permissions warning | You need Microsoft.Web/connections/write and Microsoft.Authorization/roleAssignments/write roles on the resource group |
| OAuth popup blocked | Allow popups from sre.azure.com in your browser settings |
| Message doesn't appear in channel | Verify the channel URL is correct and your signed-in account has access to that channel |
| No managed identities in dropdown | Click Add identity to configure one in the Azure portal, then click the refresh button |
Related
| Resource | What you'll learn |
|---|---|
| Send Notifications → | How your agent uses Outlook and Teams for contextual notifications |
| Set Up Outlook Connector → | Connect Outlook for email notifications |
| Create a Scheduled Task → | Automate Teams notifications on a schedule |