Post to Office365 Connector
Send messages to Microsoft Teams and Office 365 Groups
First up, you need to access the connectors for either Microsoft Teams or Office 365 create yourself an incoming webhook.
Once the webhook is set up, copy the webhook URL to the corresponding field in the build/release task.
Source is available on GitHub