VMware Cloud Community
tdubb123
Expert
Expert

datastore cluster - get list of VMs under VM overrides

Is it possibleto get a list of VMs under the DAtastore cluster VM overrides with powercli?

0 Kudos
3 Replies
LucD
Leadership
Leadership

Yes, but be aware that these VM can have different overrides.

$dscName = 'MyDSC'

$dsc = Get-DatastoreCluster -Name $dscName

Get-View -Id $dsc.ExtensionData.PodStorageDrsEntry.StorageDrsConfig.VmConfig.VM |

Select Name


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

0 Kudos
tdubb123
Expert
Expert

Thanks Lucd,

I am looking for the list under VM Overrides. It does not show that

0 Kudos
LucD
Leadership
Leadership

It does for me


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

0 Kudos