VMware VS4-ENT-PL-A - vSphere Enterprise Plus Setup Manual page 173

Setup guide
Table of Contents

Advertisement

Managing Auto Deploy with PowerCLI Cmdlets
You can use Auto Deploy PowerCLI cmdlets to create rules that associate hosts with image profiles, host
profiles, and a location on the vCenter Server target. You can also update hosts by testing rule compliance
and repairing compliance issues.
Assign an Image Profile to Hosts
Before you can provision a host, you must create rules that assign an image profile to each host that you
want to provision by using Auto Deploy.
Prerequisites
Install VMware PowerCLI and all prerequisite software.
n
If you encounter problems running PowerCLI cmdlets, consider changing the execution policy. See
n
"Using Auto Deploy Cmdlets,"
Procedure
1
Run the
Connect-VIServer
is registered with.
Connect-VIServer 192.XXX.X.XX
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
Determine the location of a public software depot, or define a custom image profile using the Image
Builder PowerCLI.
3
Run
Add-EsxSoftwareDepot
session.
Depot Type
Remote depot
ZIP file
4
In the depot, find the image profile that you want to use by running the
By default, the ESXi depot includes one base image profile that includes VMware tools and has the
string
standard
5
Define a rule in which hosts with certain attributes, for example a range of IP addresses, are assigned to
the image profile.
New-DeployRule -Name "testrule" -Item "My Profile25" -Pattern "vendor=Acme,Zven",
"ipv4=192.XXX.1.10-192.XXX.1.20"
Double quotes are required if a name contains spaces, optional otherwise. Specify
a pattern to apply the item to all hosts.
The cmdlet creates a rule named
hosts with a vendor of Acme or Zven that also have an IP address in the specified range.
VMware, Inc.
on page 170.
PowerCLI cmdlet to connect to the vCenter Server system that Auto Deploy
to add the software depot that contains the image profile to the PowerCLI
Cmdlet
Run Add-EsxSoftwareDepot depot_url.
a
Download the ZIP file to a local file path.
b
Run
Add-EsxSoftwareDepot C:\file_path\my_offline_depot.zip.
in its name, and one base image profile that does not include VMware tools.
testrule
. The rule assigns the image profile named My Profile25 to all
Chapter 7 Installing ESXi
cmdlet.
Get-EsxImageProfile
instead of
-AllHosts
173

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vsphere 5.5

Table of Contents