Microsoft Teams

Odown can post an alert card to any Microsoft Teams channel when a monitor goes down, when it recovers, and before an SSL certificate expires. Alerts reach Teams through a Workflows webhook, which you create in Teams and paste into Odown.

1. Create a webhook workflow in Teams

  1. In Teams, open the channel that should receive the alerts.
  2. Select ⋯ (More options) next to the channel name, then Workflows.
  3. Search for "webhook" and choose the template Send webhook alerts to a channel. In some tenants it is called Post to a channel when a webhook request is received.
  4. Name the workflow, for example Odown, and click Next.
  5. Check that the right team and channel are selected, then click Add workflow.
  6. Teams shows the workflow's URL. Copy it.

The URL looks like https://….environment.api.powerplatform.com/… or https://….logic.azure.com/…. It works like a password: anyone who has it can post to the channel, so don't share it.

2. Add the channel in Odown

  1. Log in to Odown and open Alert Settings.
  2. Click Add more channels and choose Microsoft Teams.
  3. Give the channel a Name, for example the name of the Teams channel it posts to.
  4. Paste the URL into Teams workflow webhook URL.
  5. Under Sending cases, choose which alerts to send:
    • A check fails: when a monitor is confirmed down (after the number of failed checks set in its confirmation threshold).
    • A check recovers: when the monitor is confirmed up again.
    • An SSL certificate is due to expire in a number of days you set (30 by default). See SSL Expiration.
  6. Click Save.

The new channel is added to all your monitors. To stop a monitor posting to it, open the monitor's edit form and turn the channel off in its Alert channels section. You can add as many Teams channels as you like, for example one for production and one for staging.

What the alert looks like

Each alert is an Adaptive Card that shows the event, the monitor's name, URL and method, the status code, the response time, the location that ran the check and the uptime, with a View Check button that opens the checked URL. SSL alerts also show the domain, the expiry date and the days left.

Troubleshooting

  • "This is an old Teams connector URL": URLs ending in webhook.office.com come from the Incoming Webhook connector, which Microsoft has retired. Create a workflow as in step 1 and use its URL instead.
  • "This doesn't look like a Teams workflow webhook URL": make sure you copied the whole URL that Teams showed at the end of step 1. It must start with https://.
  • No alerts arrive: check that the workflow is still turned on in Teams (⋯ > Workflows, or in Power Automate). A workflow runs under the account of the person who created it, so if that account is removed, create the workflow again from a shared or service account and update the URL in Odown.
  • To stop alerts, delete the channel in Odown's Alert Settings, or turn the workflow off in Teams.