Search

Chapter 5. Integrating Microsoft Teams with the Hybrid Cloud Console

download PDF

You can configure the Red Hat Hybrid Cloud Console to send event notifications to all users on a new or existing channel in Microsoft Teams. The Microsoft Teams integration supports events from all services in the Hybrid Cloud Console. The Microsoft Teams integration uses incoming webhooks to receive event data.

Contacting support

If you have any issues with integrating the Hybrid Cloud Console with Microsoft Teams, contact Red Hat for support. You can open a Red Hat support case directly from the Hybrid Cloud Console by clicking Help (? icon) > Open a support case, or view more options from ? > Support options.

Microsoft will not provide troubleshooting. The Hybrid Cloud Console integration with Microsoft Teams is fully supported by Red Hat.

5.1. Configuring Microsoft Teams for integration with the Hybrid Cloud Console

You can use incoming webhooks to configure Microsoft Teams to receive event notifications from the Red Hat Hybrid Cloud Console or a third-party application.

Prerequisites

  • You have admin permissions for Microsoft Teams.
  • You have Organization Administrator or Notification administrator permissions for the Hybrid Cloud Console.

Procedure

  1. Create a new channel in Microsoft Teams or select an existing channel.
  2. Navigate to Apps and search for the Incoming Webhook application.
  3. Select the Incoming Webhook application and click Add to a team.
  4. Select the team or channel name and click Set up a connector.
  5. Enter a name for the incoming webhook (for example, Red Hat Notifications). This name appears on all notifications that the Microsoft Teams channel receives from the Red Hat Hybrid Cloud Console through this incoming webhook.
  6. Optional: Upload an image to associate with the name of the incoming webhook. This image appears on all notifications that the Microsoft Teams channel receives from the Hybrid Cloud Console through this incoming webhook.
  7. Click Create to complete creation and display the webhook URL.
  8. Copy the URL to your clipboard. You need the URL to configure notifications in the Hybrid Cloud Console.
  9. Click Done. The Microsoft Teams page displays the channel and the incoming webhook.
  10. In the Hybrid Cloud Console, navigate to Settings > Integrations.
  11. Click the Communications tab.
  12. Click Add integration.
  13. Select Microsoft Office Teams as the integration type, and click Next.
  14. In the Integration name field, enter a name for your integration (for example, console-teams).
  15. Paste the incoming webhook URL that you copied from Microsoft Teams into the Endpoint URL field.
  16. Click Next.
  17. Review the integration details and click Submit to enable the integration.

Your Microsoft Teams integration is now listed on the Integrations > Communications page. Under Last connection attempt, the status is Ready to show the connection can accept notifications from the console.

Verification

Create a test notification to confirm you have correctly connected Microsoft Teams to the Hybrid Cloud Console:

  1. Next to your Microsoft Teams integration on the Integrations > Communications page, click the options icon (⋮) and click Test.
  2. In the Integration Test screen, enter a message and click Send. If you leave the field empty, the Hybrid Cloud Console sends a default message.
  3. Open your Microsoft Teams channel and check for the message sent from the Hybrid Cloud Console.
  4. In the Hybrid Cloud Console, go to Notifications > Event Log and check that the Integration: Microsoft Teams event is listed with a green label.

Additional resources

5.2. Creating the behavior group for the Microsoft Teams integration

A behavior group defines which notifications will be sent to external services such as Microsoft Teams when a specific event is received by the notifications service. You can link events from any Red Hat Hybrid Cloud Console service to your behavior group. For more information about behavior groups, see Configuring Hybrid Cloud Console notification behavior groups.

Prerequisites

Procedure

  1. In the Hybrid Cloud Console, navigate to Settings > Notifications.
  2. Under Notifications, select Configure Events.
  3. Select the application bundle tab you want to configure event notification behavior for: Red Hat Enterprise Linux, Console, or OpenShift.
  4. Click the Behavior Groups tab.
  5. Click Create new group to open the Create behavior group wizard.
  6. Type a name for the behavior group, and click Next.
  7. In the Actions and Recipients step, select Integration: Microsoft Teams from the Actions drop-down list.
  8. From the Recipient drop-down list, select the name of the integration you created (for example, console-teams) and click Next.
  9. In the Associate event types step, select one or more events for which you want to send notifications (for example, Policies: Policy triggered), and click Next.
  10. Review your behavior group settings, and click Finish. The new behavior group appears on the Notifications page.

Verification

  1. Create an event that will trigger a Hybrid Cloud Console notification. For example, run insights-client on a system that will trigger a policy event.
  2. Wait a few minutes, and then navigate to Microsoft Teams.
  3. Select the channel that you configured from the left menu. If the setup process succeeded, the page displays a notification from the Hybrid Cloud Console. The notification contains the name of the host that triggered the event and a link to that host, as well as the number of events and a link that opens the corresponding Hybrid Cloud Console service.
  4. In the Hybrid Cloud Console, go to Settings > Notifications > Event Log and check for an event that shows the label Integration: Microsoft Teams.

    • If the label is green, the notification succeeded.
    • If the label is red, verify that the incoming webhook connector was properly created in Microsoft Teams, and that the correct incoming webhook URL is added in the Hybrid Cloud Console integration configuration.

      Note

      See Troubleshooting notification failures with the event log and integration settings in the notifications documentation for more details.

5.3. Additional resources

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.