You can create a rule that applies the previously verified image profile and the host profile that you just created to all target hosts.

This task assumes you have a basic knowledge of Microsoft PowerShell and vSphere PowerCLI.

Make sure your system meets the requirements in the preinstallation checklist. See Proof of Concept Preinstallation Checklist.

Perform all preceding proof of concept setup tasks. See Auto Deploy Proof of Concept Setup for the complete list.

1

Log in to the console of the Windows system on which vCenter Server is installed with administrator privileges, either directly or by using RDP.

2

Start a PowerCLI session and type the following commands, followed by Enter, at the prompt.

Connect-VIServer -Server your_vc_hostname -User username -Password password 
Add-EsxSoftwareDepot path:\VMware-Esxi-version-xxxxx-depot.zip 

Include the complete path and file name of the ZIP file you downloaded earlier. Adding the software depot is required each time you start a new PowerCLI session.

3

(Optional) To display the rules in the active ruleset type he following cmdlet at the prompt and press Enter.

Get-DeployRuleset

4

To create a rule that instructs Auto Deploy to provision the set of hosts in the specified IP range with the image you selected and with the host profile you created from the reference host, type the following command and press Enter.

New-DeployRule -name "Production01Rule" -item "image_profile", ESXiGold,target_cluster -Pattern "ipv4=IP_range"

Option

Description

image_profile

The ESXi image profile you used in the first deploy rule.

target_cluster

Name of the cluster in vCenter Server to which you want to add all hosts.

IP_range

Either a single IP address or a range of IP addresses for the hosts you want to provision with the image profile and host profile.

When you specify a target cluster, the host profile is applied to all hosts in the cluster. Applying the host profile to each host is not required.

5

Add the new rule to the active ruleset.

Add-DeployRule -DeployRule "Production01Rule" <Enter>

6

(Optional) Remove the deploy rule you created for the initial boot operation.

Remove-DeployRule -DeployRule InitialBootRule <Enter>

7

Check the active rule set.

Get-DeployRuleset<Enter>

PowerCLI displays information similar to the following example.


Name:              Production01Rule
PatternList:       {ipv4=address_range}
ItemList:          {ESXi-version-XXXXXX-standard, Compute01, ESXiGold}

Provision all hosts and set up host customizations for each host. See Provision All Hosts and Set Up Host Customizations.