6.5.1

Table Of Contents
Passing Parameters as Objects
You can pass parameters as objects if you want to do scripting and automation. You can use the
technique with cmdlets that return multiple objects or with cmdlets that return a single object.
1 Bind the output of a cmdlet that returns multiple objects to a variable.
$profs = Get-EsxImageProfile
2 When you run the cmdlet that needs the object as input, access the object by position, with the list
starting with 0.
Add-EsxSoftwarePackage -ImageProfile $profs[4] -SoftwarePackage partner-pkg
The example adds the specified software package to the fifth image profile in the list returned by Get-
EsxImageProfile.
Most of the examples in the vSphere Installation and Setup documentation pass in parameters by name.
vSphere ESXi Image Builder Workflows includes examples that pass parameters as objects.
Using vSphere ESXi Image Builder with the vSphere Web Client
You can manage software packages (VIBs), image profiles, and software depots by using the vSphere
ESXi Image Builder service in the vSphere Web Client.
n
Add a Software Depot
Before you can work with software depots and customize image profiles, you must add one or more
software depots to the vSphere ESXi Image Builder inventory. You can add a software depot by
using the vSphere Web Client.
n
Import a Software Depot
If an offline depot is located on your local file system, you can import the ZIP file to the vSphere
ESXi Image Builder inventory by using the vSphere Web Client.
n
Clone an Image Profile
You can use the vSphere Web Client to clone image profiles. You can clone an image profile when
you want to make small changes to the VIB list in a profile, or if you want to use hosts from different
vendors and want to use the same basic profile, but want to add vendor-specific VIBs.
n
Create an Image Profile
You can create a new image profile by using the vSphere Web Client instead of cloning an existing
one. You might consider creating a new image profile if it differs significantly from the image profiles
in your inventory.
n
Edit an Image Profile
You can edit image profiles by using the vSphere Web Client. You can change the name, details and
VIB list of an image profile.
vSphere Installation and Setup
VMware, Inc. 55