While vSphere 6 requires a slightly different method to update Storage DRS automation levels for virtual machines, most of the information in the previous recipe applies to users running vSphere 6 and PowerCLI 6. The primary difference in vSphere 6 is that you will need to build the entire StorageDrsVmConfigSpec
object from scratch rather than edit an existing item. In this recipe, you will learn to build a complete StorageDrsVmConfigSpec
object to set the automation levels for Storage DRS.
To begin this recipe, you will need a PowerCLI window, an active connection to vCenter server, and a datastore cluster configured in the FullyAutomated
mode.