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
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,292 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,913 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,933 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,188 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prasad-MSFT 5,786 Reputation points Microsoft Vendor
    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