WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Quick Tip - Easily identify Virtual Appliances using vSphere API

Quick Tip - Easily identify Virtual Appliances using vSphere API

10.03.2023 by William Lam // Leave a Comment

VMware Virtual Appliances (VA) that are built from either VMware or from our 3rd party eco-system will typically include useful metadata about the solution including name, version, vendor and other details.

Using the vSphere UI, you can locate this information when selecting a VM under Configure->Settings->vApp Options and below is an example for a vCenter Server Appliance (VCSA).


Note: If you deploy a VA directly to an ESXi host, these VA properties will not be available as the vApp capability is a vCenter Server feature.

I recently had an inquiry from a customer with over 10K+ VMs that was looking to identify this information and obviously, using the vSphere UI would be a non-starter and was looking for a way to automate this.

With the vSphere API, you can also easily retrieve this information which is available within the vAppConfig object which includes other useful pieces of information including appliance configurations used during the deployment. To retrieve the high level product information, you can use the ProductInfo property and to demonstrate this, below is a small PowerCLI snippet that uses the vSphere API to extract this property:

$vms = Get-View -ViewType VirtualMachine -Property Name,Config.VAppConfig.Product

foreach ($vm in $vms | where {$_.Config -ne $null -and $_.Config.VAppConfig.Product.Vendor -ne ""}) {
        $vm.Name
        $vm.Config.VAppConfig.Product[0]
}

Here is a screenshot of what the output will look like:

More from my site

  • Create Windows 11 Virtual Appliance using Tiny 11 with only 2GB memory
  • Packer reference for building PhotonOS Virtual Appliance using OVF properties 
  • Building your own Virtual Appliances using OVF properties Part 3
  • Running sk8s (Simple Kubernetes) on VMC with an AWS Elastic Load Balancer
  • sk8s - Simple Kubernetes (k8s) Virtual Appliance

Categories // Automation, PowerCLI Tags // virtual appliance

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...