I'm trying to update about 100 different component settings and would like to automate this with a script. In the script I try to run this set command and get an error:
Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetting/ComponentID=33381,Key="PortNumber"' -Properties @{ PortNumber = '$port' }
Set-SwisObject : Operation not supported on Orion.APM.ComponentSetting
At line:1 char:1
+ Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetti ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-SwisObject], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject
Does anyone know if there is a way to update APM Components using the API (or any work-arounds to make it scriptable?)
Thanks