Forum Discussion

Robert Crane's avatar
Aug 26, 2018
Solved

Configuring Alerts using PowerShell

I want to be able to configure the Office 365 alerts using PowerShell. To do this, as I understand it I need to use the cmdlet new-protcetionalert. However, when I use this I get an error like:

 

"Creating advanced alert policies requires an Office 365 E5 subscription or Office 365 E3 subscription with an Office 365

Threat Intelligence or Office 365 EquivioAnalytics add-on subscription for your organization. With your current subscription, only single event alert can be created."

 

However, if I go in via the web console I can configure a range of alerts for tenant without E5 or Threat Intelligence addin. Thus, it isn't a licensing issue as I can create alerts via the web, just seems to be an issue with PowerShell.

 

Does anyone have an idea on how to use the new-protectionalert cmdlet for tenants without E5 to save me from manually using the web interface for every different tenant??

 

  • Robert Crane's avatar
    Robert Crane
    Sep 06, 2018

    he solution to this problem turns out to be the inclusion of the following command:

     

    -aggregationtype none

     

    which limits the creation of alerts to a single item which is supported by all SKUs. Add that to the command and you are off to the races.

7 Replies

Resources