Microsoft Teams integration webhook

A webhook can be created to post messages and notifications to Microsoft Teams.

In this example, a configuration change triggers the FortiGate to post a message to Teams.

To create a webhook automation stitch for Teams integration in the GUI:
  1. Create an incoming webhook in Teams. See Create an incoming webhook for information.
  2. Go to Security Fabric > Automation and click Create New.
  3. Enter the stitch name.
  4. Configure the trigger:
    1. Click Add Trigger.
    2. Click Create and select Configuration Change.
    3. Enter a name (Teams).
    4. Click OK.
    5. Select the trigger in the list and click Apply.
  5. Configure the action:
    1. Click Add Action.
    2. Click Create and select Webhook.
    3. Enter the following:

      Name

      send to Teams

      Protocol

      HTTPS

      URL

      Enter the incoming webhook URL created in Teams

      Custom port

      Enable and enter 443

      Method

      POST

      HTTP body

      { \"text\": \"<message to send>\" }

      HTTP header

      Content-type : application/json

    4. Click OK.
    5. Select the action in the list and click Apply.
  6. Click OK.
To create a webhook automation stitch for Teams integration in the CLI:
  1. Create an incoming webhook in Teams. See Create an incoming webhook for information.
  2. Create the automation trigger:
    config system automation-trigger
        edit "Teams"
            set event-type config-change
        next
    end
  3. Create the au