Creating vSphere HA and DRS clusters
In Chapter 4, Managing vSphere Hosts with PowerCLI, you already saw how to create a vSphere cluster with the default settings using the New-Cluster
cmdlet. In the default settings, HA and DRS are disabled. You will now see how to create a cluster with HA and DRS enabled. First, the syntax of the New-Cluster
cmdlet will be repeated so you don't have to look back at Chapter 4, Managing vSphere Hosts with PowerCLI:
New-Cluster [-HARestartPriority <HARestartPriority>] [-HAIsolationResponse <HAIsolationResponse>] [-VMSwapfilePolicy <VMSwapfilePolicy>] [-Name] <String> -Location <VIContainer> [-HAEnabled] [-HAAdmissionControlEnabled] [-HAFailoverLevel <Int32>] [-DrsEnabled] [-DrsMode <DrsMode>] [-DrsAutomationLevel <DrsAutomationLevel>] [-VsanDiskClaimMode <VsanDiskClaimMode>] [-VsanEnabled] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
The -Name
and -Location
parameters are...