Forum Discussion
Logic Apps - Issue Passing Entity from Sentinel Connector to PowerShell Runbook Parameter
Hi All,
I previously created some basic Logic Apps that would generate whenever an Azure Monitor (Log Analytics) alert was triggered and would then take the host name and IP address (depending on the use cases it was one or both) and pass those values generated from the alert into a "Create Job" event for Automation Account Logic Apps connector.
I want to move these playbooks into Sentinel leveraging the Sentinel Connector to get the data generated from the alert, grab the specific entities (in the case a HostName, IP or combination of both) and then pass those entities into the runbook parameters. I set up the Logic App as such, however, I'm running into an error (attached screenshot) stating the input value was not a JSON object. Is there something I am missing from the Sentinel connector generating the results and passing that entity on? Does it need to be converted into a JSON object after getting the entities, and if so, how would I go about doing that?
Thanks,
Sean
10 Replies
- GaryBusheyBronze Contributor
pho30 It may be that you need to load the Incident between the trigger and the Get hosts alert and use the Entites from the Incident
- pho30Copper Contributor
GaryBushey Thanks again for the suggestion, unfortunately it's still running into the same issue.
- GaryBusheyBronze Contributor
pho30 I had a response come back that was throwing a JSON Formatting error and it went away when I completely rebuilt my workbook from scratch. Not sure if that is how you built this one or not. Hope it helps.
- pho30Copper Contributor
Thanks GaryBushey, will try that out and let you know the results.