Microsoft: Post notifications to Microsoft Teams using PowerShell
Microsoft Teams, announced earlier today, is a new platform for chat based communication. I was very happy to see the Connectors available including many popular CI/CD related tools. The Connector configurations allow for an easily pluggable extension for Microsoft Teams to integrate notifications in to discussions. This creates an opportunity to integrate datacenter and cloud operations practices with real time discussions.
Among the available connectors in the list, you will find Incoming Webhook. This provides an easy solution to post notifications from any scripting language through JSON formatted web service call.
To add the Connector:
- Open the Channel and click the More Options button (which appears as three dots at the top right of the window).
- Select Connectors.
- Scroll down to Incoming Webhook and click the Add button.
- Give the connector a name and image of your choosing and finally click Create.
- A new unique URI is automatically generated. Copy this URI string to your clipboard.
If you ever need to retrieve it in the future you can do so from this same configuration area of Teams. Select the Connector and then click the Manage button to reveal the URI string.
Read the entire article here, Post notifications to Microsoft Teams using PowerShell
via the fine folks at Microsoft.