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… ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.