Hello All,
I am building server using the below script .
Problem Statement: The server is not getting build in a healthy host at times.
Is there a mechanism , I can control the build using the Star rating of the hosts in a Cluster.
Any thoughts or anyone has implemented a kind of solution.
$cloud = Get-SCCloud -Name "MyCloud"$CostCenter = "Lab"
$ServerName = "PriyaServer"
$Application = "Test"
$Template = Get-SCVMTemplate -All | where {$_.Name -eq "VMM_BASE_SOE_2012R2_ent" }
$virtualMachineConfiguration = New-SCVMConfiguration -VMTemplate $template -Name "$ServerName" -CostCenter "$CostCenter"
New-SCVirtualMachine -ComputerName "$ServerName" -Name "$ServerName" -VMConfiguration $virtualMachineConfiguration -Cloud $cloud -Description "Priya Server"
please advice.
Regards.
Priyabrata