Creating a deploy rule
A deploy rule is created to deploy a chosen ESXi Image onto a server or group of servers chosen based on a supported pattern. Without a deploy rule, Auto Deploy server will not be able to associate an ESXi Image with a server to boot.
The pattern used to choose a server for deploying ESXi uniquely identifies the machine or a group of machines. The pattern can be an IPv4 address range, a MAC address, hardware vendor name, Asset tag, domain name, server model, serial number, and so on.
How to do it…
The following procedure will help you create a new deploy rule.
To create a new deploy rule issue the following command:
New-DeployRule -Name "RuleIP-21-25" -Item $imageprofile[1], "Cluster-21-25" -pattern "ipv4=192.168.193.21-192.168.193.25"
Here, RuleIP-21-25
is the name of the deploy rule; $imageprofie[1]
is ESXi-5.0.0-20111104001-standard; Cluster-21-25
is the name of the cluster at the vCenter Server; pattern ipv4=192.168.193.21-192.168.193.25
is the IP scope we created...