• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Microsoft Teams V2

Microsoft Teams logo

Watch Integrating Opsgenie and Microsoft Teams on Youtube

What does Opsgenie offer to Microsoft Teams users?

Opsgenie has a powerful integration with Microsoft Teams. Our integration allows Microsoft Teams users to execute actions on Opsgenie alerts within Microsoft Teams such as acknowledge, close, snooze, etc. List your alerts, integrations, policies, and more. Messages are sent to Microsoft Teams channel when an action is executed on Opsgenie alerts. The integration also supports taking actions on the Opsgenie alerts via the action buttons on the cards.

Functionality of the Integration

  • Execute commands on Opsgenie alerts within Microsoft Teams.

  • Forward Opsgenie alert actions to Microsoft Teams channels.

  • Take actions on Opsgenie alerts within Microsoft Teams via action buttons.

Under the Free and Essentials plans, the tabs under the Team dashboard are limited to Main, Integrations, Members, and Activity Stream.

Adding Microsoft Teams to your Opsgenie

The process for adding Microsoft Teams to your Opsgenie account changes slightly depending on your Opsgenie data residency. If your Opsgenie is in European service region, scroll down to view instructions for your account.

 

Adding Microsoft Teams to an Opsgenie account in US service region

  1. Go to Microsoft Marketplace to add the Opsgenie app to your Microsoft Teams account.

  2. Then, from your Opsgenie account, go to Settings → Integrations. Search for Microsoft Teams and select Add.

  3. Copy the setup command provided in the integration instructions. You’ll use this in the following steps.

Microsoft Teams integration

4. Select Save Integration.

5. Go to your Microsoft Teams account, select Apps from the side navigation menu.

6. Find Opsgenie.

Microsoft Teams find app

7. Select Add to a team.

Microsoft Teams add Opsgenie app

8. Select a channel under a team.

Microsoft Teams select a channel

9. Select Set up a bot.

10. Paste the setup command to the bot which you’ve previously copied when on Opsgenie’s Microsoft Teams integration page and send it to the bot as a message. Your message should be looking like the image below.

Microsoft Teams integration configured

12. You’ll receive the "Integration configured successfully." response from the bot.

13. From now on, you will receive the alert action messages you configured in the integration settings page within this channel.

14. You can also use the bot commands without doing any further configuration within any channels of the team that you added the Opsgenie bot.

15. Repeat the steps above to set the Opsgenie bot to multiple teams.

 

Adding Microsoft Teams to an Opsgenie account in EU service region

  1. If your product data is located in the EU, download Opsgenie’s Microsoft Teams application package to get started.

  2. Then, from your Opsgenie account, go to Settings → Integrations. Search for Microsoft Teams and select Add.

  3. Copy the setup command provided in the integration instructions. You’ll use this in the following steps.

  4. Select Save Integration.

  5. Go to your Microsoft Teams account, select Apps from the left menu.

  6. Select Upload a custom app from the bottom of the side navigation menu.

  7. Upload Opsgenie’s Microsoft Teams application package and install.

  8. When done, Microsoft Teams will display a screen. Select Add to a team.

  9. Select a channel under a team.

  10. Select Set up a bot.

  11. Paste the setup command to the bot which you’ve previously copied when on Opsgenie’s Microsoft Teams integration page and send it to the bot as a message.

  12. You’ll receive the "Integration configured successfully." response from the bot.

  13. From now on, you will receive the alert action messages you configured in the integration settings page within this channel.

  14. You can also use the bot commands without doing any further configuration within any channels of the team that you added the Opsgenie bot.

  15. Repeat the steps above to set the Opsgenie bot to multiple teams.

Did you know that you can also add this integration from your team dashboard? 

If you want your team to be the owner of this integration, add it from your team dashboard. Opsgenie will assign the alerts received through this integration to your team only.

To do that;

  1. Go to Teams,

  2. Find your team and select it to go to your team dashboard,

  3. From your team navigation, select Integrations,

  4. Select Add integration.

Although Microsoft Teams is a global Opsgenie integration, it must be associated with a team because of its unique functionality.

Action Mapping Feature

  • Opsgenie allows customers to choose which alert actions to be forwarded to Microsoft Teams.

  • By default, create, acknowledge, unacknowledge, close, add note and assign ownership actions are forwarded to Microsoft Teams.

  • Add more actions or remove the actions that don't need to be forwarded.

  • Forwarding Create action is mandatory.

Using Opsgenie’s Microsoft Teams Bot

Please make sure to verify your Opsgenie account. If your account is not verified you cannot use the Microsoft Teams Bot and the Bot does not respond any of the commands that you send.

  1. Make sure the Execute commands option is enabled in the integration settings page.

  2. You can use the bot commands without further configuration from the channels of the team that the Opsgenie bot was added.

Teams to Opsgenie

Chat User Mapping

  1. Require Matching a User is used to force matching Microsoft Teams accounts with Opsgenie accounts.

  2. Associate your Microsoft Teams account to your Opsgenie account by using the @Opsgenie connect command.

  3. Chat user mapping flow:

Chat user mapping
Connection success
Last modified on Aug 6, 2021
Cached at 9:03 PM on Oct 23, 2021 |

Additional Help