Skip to content

Post SQLite backup alerts to Microsoft Teams

Post an Adaptive Card to the backup team’s channel when a threshold fires and a second card when it recovers.

Set up the channel workflow

  • Create the channel workflow

    In Teams Workflows, choose the template that sends webhook alerts to a channel. Set the trigger’s authentication to Anyone, select the team and channel, then save.

  • Connect Litebackup

    As an admin, open Alerts and choose Add destination. Select Microsoft Teams and name the destination. Copy the complete workflow URL, including its query string, and paste it into HTTPS URL. Keep it private because it grants access to the trigger. Choose Add destination to save it.

Microsoft Teams selected with the HTTPS URL field for a Teams workflow. Microsoft Teams selected with the HTTPS URL field for a Teams workflow.

Verify both Adaptive Cards in Teams

On the Alerts page, choose Send test alert in the destination’s controls. The test can page a person. Check that both the trigger and recovery were accepted.

Open the target channel and check for a firing card and a resolved card with the same test ID. A standard threshold card shows the peak, the limit and a link back to the Litebackup console.

Trace a missing card

If the test requests were accepted but the channel is empty, open the workflow’s run history. Inspect the webhook trigger and the action that posts the Adaptive Card. Check the selected channel and the Teams connection used by that action. Teams webhook trigger reference.

Enable alerts

Check how many alerts are firing before choosing Enable delivery. Each server sends its open alerts immediately, then reports new alerts and recoveries for all enabled thresholds.

Add the destination from the server CLI

As an alternative to the console form, run this on the Litebackup server and enter the credentials at the prompt.

# Add the destination from the Litebackup server host.
litebackup server alert-destination add \
    --provider teams \
    --name "Microsoft Teams"

Install

Install Litebackup and back up a SQLite database to start monitoring it. Choose another paging service or chat channel in the alert integrations guide.