Customer would like to use PowerCLI variable to get list of ESXi images uploaded to the VCSA for use with Auto Deploy Rules.
They want to get the $IMG variable from the VCSA's already deployed ESXi images that are stored in the VCSA's Image Builder Interface.
New-DeployRule -Name ($HOSTPROFILE).Name -Pattern $PATTERNLIST -Item $IMG,$HOSTPROFILE,$CLUSTER
[Workaround] - TIME CONSUMING
Customer needs to export the images already uploaded (through UI) as ZIP files, and use the Add-EsxSoftwareDepot with that ZIP file.
Then Get-EsxSoftwareDepot will return the depot.
Add-EsxSoftwareDepot cmdlet "Adds an ESX software depot or offline depot ZIP file to the CURRENT PowerCLI SESSION"
So customer will have to add the depot each time he start a session.