VMware Cloud Community
dazpreuss
Contributor
Contributor

PowerCLI DRS automation level

Hello,

I am new to PowerCli/Powershell but i am really impressed by the flexibility.

I have made a script that reverts a couple of 1000 VMs to previous snapshots for my usecase and integrated with Ansible etc for scaling up as required.

The one part that i can't figure out is how to change the cluster DRS automation level to "partlyautomated" from "fullyautomated".

I have looked at https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/changing-vm-storage-drs-automation-lev... however a lot of this is still new to me and I wasn't sure if anyone can offer a simple command(s).

Any help would be appreciated.

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

The Set-Cluster cmdlet with the DrsAutomationLevel parameter should allow you to do that.


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

dazpreuss
Contributor
Contributor

Perfect thankyou.

Set-Cluster * (cluster name) -DrsAutomationLevel PartiallyAutomated

Amateur mistake, i was using get-cluster to try and set something.

 

Reply
0 Kudos