Microsoft Teams

Post approval requests, bypass requests, release updates and break-glass restores to Teams channels through Workflows webhooks, choose which channel gets what, and what Wardn does when Teams is down or a webhook is revoked.

Connect Teams channels and Wardn posts a card to each one when a snapshot needs approvals, someone asks for a bypass, a release is raised or changes state, or someone restores past the guardrails during an incident. Each card has the deployment, the environment, who asked, the short commit (seven characters) and an Open in Wardn button.

Nobody approves from Teams. A channel webhook can only receive messages, so the card links to the item in Wardn, where a signed-in person approves under the usual rules. The Approve button that Slack has is not built for Teams. When a request is decided or superseded, Wardn posts a short closing card to the channels that got the request; it does not edit the first card.

Connect a channel

You need integration:manage (Owners and Admins) and a server with WARDN_SECRET_MASTER_KEY set, because the webhook address is a secret: whoever has it can post to the channel. Wardn keeps it in its secret store and never shows it again, lists it or logs it. The page shows the host and the last four characters.

  1. In Teams, open the channel's Workflows menu and choose Send webhook alerts to a channel (or build a flow from the When a Teams webhook request is received trigger). Copy the webhook link.
  2. In Wardn, open Settings, Integrations, Microsoft Teams, choose Add channel, name it, paste the address and choose which events it takes.
  3. Choose Test. Wardn posts a card that says it is a test.

Or with the API:

curl -fsS -X POST "$WARDN_API_URL/api/v1/integrations/chat-webhooks/teams/channels" \
  -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' \
  -d '{"name":"#deploys","webhookUrl":"https://prod-12.westus.logic.azure.com/workflows/…","rules":{"events":[],"environments":["production"],"teams":[],"minSeverity":"info"}}'

There can be 20 Teams channels. Each has a name, unique among them.

Office 365 connector webhooks are retired. Microsoft retired Incoming Webhook connectors in Teams in May 2026, so Wardn accepts only Workflows webhook addresses, and posts an Adaptive Card in the message envelope Workflows takes. It does not send the older MessageCard format.

Which addresses Wardn accepts

Wardn connects only to the hosts Microsoft documents for Workflows webhooks, over https on the standard port, with no user name, no fragment and no redirects:

HostPath
*.logic.azure.comstarts with /workflows/
*.environment.api.powerplatform.comstarts with /powerautomate/automations/direct/workflows/

Anything else is refused when you connect it, and again before each post. An address that names an IP address, or a host that resolves to a loopback, link-local, private or cloud metadata address, is refused at the moment of connecting, so a webhook cannot be used to reach inside your network.

Which channel gets what

A channel with no rules takes every event. With rules it takes the events that match all of them; an empty list matches everything.

RuleMeaning
Eventsapproval.requested, bypass.requested, approval.decided, approval.superseded, release.raised, release.status_changed, restore.break_glass
EnvironmentsEnvironment names or classes (production, staging) the event happened in
TeamsTeams that own the apps; a rule that names teams does not take an event with no team
Least urgent eventinfo, warning or critical. Approval requests are warnings; bypass requests, break-glass restores and failed releases are critical

One event reaches every channel it matches, and each channel gets it once, however often it is delivered. A closing card goes only to the channels that got the request, whatever their rules.

When something goes wrong

  • Teams is slow, down or rate limiting. The card waits in the queue and is retried with growing waits, up to eight tries, and never sooner than Teams asks (Retry-After). A short wait is slept through and retried at once.
  • The webhook was deleted, the flow turned off, or Teams refuses it (401, 403, 404, 410). Trying again cannot help, so the card is dead-lettered at once and counted on the Integrations page, and the channel shows Last post failed with why. Add the address again (Edit) to clear it.
  • One channel failing does not stop the others. The rest are posted to; the failing one is retried or given up on by itself.
  • Pause a channel to stop posting to it without removing anything; the card then reads Paused and nothing queues for it. Disconnect removes the channel and its address.

Teams throttles a webhook to about four requests a second and takes a message of up to 28 KB. Wardn clips long text so a card is far under that.

What is real and what is not

The provider is tested against a fake Teams endpoint, not against Teams: the card envelope follows Microsoft's documented Workflows format, but it has not been rendered in a live tenant. The server also has a fake provider that posts nowhere, for tests and demos.

On this page