License keys newly added to a vCenter Server are not retrievable or visible via PowerCLI or the Managed Object Browser (MOB) from other vCenter instances in the Enhanced Linked Mode (ELM)
search cancel

License keys newly added to a vCenter Server are not retrievable or visible via PowerCLI or the Managed Object Browser (MOB) from other vCenter instances in the Enhanced Linked Mode (ELM)

book

Article ID: 420184

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Unable to retrieve newly added license from other linked vCenter Servers using PowerCLI
  • Enhanced Linked Mode (ELM) partner nodes is properly functioning and all changes are synched.
  • Newly added license was visible on vCenter UI of all linked vCenter Servers.
  • PowerCLI cmds used to retrieve the license.

    $License_Manager = Get-View LicenseManager
    $License_Manager.Licenses | select LicenseKey

Environment

vSphere 8.x

Cause

The LicenseManager.licenses property loads its value on the initial call and subsequently update its cache only upon local modify operations.

Resolution

Apply the following workaround to resolve the issue;

$License_Manager = Get-View LicenseManager
$License_Manager.Licenses | select LicenseKey
#Note: Replace the # placeholders with the newly added license key and execute the command.
$License_Manager.UpdateLicenseLabel("#####-####-####-####-#####", "VpxClientLicenseLabel","")