Choosing an ESXi Image to deploy
The Offline Bundle presented to the Auto Deploy server, using the Add-ESXSoftwareDepot
command, may contain more than one image of ESXi. We need to identify the required image and select it for use.
How to do it…
The following steps will help you list all the available Image Profiles and assign them to different variables:
Display all the images currently detected by the Auto Deploy server by issuing the following command:
Get-EsxImageProfile
The Image Profile list generated by the
Get-ESXImageProfle
command can be assigned to a VMware PowerCLI array variable by issuing the following command:$imageprofile=Get-EsxImageProfile
The array variable
imageprofile
now holds an array of ESXi Image Profile elements. Each of the elements in the array can be individually addressed using the array element number starting with zero(0).The following command will display array elements 0 and 1:
$imageprofile[0].name $imageprofile[1].name
From the output of the preceding command...