Book Image

PowerCLI Cookbook

By : Philip Brandon Sellers
Book Image

PowerCLI Cookbook

By: Philip Brandon Sellers

Overview of this book

Table of Contents (19 chapters)
PowerCLI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Applying recommendations for partially automated DRS clusters


PowerCLI offers you the ability to set a cluster into autopilot, but that is not a requirement to receive the benefits for DRS. DRS clusters can also be set into a partially automated mode that lets DRS make recommendations and allows the administrator to apply those recommendations. PowerCLI offers native cmdlets to retrieve a list of recommendations and allows them to be applied.

Get-DRSRecommendations and Apply-DRSRecommendation allow you to retrieve the current recommendations and then apply them. In vSphere 6, the Apply-DRSRecommendation cmdlet changes to Invoke-DRSRecommendation. The functionality is the same, but the verb changes. Like any other native cmdlet, you can take the results and scope the list of recommendations to apply. One important thing to note here is that the Get-DRSRecommendation and the Apply-DRSRecommendation cmdlets only apply to compute clusters and not to storage clusters.

Getting ready

To begin this...