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?
Did you try Get-EsxImageProfile?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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
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
I have few Software Depots, and each of them contain single image.
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
Perhaps you can do a similar exercise?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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.
This is in fact the same as in Solved: AutoDeploy Unable to associate ESXi image using po... - VMware Technology Network VMTN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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:
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:
"...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..."