Hi all.
I need to generate many generic events and relative alarm definition using Milestone PSTools.
Using New-Generic-Event I have resolved about the generic events, but I can’t find the equivalent about alarm definition.
How I can create new alarm definition massively ?
I know that I could develop my app using AlarmDefinition class and SDK, but I need to resolve more quickly.
Thanks.
Ciao.
Gigi
Hi Gigi,
Here’s an example where you are prompted to select some generic events to create alarms for, and the alarm definitions are generated for you. Hopefully this helps get you closer to the finish line 
https://gist.github.com/joshooaj/336ee79a6c41abd54e7961e7fd7926df
Cheers,
Josh
Hi Josh.
Thanks!
I seen that AlarmDefinitionFolder expose only AddAlarmDefinition and RemoveAlarmDefinition. To modify alarm can I use AlarmDefinition.Save ?
Thanks.
Ciao.
Gigi
Hi Gigi, that’s correct - these AlarmDefinition objects are strongly typed Configuration API objects and the Save() method will push any changes made to the object in local memory back up to the Management Server where the changes can be accepted, or if they fail validation, a validation error will be sent back.