Skip to main content

Set Up Teams Connector

What you'll build

An authenticated connection to Microsoft Teams so your agent can post updates, reply to threads, and read channel messages. Learn more → Send Notifications. Time: ~5 minutes.

Which setup experience will I see?

Your agent has one of two Teams connector experiences depending on its configuration:

  • Connector Gateway-enabled agents — You see Microsoft Teams in the connector picker. After signing in, you configure which Teams tools (post, reply, read) your agent can use. The target channel is specified per message at runtime, so your agent can post to any channel the signed-in user can access. Follow the steps below.
  • Legacy connector agents — You see Send notification (Microsoft Teams) in the connector picker. After signing in, you paste a Teams channel link and select a managed identity. This configures a single default channel. See Legacy "Send notification" setup below.

If you are unsure which you have, click Add connector and look at the connector picker — the label tells you.

Prerequisites

  • An agent created in the Azure SRE Agent portal
  • A Microsoft Teams account with access to the target channel
  • SRE Agent Administrator role on the agent (auto-granted to the agent's creator; required for anyone else to manage connectors). See User roles.
  • Owner role on the agent's resource group, or a custom role with Microsoft.Web/connections/write and Microsoft.Authorization/roleAssignments/write permissions on the resource group

Step 1: Navigate to Connectors

  1. Open your agent in the Azure SRE Agent portal
  2. In the left sidebar, expand Builder
  3. Select Connectors

Step 2: Add a Teams connector

  1. Click Add connector in the toolbar
  2. In the connector picker, select Microsoft Teams
  3. Click Next
One Teams connector per agent

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

  1. Wait for the permission check to complete
  2. Click Sign in to Microsoft Teams
  3. Complete the OAuth authentication in the popup window
  4. 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 Owner on the resource group (or a custom role with Microsoft.Web/connections/write and Microsoft.Authorization/roleAssignments/write).

Popup blocker

If the authentication dialog doesn't appear, check that your browser isn't blocking popups from sre.azure.com.


Step 4: Enable Teams tools

After signing in, you see a list of Teams operations your agent can perform. Each tool has an Allow / Ask / Deny setting:

ToolWhat it doesRecommended
PostMessageToConversationPost a new message to a Teams channelAllow
ReplyWithMessageToConversationReply to an existing threadAllow
GetMessagesFromChannelRead recent channel messagesAllow
GetAllTeamsList teams the signed-in user belongs toAllow
GetChannelsForGroupList channels in a specific teamAllow
GetUnifiedActionSchemaBuild the required body schema for post, reply, and card operationsAllow
PostCardToConversationPost an Adaptive Card to a Teams channelOptional
UpdateCardInConversationUpdate an existing Adaptive CardOptional

Enable the tools your agent needs. At minimum, enable PostMessageToConversation to send notifications, GetUnifiedActionSchema to build the message body, and GetAllTeams + GetChannelsForGroup so the agent can find the right channel.


Step 5: Save the connector

  1. Click Next to proceed to the Review + add step
  2. Verify your connector details
  3. 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 the General channel in [Your Team Name]: "SRE Agent is connected and ready for notifications"

Your agent uses the discovery tools to find the team and channel, then posts the message as HTML.

Checkpoint: The agent shows a tool card confirming the message was posted. Check your Teams channel to verify the message appeared.


Prefer a default channel with agent instructions

The current Teams connector does not store or enforce a default channel. The target channel is specified per message, which means your agent can post to any channel the signed-in user has access to.

To avoid specifying the channel every time, open Builder > Agent Canvas, select the agent that will post to Teams, select Edit, and add the preferred team and channel under Instructions. For example:

Always post Teams notifications to the "Incidents" channel in the "SRE Team" team
unless I specify a different channel.

This is a routing preference only, not an access-control boundary. The connector can still post to other channels that the signed-in user can access.

For automation scenarios (scheduled tasks, incident response), you can include the team group ID and channel ID directly in the task or response plan instructions so the agent skips the discovery step.


What your agent can do with Teams

ToolWhat it does
Post messageSend a message to any Teams channel
Reply to threadContinue an existing conversation thread
Get messagesRead recent messages from a channel
Post cardSend an Adaptive Card to a channel when PostCardToConversation is enabled
Update cardUpdate an existing Adaptive Card in place when UpdateCardInConversation is enabled

Teams messages are formatted as HTML. Your agent handles this formatting automatically when composing messages.


Edit or remove the connector

Edit

  1. In the connectors list, click the (more actions) menu on the Teams connector row
  2. Select Edit connector
  3. The edit dialog opens — you can re-authenticate, change tool permissions, or toggle the Add "Powered by Azure SRE Agent" footer to messages checkbox
  4. Click Save

Delete

  1. Click on the connector row → Delete connector, or select the checkbox and click Remove in the toolbar
  2. Confirm the deletion

After deleting, your agent can no longer post to Teams. You can add a new Teams connector at any time.


Legacy "Send notification" setup

Some agents show Send notification (Microsoft Teams) in the connector picker instead of Microsoft Teams. This is the legacy connector that configures a single default channel and managed identity during setup.

Legacy setup steps (click to expand)

Additional prerequisites (legacy only):

  • A Teams channel URL (you'll get this during setup)
  • A managed identity configured on the agent

Step 2 (legacy): Add the connector

  1. Click Add connector in the toolbar
  2. In the connector picker, select Send notification (Microsoft Teams)
  3. Click Next

Step 3 (legacy): Sign in — Same as Step 3 above.

Step 4 (legacy): Paste Teams channel link

  1. In Microsoft Teams, right-click the target channel and select Get link to channel
  2. Copy the channel URL
  3. 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.

Below the channel link, a checkbox labeled Add "Powered by Azure SRE Agent" footer to messages is enabled by default. Uncheck this option if you prefer messages without the footer.

Step 5 (legacy): Select managed identity and save

  1. From the Managed identity dropdown, select a managed identity (system-assigned or user-assigned)
  2. Click Next to proceed to the Review + add step
  3. Verify your connector details
  4. Click Add connector to create the connector

Step 6 (legacy): Test

Ask your agent: "Post to our Teams channel: SRE Agent is connected and ready for notifications"

Legacy tools:

ToolWhat it does
Post messageSend a message to the configured default channel
Reply to threadContinue an existing conversation thread
Get messagesRead recent messages from the channel

What you learned

  • How to add a Teams connector using OAuth
  • How to enable Teams tools for your agent
  • How to verify the connector by posting a test message
  • How to prefer a default channel using agent instructions
  • What Teams tools become available to your agent

Troubleshooting

IssueSolution
I see "Microsoft Teams" instead of "Send notification"This is the current connector experience — follow the main steps in this guide. The "Send notification" option is the legacy connector.
I see "Send notification" instead of "Microsoft Teams"Your agent uses the legacy connector. See Legacy setup.
Permissions warningGrant Owner on the resource group, or assign a custom role with Microsoft.Web/connections/write and Microsoft.Authorization/roleAssignments/write permissions.
OAuth popup blockedAllow popups from sre.azure.com in your browser settings
Message doesn't appear in channelVerify the signed-in account has access to the target channel
Agent can't find my team or channelEnable GetAllTeams and GetChannelsForGroup tools on the connector
Channel link not accepted (legacy)Ensure the URL is from Get link to channel in Teams, not a meeting or chat link
No managed identities in dropdown (legacy)Click Add identity to configure one in the Azure portal, then click the refresh button
ResourceWhat 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
Was this page helpful?