Unable to Setup Activity Alerts in O365 Admin

Jimmy Lurton 21 Reputation points
2022-04-08T12:28:40.693+00:00

Hey yall,
im trying to setup an activity alert for when a Teams Channel/Team is deleted and im getting the following error/issue.

Diagnostic information: {Version:17.00.8220.013,Environment:NCUPROD,DeploymentId:cf6faf45165d4ef89bd31da3ad266431,InstanceId:WebRole_IN_7,SID:3d663b29-105f-416a-ac78-49a964b2a1e0,CID:c069aec6-651f-4323-8159-e6c5d58d903b}
Time: 2022-04-08T12:20:07.3151612Z

Error

The ActivityAlert type entity does not have the following type command: Create. Parameter name: entityMetadata

I also tried creating it in powershell and the New-ActivityAlert cmdlet doesnt seem to be in powershell under the import-module mentioned on microsofts kb's

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,627 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 100.2K Reputation points MVP
    2022-04-08T16:05:01.493+00:00

    Activity alerts cannot be managed via the UI, Microsoft removed that few years back. You should still be able to manage them via PowerShell, connect via the method outlined here: https://learn.microsoft.com/en-us/powershell/exchange/connect-to-scc-powershell?view=exchange-ps
    Though I run few tests and New-ActivityAlert cmdlet seems to always fail with some stupid error message, so it's possible they removed support for it altogether. Use protection alerts instead :)

    0 comments No comments

0 additional answers

Sort by: Most helpful