Quantcast
Viewing all articles
Browse latest Browse all 49146

Re: vSphere automation based on VM custom attribute values

Can you show some sample out from

 

Get-VM-Name vm-*|Group-Object-Property {$_.CustomFields['deployment']}|where{$_.Name-like'service-instance_*'}

 

and

 

Get-VM-Name vm-*|Group-Object-Property {$_.CustomFields['deployment']}|where{$_.Name-like'service-instance_*'}|

ForEach-Object-Process {

   Group-Object-InputObject $_.Group-Property {$_.CustomFields['job']}

}


Viewing all articles
Browse latest Browse all 49146

Trending Articles



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