Setting Storage DRS automation levels for individual VMs using PowerCLI 6
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.
Getting ready
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.
How to do it…
In order to set the automation levels for Storage DRS for individual VMs, perform the following steps:
Just like in the vSphere 5.5 Version of this recipe, you will need to first check the current settings of the datastore cluster. To do this, use the...