Teams Incoming Webhook deprecated: Use PowerAutomate - Workflow

Since is not possible configure Classic Teams Webhook (deprecated, and it does not work from teams gui), I just created a workflow for "Gatus" monitoring application. 


goto: https://make.powerautomate.com/

go to My flows > New flow > instant cloud flow

    select "When a Teams webhook request is received" > create

              configure: "Who can trigger the flow" > anyone

add an action, search for: 

        post message in a chat or channel

        configure:

            "post as": flow bot

            "post in": channel

            "team": dropdown select team

            "channel": dropdown select channel

            "content": Content: @{triggerBody()?['text']}

this content is the key "text" from the original request json body.

save.    


Gatus is configured on a kubernetes cluster by using the Helm chart: 

     config:

alerting:
custom:
url: "webhook URL"
method: "POST"
body: |
{
"text": "[ALERT_TRIGGERED_OR_RESOLVED]: [ENDPOINT_GROUP] - [ENDPOINT_NAME] - [ALERT_DESCRIPTION]"
}
headers:
Content-Type: application/json

Commenti

Post popolari in questo blog

Mysql operator S3 innodbcluster backup SECRET CONFIG

Fedora - KVM - qemu - Windows 11 guest. error: swtpm at /usr/bin/swtpm does not support TPM 2