Script to Determining the Required Subscription Capacity for VMware Cloud Foundation (VCF) and VMware vSphere Foundation (VVF) is failing.
Script is from the Article ID: 313548 > Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN
Following error reported when the Power shell script is used:
The vSAN capacity for cluster vSANCluster cannot be determined because of the stale PDL devices in this cluster. Contact Global Support team for assistance.
Total Required VCF Compute Licenses: xxx
Total Required vSAN Add-on Licenses: ERROR
However, there were no PDL devices or disconnected / failed disks in the vSAN cluster.
The power cli script for vSAN health check shows green.
ESXi 8.0.3.0 EP3
PowerCLI 13.3.0.24
PowerShell 7.4.6
Script was failing with PowerShell version 7.4.6.
Upgrading PowerShell version from 7.4.0 to 7.5.0 makes the Script run successfully.