WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Decoding vSphere (vCenter/ESXi), vSAN & Tanzu License Keys

Decoding vSphere (vCenter/ESXi), vSAN & Tanzu License Keys

06.10.2024 by William Lam // 2 Comments

For most users, you probably have a large collection of vSphere license keys that have been provisioned over the years and keeping track of the product SKU, entitled features and capacity can be a challenge, especially if you are just looking at the raw 25 character license string.

While the Broadcom Support Portal (BSP) is recommended for all license management operations(view, split, merge, etc), did you know you could also use vCenter Server to help decode a particular license key?

When you attempt to add a valid license key (ESXi, vCenter, vSAN or Tanzu) to a vCenter Server, it provides a preview of the product SKU features and capacity, where it decodes the 25 character license string into something more meaningful.

With this information, we replicate the same behavior by using the vSphere API and specifically the decodeLicense method to decode a specific license key that vCenter Server understands.

To demonstrate this functionality, I have created a PowerCLI function called Decode-VMwareLicense that will allow users to specify one or more license keys and it will automatically decode the product SKU, Capacity, Unit, Expiration, entitled components and features for each license key.

Step 1 - Download DecodeVMwareLicense.ps1 to your local system

Step 2 - Source the Decode-VMwareLicense function by running the following command:

. ./DecodeVMwareLicense.ps1

Step 3 - Connect to one of your vCenter Server using the Connect-VIServer cmdlet

Step 4 - Run the following command with an array of license keys that you wish to decode:

Decode-VMwareLicense -LicenseKeys @("AAAA","BBB","CCC","DDD")

Here is an example output for decoding four license keys that translates to vSphere Enterprise Plus, vSAN Enterprise, vSphere Enterprise Plus for VCF and vSphere Enterprise Plus for VVF:

More from my site

  • Downgrading new VMware vSphere Foundation (VVF) or VMware Cloud Foundation (VCF) licenses to 7.x
  • Quick Tip - VMware Cloud Foundation (VCF) 5.2 provisioning fails with Update SDDC Manager with Licensing Information
  • Determining new VMware vSphere Foundation (VVF) & VMware Cloud Foundation (VCF) license usage in vSphere 8.0 Update 2b
  • Updated Inventory & Calculator Scripts for counting Cores/TiBs for VMware Cloud Foundation (VCF) and VMware vSphere Foundation (VVF)
  • What's in the new VMware vSphere Foundation (VVF) and VMware Cloud Foundation (VCF) offers?

Categories // Automation, VMware Cloud Foundation, VMware Tanzu, VMware vSphere Foundation, VSAN, vSphere Tags // license, VMware Cloud Foundation, VMware vSphere Foundation

Comments

  1. *protectedBruce Ferrell says

    06/11/2024 at 5:48 pm

    Just out of curiosity, can this determine is this is an eval license vs a purchased license?

    I've had instance in which evals were applied and presented a purchased... Needless to say, hilarity ensued.

    Reply
    • William Lam says

      06/11/2024 at 8:41 pm

      Yup. Eval is easy as the license key will show all zeros

      Reply

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...