I have gone through the steps twice and checked to ensure I had the correct App ID and URL. I keep getting the same message when I run the script.
Invoke-RestMethod : Bad payload received by generic incoming webhook.
At C:\Users\tech\OneDrive - Dataserv, LLC\Documents\Security Alerts Teams.ps1:308 char:1
Invoke-RestMethod -uri $uri -Method Post -body $body -ContentType 'ap ...
I have gone through the steps twice and checked to ensure I had the correct App ID and URL. I keep getting the same message when I run the script.
Invoke-RestMethod : Bad payload received by generic incoming webhook. At C:\Users\tech\OneDrive - Dataserv, LLC\Documents\Security Alerts Teams.ps1:308 char:1