Use Teams Powershell module to generate a webhook url

dkabala 20 Reputation points
2024-03-05T02:29:49.84+00:00
New-TeamChannel -GroupId "1234" -DisplayName "My Group" -MembershipType Standard 

This works as a way to streamline and automate creating a channel within a team. What I want to know is, can I also configure webhooks directly from Powershell? If not, is there any plan to implement this in the future?

After much searching, I think it might be possible with Graph, but that doesn't really help my situation. Perhaps Teams Toolkit would be a more elegant solution for what we're trying to accomplish here. Also more complexity.

I have taken over a project that is sort of a half-baked alerting system. It somewhat mimics a panic button using Teams and Powershell. I wasn't around for the initial stages of "development", but now that I am involved with implementation, I'm trying to make it better. I have managed to reduce configuration time a lot, but if I could manage to automatically generate webhook urls after I create the Teams channels, that would be huge.

Microsoft Teams Development
Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Graph
Microsoft Teams Microsoft Teams for business Other
0 comments No comments
{count} votes

Accepted answer
  1. Prasad-MSFT 8,981 Reputation points Microsoft External Staff Moderator
    2024-03-05T07:07:30.7266667+00:00

    Configuring webhooks directly from PowerShell is not supported currently.

    https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet#create-an-incoming-webhook

    To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.