Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vRO Powershell plugin not returning results anymore?

$
0
0

Hi,

 

I'm running vRA 7.2 + vRO 7.2. I'm running the default "Invoke a PowerShell script" workflow, running a simple script Write-Ouput "Hello World". Normally I would receive the result of the script in the log pane being "Hello World" . The log pane isn't displaying any message at all.

 

Another script provides some additional insights here:

 

var output;

var session;

 

try {

  session = host.openSession();

  var result = session.invokeScript(script); //Input script: Write-Output "Hello World".

  var scriptResult = result.getHostOutput();

  output = result.getResults();

  System.log ("script: " + script);

  System.log ("scriptResult: " + scriptResult);

  System.log ("scriptResult.length: " + scriptResult.length);

  }

catch(err) {

  System.log ("ERROR");

  error = err;

  }

finally {

  if (session){

  host.closeSession(session.getSessionId());

  }

  }

 

The log pane is displaying:

[2017-01-03 21:35:12.213] [I] script: Write-Output "Hello World"

[2017-01-03 21:35:12.217] [I] scriptResult:

 

 

 

 

[2017-01-03 21:35:12.219] [I] scriptResult.length: 2

 

As you can see, the script result length = 2 and there's no actual result. Am I missing something here? Some of my script that use the Powershell code are not working anymore. What's going wrong?

 

Thx

 

Viktor


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>