You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a new extension that allows Terrakube to integrate and send notifications to Microsoft Teams, for example this could be use to send notification about a drift detection the same way that is used for the slack example here
Special thanks to @igorbrites for developing this new extension.
Requirements.
To use the extension it is require to create a webhook to a teams channel like is explain in the below steps:
Go to Teams, click on the Teams button on the left:
Create a channel if you don't have one already;
Click on the three dots on your channel, and then "Manage channel":
On the settings tab, under "Connectors", click "Edit":
Search for the "Incoming webhook" connector, then click "Configure"
Fill in the connector name and optionally upload an icon for your connector, then click "Create":
It will show you the webhook URL, then you can click the button to copy it:
Then create the environment variable called "MSTEAMS_WEBHOOK_URL" at workspace or organization level using global variables
Microsoft Teams Extension
Adding a new template using the following code:
Example of simple notification
flow:
- type: "customScripts"step: 100commands:
- runtime: "GROOVY"priority: 100after: truescript: | import MicrosoftTeams import MessageCard MessageCard message = new MessageCard('0078D7', 'Hello from Terrakube!', 'Hello Terrakube!') // Optionally you can add more info to the message message .setActivity('My activity title', 'Activity subtitle') .setButtons([ 'Go to Terrakube site!': 'https://www.terrakube.org', 'terrakube docs': 'https://docs.terrakube.org' ]) .setFacts([ 'Fact 1': 'Value 1', 'Fact 2': 'Value 2' ]) // You must set the MSTEAMS_WEBHOOK_URL with the actual webhook as an environment variable on your workspace or globally new MicrosoftTeams("$MSTEAMS_WEBHOOK_URL").sendMessage(message); "Teams Message Completed..."
The template above will generate a message like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a new extension that allows Terrakube to integrate and send notifications to Microsoft Teams, for example this could be use to send notification about a drift detection the same way that is used for the slack example here
Special thanks to @igorbrites for developing this new extension.
Requirements.
To use the extension it is require to create a webhook to a teams channel like is explain in the below steps:
Go to Teams, click on the Teams button on the left:
Create a channel if you don't have one already;
Click on the three dots on your channel, and then "Manage channel":
On the settings tab, under "Connectors", click "Edit":
Search for the "Incoming webhook" connector, then click "Configure"
Fill in the connector name and optionally upload an icon for your connector, then click "Create":
It will show you the webhook URL, then you can click the button to copy it:
Then create the environment variable called "MSTEAMS_WEBHOOK_URL" at workspace or organization level using global variables
Microsoft Teams Extension
Adding a new template using the following code:
Example of simple notification
The template above will generate a message like this:
Beta Was this translation helpful? Give feedback.
All reactions