I understand what you are saying, and while I don't disagree, the issue I have is that the PS script runs fine and does exactly what I want it to, but the action still fails while trying to finish off..... It seems the the "behind the scenes" scripts need work....
We had a similar error and sorted it by increasing the memory limit in the Action Runtime limits. Did you already try that?
I did increase memory and same error. It seems like vRA/vRO doesn't get the return values from the remote script that is run. "Response status code does not indicate success: 503 (Service Unavailable)." Trying to determine if this is a bug in vRA 8.3.
It looks the same as our command that works fine. I presume you connected to the vCenter / host first?
Yes. I do connect to vCenter first. I can run the same code from my laptop or PS Host and it works ok every time. My SE runs the same command from his lab and also gets the same error. If you run the invoke-vmscript command OK what do you have as return code in the remote script?
If it any help, this is our full action script that returns correct info (in a strange array form, but I get it back).
All params are sent via the WF
Memory is set to 1024MB
I tried your example and still not working for me. I opened a support case and they have also not been able to resolve my issue yet. I changed how I am doing this process. I am calling a vRO Workflow that runs a PS script on a remote server and that is working OK.
I've come to the conclusion that this PowerCli function is still in a beta form..... I've got different issues that VMware are looking at for me...
Maybe 8.4 will fix it...
I am going to create a Ubuntu Server and install PowerShell on that VM. Do all my script testing from that server. During a lot of my testing what I have discovered is if it works on a Windows Server doesn't mean it will work within vRA 8.x.
I understand what you are saying, and while I don't disagree, the issue I have is that the PS script runs fine and does exactly what I want it to, but the action still fails while trying to finish off..... It seems the the "behind the scenes" scripts need work....