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

Execute powershell script in VCO Workflow

$
0
0

Hi guys,

 

I'm pretty new to VCO and i'm facing some difficulties to get what i want. For you it will be a basic... but here is my question :

 

I have a WF that i use in the WFStubmachineprovisionning that can generate me a VM name based on user selection while he ask for a VM in VRA.

The provisionned VM name is like this : W203PKLXXX and i need to replace the XXX by a number that is available on the network.

 

To do this, i need to query the DNS to check if 001 is available, if not, 002... And so on... until one available, and i send the full VM name to the WF Stubprovisionning.

 

This my first try to interact between VCO and a Powershell script. I can run PS script on my configured host, but don't know how to send variable from the personalised WF that generate the name to the PS script, and send the VM Name from the PS script to the next step.

 

Can anyone give me a sample to manage variable ? I didn't find anything around the net


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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