DEV Community

amalkabraham001
amalkabraham001

Posted on

Simplify Citrix Notifications: Integrating with MS Teams

Citrix Alerting through Microsoft Teams.

In this blog, we are going to see how to configure Citrix alerting through an MS Teams channel, which will make it easier for administrators to quickly notice Citrix alerts rather than checking email notifications. Citrix leverages webhooks to enable alerting to MS Teams. We can configure webhook alerting to Slack and ServiceNow as well.

Image description

Configure MS Teams Channel with Webhook

First and foremost, generate a webhook URL in your Teams channel. The official MS article I referred to for creating and configuring the MS Teams channel webhook is here.
https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet#create-an-incoming-webhook
Navigate to MS Teams and click on the “Teams” icon from the left pane. In the Teams window, click on “+” and select “Create channel.”

Image description

In the “Create channel” window, select the team you need to be part of the channel, a channel name, description, and select the channel type. Click on Create to initiate the creation.

Image description

Once the channel is created, navigate to the newly created channel and click on the three dots. Select “Manage channel” from the list.

Image description

Under the Settings tab, click on “Edit” under Connectors.

Image description

In the Connectors page, search for webhook and click on Add to add the “Incoming Webhook.”

Image description

In the “Incoming Webhook” configuration window, provide a name and select a custom icon if needed. Click on Create to generate the webhook.

Image description

Once the webhook is created, copy the webhook URL, which we need to provide in the Citrix console.

Image description

Configuring Alerting and notification via Webhook

The next step is to configure advanced alerting via webhook. To configure the alerting, navigate to Citrix DaaS console → Monitor → Alerts. Click on “Advanced Alert Policies” and select “Create Policy.”

Image description

In the Create Policy wizard, select the data source between machines, provisioning services, or storefront. Select the condition we need to configure. For this blog, I selected to notify me when my power-managed VMs fail to power on. I selected to notify me if one machine fails to start in the metrics.

Image description

Define the scope, whether you need to get alerts for all delivery groups or specific delivery groups. You can also exclude alerts for machines with specific naming.

Image description

Under the webhook URL section, provide the MS Teams channel webhook we copied in the previous section. You can also include a JSON payload as optional.

Image description

Provide a name and description of the alert and click on Save to create the alert.

Image description

You can edit the alert settings by selecting the three dots next to the alert policy.

Image description

Viewing alerts in the MS Teams Channel

I enumerated the issue by starting one of my orphaned VDIs from the Citrix DaaS console.

Image description

The alert has been generated in my MS Teams channel as shown below.

Image description

Hope this blog helps you to ease the configuration of Citrix alerts through Microsoft Teams. Please let me know if you have any questions and share your feedback about this blog.

Top comments (0)