Set up a Microsoft Teams integration
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 and uses incoming webhooks to receive event data.
If you have any issues with integrating the Hybrid Cloud Console with Microsoft Teams, contact Red Hat for support. To open a Red Hat support case directly from the Hybrid Cloud Console:
- Click Help (the ? icon) to open the help panel.
- Select the My support cases tab.
- Click Open a support case and add information about the issue.
Microsoft will not provide troubleshooting. The Hybrid Cloud Console integration with Microsoft Teams is fully supported by Red Hat.
Configure incoming webhooks in Microsoft Teams Copy linkLink copied!
You can configure incoming webhooks in Microsoft Teams to receive event notifications from the Red Hat Hybrid Cloud Console in a Microsoft Teams channel.
Before you begin Copy linkLink copied!
- You have administrator permissions for Microsoft Teams.
- You have Organization Administrator or Notifications administrator permissions for the Hybrid Cloud Console.
Procedure Copy linkLink copied!
- In Microsoft Teams, find the Workflows app.
- From the Workflows home page, click Select a trigger to open a drop-down list, then select Build with Power Automate to see more triggers from the list.
- Click Go To Power Automate.
-
Configure the trigger:
- Enter webhook in the search bar.
- From the Triggers list, select the trigger for When a Teams webhook request is received.
- For Who can trigger the flow, select Anyone from the drop-down list.
- Click the New step button.
-
Configure the action:
- Enter card in the search bar for Choose an operation.
- From the Actions list, select Post card in a chat or channel.
- For Post as, ensure Flow bot is selected.
- For Post in, select Channel. Selecting Channel reveals more options.
- For Team, select the team you want to send event notifications to.
- For Channel, select the channel you want to send event notifications to.
- For Adaptive Card, click the list to open a dialog. Select Adaptive Card in the dialog under Dynamic content.
- Click Save.
-
Copy the webhook URL:
- Click the trigger area (When a Teams webhook request is received) to expand the information.
- Refresh your screen if needed to build and display the HTTP POST URL.
- Copy the HTTP POST URL to configure the integration in the Hybrid Cloud Console.
Configure the Microsoft Teams integration Copy linkLink copied!
After you configure Microsoft Teams for integration with the Hybrid Cloud Console, add the Microsoft Teams incoming webhook URL in the Hybrid Cloud Console so you can receive notifications about events from your Red Hat services in Microsoft Teams.
Before you begin Copy linkLink copied!
- You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions. For more information about setting up Notifications administrator permissions, see ../observe/control-team-access-notif-settings.dita#assembly-config-user-access in the notifications documentation.
Note You cannot log in to the Hybrid Cloud Console with your email address unless your email address is the same as your Red Hat login. For more information, see ../get-started/access-hcc.dita#finding-login. - You have the incoming webhook URL from Microsoft Teams.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
Verify your configuration:
Create a test notification to confirm you have correctly connected Microsoft Teams to the Hybrid Cloud Console:
- Next to your Microsoft Teams integration on the Integrations > Communications page, click the options icon (⋮) and click Test.
- 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.
- Open your Microsoft Teams channel and check for the message sent from the Hybrid Cloud Console.
- In the Hybrid Cloud Console, go to Notifications > Event Log and check that the Integration: Microsoft Teams event is listed with a green label.
Create the behavior group for the Microsoft Teams integration Copy linkLink copied!
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.
Before you begin Copy linkLink copied!
- You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions.
Note You cannot log in to the Hybrid Cloud Console with your email address unless your email address is the same as your Red Hat login. For more information, see ../get-started/access-hcc.dita#finding-login. - The Microsoft Teams integration is configured. For information about configuring Microsoft Teams integration, see Configure incoming webhooks in Microsoft Teams.
Procedure Copy linkLink copied!
- In the Hybrid Cloud Console, navigate to Settings > Notifications.
- Under Notifications, select Configure Events.
- Select the application bundle tab you want to configure event notification behavior for: Red Hat Enterprise Linux, Console, or OpenShift.
- Click the Behavior Groups tab.
- Click Create new group to open the Create behavior group wizard.
- Type a name for the behavior group and click Next.
- In the Actions and Recipients step, select Integration: Microsoft Teams from the Actions drop-down list.
- From the Recipient drop-down list, select the name of the integration you created (for example, console-teams) and click Next.
- 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.
- Review your behavior group settings and click Finish. The new behavior group appears on the Notifications > Configure Events page in the Behavior Groups tab.
What to do next Copy linkLink copied!
Verify your integration:
- Create an event that will trigger a Hybrid Cloud Console notification. For example, run
insights-clienton a system that will trigger a policy event. - Wait a few minutes, and then navigate to Microsoft Teams.
- 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.
- 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 ../troubleshoot/troubleshoot-notif-failures.dita#proc-troubleshoot in the notifications documentation for more details.