官术网_书友最值得收藏!

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:

  1. Display all the images currently detected by the Auto Deploy server by issuing the following command:
    Get-EsxImageProfile
    
  2. 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
    
  3. 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, we now know the names of the images available. Here they are:

  • ESXi-5.1.0-799733-no-tools
  • ESXi-5.1.0-799733-standard

How it works…

The variable created can hold array of image names. The VMware Auto Deploy PowerCLI cmdlets can use these variables to perform version operations.

主站蜘蛛池模板: 巩义市| 卓资县| 霸州市| 安岳县| 潼南县| 大埔县| 姜堰市| 五常市| 铁岭市| 马鞍山市| 沛县| 高雄市| 苗栗市| 邹城市| 天祝| 图木舒克市| 绥芬河市| 牡丹江市| 仁布县| 安阳市| 沙田区| 正镶白旗| 台湾省| 靖宇县| 张家界市| 津南区| 安徽省| 左贡县| 酉阳| 河西区| 丁青县| 普定县| 桃园县| 探索| 长海县| 桐乡市| 牡丹江市| 泰州市| 承德市| 金华市| 依兰县|