To send an HTTP request action to Microsoft Teams from AppDynamics, you must create a template in AppDynamics. When AppDynamics triggers an action in response to an event, you can view the details of the action in your Microsoft Teams channel.


This document contains references to the Microsoft documentation. AppDynamics does not own any rights and assumes no responsibility for the accuracy or completeness of such third-party documentation.

Before you Begin

  1. Create a channel in your Microsoft Teams and provide an appropriate name. For example, AppDynamics Alerts. This channel is used to receive alerts from AppDynamics. See Microsoft Teams documentation.
  2. Create an incoming webhook to the channel that you have created in your Microsoft Teams. See Microsoft Teams documentation.
  3. Copy the webhook URL from Microsoft Teams and keep it securely for later use. AppDynamics uses this URL to send the alerts to Microsoft Teams.

Create a Template

  1. In the menu bar, click Alert & Respond.
  2. Click HTTP Request Templates.
  3. Enter a name for the template. For example, Send alerts to Microsoft Teams.
  4. In the Request URL section:
    1. Select POST as Method.
    2. Enter the webhook URL in the Raw URL field.
    3. Select UTF-8 as URL Encoding.
  5. In the Authentication section, select NONE as Type. If you want to enable mutual TLS authentication, select Also Turn on Mutual TLS. For more information about mutual TLS, see Configure and Enable Mutual TLS Authentication.
  6. In the Payload section:
    1. Select application/json as MIME Type.
    2. Select UTF-8 as Payload Encoding.
    3. Enter the following payload in the text box:

      {
      "@context": "http://schema.org/extensions",
      "@type": "MessageCard",
      "title": "Event Detected for ${latestEvent.application.name} on node
      ${latestEvent.node.name}",
      "text": "${latestEvent.displayName} - ${latestEvent.eventTime} :
      ${latestEvent.eventMessage} ",
      "themeColor": "#if($latestEvent.severity == "INFO")0075FF#elseif($latestEvent.severity ==
      "WARN" )ff9500#elseif($latestEvent.severity == "ERROR" )ff3b30#end", "sections": [
      {
      "activityTitle": "Severity: $latestEvent.severity",
      "images": [ {
      "image":"${latestEvent.severityImage.deepLink}"
      } ]
      }, {
      "value": "[here](${latestEvent.deepLink})" },
      {
      "facts": [
      {
      "name": "View Event",
      "value": "[click here](${latestEvent.deepLink})",
      },
      {
      "name": "Open Controller",
      "value": "[click here](${controllerUrl} )" }
      ] },
      ] }
      JSON
  7. In the Settings section, select the One Request Per Event option.
  8. Click Save.