VMware Cloud Community
BastiaanvanH
Contributor
Contributor

Get-EsxImageProfile empty after PowerlCLI console close

Hi,

We use ESXi auto deployment to deploy images to our clusters. We noticed as long as we keep the PowerlCLI command window open, the ImageProfile object is there to be used. A Get-EsximageProfile lists all new created profiles. As soon as we close the PowerCLI command window and reopen it, all ImageProfiles are gone. A Get-EsximageProfile displays nothing. All is gone except the deployment rule. Deployment however keeps working.

It's weird we need to recreate the EsxiImageProfile over and over again when we need to make adjustments to the image. Is this normal behavior, or a bug?

Using ESXi and vCenter 5.5 u2, and PowerCLI 5.5 Release 1.

Kind Regards,

Bastiaan van Haastrecht

Reply
0 Kudos
1 Reply
alanrenouf
VMware Employee
VMware Employee

This is expected, the Image Builder cmdlets are purely used to build your image in that session. Once you have made the changes you should export the imageprofile to a zip and then re-import it to make changes.

There is a great guide here: https://www.vmware.com/files/pdf/products/vsphere/VMware-vSphere-Evaluation-Guide-4-Auto-Deploy.pdf

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos