VMware Cloud Community
ePoy
Enthusiast
Enthusiast

Verify that a DataStoreCluster is running DRS and is Full Automated

In many cases I before creating a VM I have to verify if the DSC where it will be created is with DRS active and if it is Full Automated, if not I should select a datastore with more free space.
How to do this in a PowerCli script?

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Not sure how and where you want to do these tests, but all info is available through the Get-DatastoreCluster cmdlet.

$dscName = 'DSC1'

Get-DatastoreCluster -Name $dscName | select Name,SdrsAutomationLevel,FreeSpaceGB


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

Reply
0 Kudos