1

Hi,

I am in the process of extending scom computer objects with data from an external portal. This portal has inventory, CMDB, finacial data etc and is developed in house.

Typically, all windows computer object should have a property saying if the server has backup responsibility, the customer name etc. I can access all this data from a webAPI with powershell Invoke-RestMethod. URL looks something like this

How would you add this in to scom. Should i create a script stick it in an orchestrator runbook and add the data directly, or could i run it as a timedPowershellDiscovery on every agent?

 

Can any of you think of a reason why my script work out of the management pack but not when running in the workflow? I have some logging done so i can see the API status code in Opsmgr event log, but the entry is just blank. If i run the script directly in PowerShell. everything Works.

This is how my XML looks now.

Ehrnst answered