VMware Cloud Community
thedietz
Contributor
Contributor

vRO 8.3 Powershell variables....need help

I am VERY new to vRO.  I will mostly be leveraging Powershell in vRO and I am having issues doing something that should be pretty simple i think.  I will provide as much details and screenshots as possible.  What i want to accomplish is to pass 3 variables from a vRO Action to a Scriptable Task in a vRO workflow.  

 

My action script is simple.  Assign 3 values to variables.  What i read is that i need to return this as Return Type - Properties.   

thedietz_0-1613565537216.png

Work flow Schema

thedietz_1-1613566078407.png

 

In my workflow i have 1 Variable named actionResult for these variables.  

thedietz_2-1613566093293.png

This is my test action with it's output

thedietz_3-1613566162950.png

My Scriptable action using the inputs from the Action workflow

thedietz_4-1613566210750.png

The script is simple.  What i read is that the varialbes will always use the default $inputs variable and to call individual it would be $inputs.var1 etc

thedietz_5-1613566290401.png

But when i run it and my logging comes out i do not get any of my variables.

thedietz_6-1613566327312.png

 

 

I have tried to find documentation on how powershell and vRO work together but i am coming up short.   If anyone knows how to do something as simple as this please help me.   Once i can figure out this basic concept i think i can start making vRO work for me. 

 

 

 

Labels (1)
0 Kudos
1 Reply
V00Z11
Enthusiast
Enthusiast

I'm in the process of rebuilding my vRO 8 test environment. But I think I ran into similar issues but got it working. See the following disucssion and additional links.

https://communities.vmware.com/t5/vRealize-Automation-Tools/vRO-8-1-scriptable-task-with-PowerShell-...

https://github.com/tgeorgiev/vro-polyglot-scripts

https://docs.vmware.com/en/vRealize-Orchestrator/8.3/com.vmware.vrealize.orchestrator-using-client-g...

 

0 Kudos