7.0

Table Of Contents
What to do next
n For hosts already provisioned with vSphere Auto Deploy, perform the compliance testing
and repair operations to provision them with the new scripts. See Test and Repair Rule
Compliance .
n Turn on unprovisioned hosts to provision them with the new scripts.
Test and Repair Rule Compliance
When you add a rule to the vSphere Auto Deploy rule set or modify one or more rules, hosts are
not updated automatically. vSphere Auto Deploy applies the new rules only when you test their
rule compliance and perform remediation.
Prerequisites
n Prepare your system and install the Auto Deploy Server. For more information, see Prepare
Your System for vSphere Auto Deploy.
n Verify that your infrastructure includes one or more ESXi hosts provisioned with vSphere Auto
Deploy, and that the host on which you installed PowerCLI can access those ESXi hosts.
Procedure
1 In a PowerCLI session, run the Connect-VIServer cmdlet to connect to the vCenter Server
system that vSphere Auto Deploy is registered with.
Connect-VIServer ipv4_or_ipv6_address
The cmdlet might return a server certificate warning. In a production environment, make
sure no server certificate warnings result. In a development environment, you can ignore the
warning.
2 Use PowerCLI to check which vSphere Auto Deploy rules are currently available.
Get-DeployRule
The system returns the rules and the associated items and patterns.
3 Modify one of the available rules.
For example, you can change the image profile and the name of the rule.
Copy-DeployRule -DeployRule testrule -ReplaceItem MyNewProfile
You cannot edit a rule already added to the active rule set. Instead, you can copy the rule and
replace the item or pattern you want to change.
4 Verify that you can access the host for which you want to test rule set compliance.
Get-VMHost -Name MyEsxi42
VMware ESXi Installation and Setup
VMware, Inc. 137