Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 4089

Build Server in a healthy host using PS

$
0
0

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


Viewing all articles
Browse latest Browse all 4089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>