VMware Cloud Community
wkwicker
Enthusiast
Enthusiast

Script to set Virtual Machine Settings in Storage DRS?

Hello,

I've looked but haven't found a script out there to do this and don't see it in the provided PowerCLI Cmdlets documentation.  Does anyone know how to set the virtual machine options for storage DRS?  What I want to do is manually set my SDRS to automated but then set several VM's in that cluster to disabled because my VM replication software doesn't like it when targets move around.  There is a "DrsAutomationLevel" that can be set with Set-VM but no "StorageDrsAutomationLevel" that I see.  If that parameter was on the VM object the I would want to do something similar to this:

Get-DataStoreCluster -name MyCluster | get-VM -name *_Standby | Set-VM -StorageDrsAutomationLevel Disabled

Since I don't see that parameter on the VM I'm hoping there is another way to accomplish this.

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Reply
0 Kudos