Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Viewing all articles
Browse latest Browse all 9071

Storage DRS query VM Overrides per datastore cluster

$
0
0

Hi guys,

 

I'm trying to get a report of VM's where storage drs is set to disabled.

I'm able to get a list of VM's where status is manual but VM's where storage drs is set to disabled are not shown with status disabled.

 

For example:

 

$dsc=Get-DatastoreCluster -name DatastoreCluster01
$dsc.ExtensionData.PodStorageDrsEntry.StorageDrsConfig.VmConfig | select behavior,@{N="VM";E={[string]::Join('/',(Get-View -Id $_.VM -Property Name | Select -ExpandProperty Name))}}

 

Behavior                                                VM
--------                                                --
                                                        SRV00013
manual                                                  SRV00014
                                                        SRV00015
                                                        SRV00016
manual                                                  SRV00017

Viewing all articles
Browse latest Browse all 9071

Trending Articles



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