Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

How to get a vm's chain length?

$
0
0

Hello,

I'm trying to automate some consolidation of vms and would like to script it. I have over 800 vms so manually would not work.

I'd like to

$allVApps = Get-CIVApp

foreach($CIVm in ($allVApps | Get-CIVM)){

    find the number of chains and if greater than 8 consolidate them.

}

Anyone have this handy? or something else?

I'm in a cloud environment vSphere 5.5, latest powercli installed.

Thanks


Viewing all articles
Browse latest Browse all 13334

Trending Articles



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