I am in the process of automating VM builds and found the ORION SDK very useful in adding nodes but falls a little short compared to VMWare's PowerCLI since a large majority of my work is done with a clone of a VM to a Template in PowerCLI.
The idea of creating a template would save on some of the guess work such as pollers and custom properties that I may have added manaully before.
The steps I would imagine you would take from the user's point of view would be....
- Configure to server monitoring how you would like it to be through the GUI.
- Have a "save as a template" button.
- Then allow the powershell commands to call it similar to the following...
#Creating the node$newNodeUri = New-SwisObject $swis -EntityType "Orion.Nodes" -Properties $newNodeProps -Template "WindowsServerMonitoring"$nodeProps = Get-SwisObject $swis -Uri $newNodeUri