6.0.2

Table Of Contents
Prerequisites
n
Install vSphere PowerCLI and all prerequisite software. For information see vSphere Installation and
Setup.
n
Export the host prole that you want to use.
Procedure
1 Run the Connect-VIServer vSphere PowerCLI cmdlet to connect to the vCenter Server system that Auto
Deploy is registered with.
Connect-VIServer 192.XXX.X.XX
The cmdlet might return a server certicate warning. In a production environment, make sure no server
certicate warnings result. In a development environment, you can ignore the warning.
2 Using the vSphere Web Client, set up a host with the seings you want to use and create a host prole
from that host.
3 Find the name of the host prole by running Get-VMhostProfile vSphere PowerCLI cmdlet, passing in
the ESXi host from which you create a host prole.
4 At the vSphere PowerCLI prompt, dene a rule in which host proles are assigned to hosts with certain
aributes, for example a range of IP addresses.
New-DeployRule -Name "testrule2" -Item my_host_profile -Pattern "vendor=Acme,Zven",
"ipv4=192.XXX.1.10-192.XXX.1.20"
The specied item is assigned to all hosts with the specied aributes. This example species a rule
named testrule2. The rule assigns the specied host prole my_host_prole to all hosts with an IP
address inside the specied range and with a manufacturer of Acme or Zven.
5 Add the rule to the rule set.
Add-DeployRule testrule2
By default, the working rule set becomes the active rule set, and any changes to the rule set become
active when you add a rule. If you use the NoActivate parameter, the working rule set does not become
the active rule set.
What to do next
n
Assign a host already provisioned with Auto Deploy to the new host prole by performing compliance
test and repair operations on those hosts. For more information, see “Test and Repair Rule
Compliance,” on page 187.
n
Power on unprovisioned hosts to provision them with the host prole.
Test and Repair Rule Compliance
When you add a rule to the Auto Deploy rule set or make changes to one or more rules, hosts are not
updated automatically. Auto Deploy applies the new rules only when you test their rule compliance and
perform remediation.
Prerequisites
n
Install vSphere PowerCLI and all prerequisite software.
n
Verify that your infrastructure includes one or more ESXi hosts provisioned with Auto Deploy, and that
the host on which you installed vSphere PowerCLI can access those ESXi hosts.
Chapter 9 Upgrading Hosts
VMware, Inc. 187