VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

powershellscripts utiization in vRO

Hi Luc,

can yu suggest something how powershell scripts be made available to vmware orchestrator .

i earlier worked on some of the inbuilt workflows which were  out of the box and were written in java script .

they were available to orchestrator library as vcenter was added as one of the end points .

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Use a RegEx expression with -notmatch

$exclude = 'esx1','esx2','esx3'

$exclRegEx = $exclude -join '|'


$allesxi | Where{$_ -notmatch $exclRegEx}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

Never used/tried that, but there seems to be a plugin, see PowerCLI Integration with the PowerShell Plug-In


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

thanks iam going to check this

if yu can suggest on below in the same thraed

$allesxi|?{$_ -notlike $exclude}

i need to remove $exclude array (3 itesms here) from $allesxi array .what should be the right expression .i can only remove one item usin -notlike operartor .

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Use a RegEx expression with -notmatch

$exclude = 'esx1','esx2','esx3'

$exclRegEx = $exclude -join '|'


$allesxi | Where{$_ -notmatch $exclRegEx}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

thanks luc.

0 Kudos