vApp count discrepancy between VMware Cloud Director UI and API or third-party integrations
search cancel

vApp count discrepancy between VMware Cloud Director UI and API or third-party integrations

book

Article ID: 433507

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

In VMware Cloud Director (VCD), the total count of vApps displayed in the Cloud Director Tenant or Provider UI does not match the count returned via API queries or reported by third-party integrated products. This discrepancy often results in a higher vApp count via API than what is visually represented in the UI.

Environment

VMware Cloud Director 10.6.x

Cause

Standalone Virtual Machines created in VMware Cloud Director are automatically encapsulated within a hidden, system-generated vApp container. While the VCD UI suppresses these "Standalone VM vApps" to simplify the view, API requests and third-party integrations interact with the underlying data model, which counts these hidden containers as distinct vApp objects.

Resolution

This is expected behavior based on the VMware Cloud Director object model. To reconcile the counts:

  1. Identify VMs in the environment that were created as "Standalone" rather than within a user-defined vApp.

  2. Note that for every Standalone VM, one hidden vApp exists in the database.

  3. When using API or third-party tools, filter results to exclude system-generated vApp containers if a parity with the UI is required.

 

Additional Information

Standalone VMs can also be converted to a vApp in the VCD UI if desired.

  1. From the Tenant UI of Cloud Director navigate to the Datacenters > Compute > Virtual Machines view and locate the standalone VM.
  2. Click Actions menu for the affected VM and select Convert to vApp.
  3. Complete the instructions to save the standalone VM as a vApp.