VMware Cloud Community
mirovasilev
Contributor
Contributor

How to list images from Auto Deploy

Hello,

I need to get list with all Image Profiles added in the AutoDeploy. I have couple different Software Depots with single Image each.

I can use Add-EsxSoftwareDepot to add offline Depots (located on my laptop C:\ drive), but how can I get info from the vCenter?

Any idea how I can do that?

Labels (1)
0 Kudos
8 Replies
LucD
Leadership
Leadership

Did you try Get-EsxImageProfile?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mirovasilev
Contributor
Contributor

Yes, it didn't return anything (tried that on 2 different vCenter Servers).

 

Connect-VIServer myserver.local

Get-EsxSoftwareDepot

< returns nothing

 

Get-EsxImageProfile

< returns nothing

Tags (1)
0 Kudos
LucD
Leadership
Leadership

That seems to indicate you have no depots with images on vCenter.

Did you try creating a depot with one or more images?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mirovasilev
Contributor
Contributor

I have few Software Depots, and each of them contain single image.

mirovasilev_0-1622468472405.png

 

0 Kudos
LucD
Leadership
Leadership

I don't know how you created that Depot and how you uploaded the images.

I just did a quick test in vSphere 7 with PowerCLI 12.3 and the ESXi image.
The following uploaded the images and listed the.

Add-EsxSoftwareDepot .\VMware-ESXi-7.0U2a-17867351-depot.zip
Get-EsxImageProfile

This showed me exactly the ESXi profiles
esxi-image.png

 

Perhaps you can do a similar exercise?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mirovasilev
Contributor
Contributor

Those are manually created via the GUI.

Yes, if you use Add-EsxSoftwareDepot and appoint it to local file, latter you can list the images from the local .zip file.

However my primary task is to get list of information of images that are manually upload via the vCenter > AutoDeploy GUI Images.

0 Kudos
LucD
Leadership
Leadership

0 Kudos
mirovasilev
Contributor
Contributor

Thanks, but I really can't get my head around the solution.

As example my in Auto Deploy I just manually created Custom Software Depot with the name "ESXi702A" and i imported 2 images:

mirovasilev_0-1622552118418.png

 

Add-EsxSoftwareDepot - Adds an ESX software depot or offline depot ZIP file to the current PowerCLI session.

So I can load in current session offline depo zip files and that's fine.

But is there way to say something like "Hey, this is the URL or else pointing to the Software Depot called ESXi702A in vCenter, go and Add them to the current session", or I need to manually export from vCenter ZIP files and Add them as offline zip files?

 

 

P.S. I just found that this was answered in here:

https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Work-with-remote-ESXSoftwareDepot/td-p...

"...the custom depot you defined doesn't expose a public URL.
You could export the images you already uploaded as ZIP files, and use the Add-EsxSoftwareDepot with that ZIP file..."

0 Kudos