Open Big-Giant-Head opened 2 months ago
What vSphere version are you running? Can you share any more information about the number and types of licenses you currently have?
AsBuiltReport.Core = v1.4.0 AsBuiltReport.VMware.vSphere = v.1.3.4.1 Powershell = 7.4.5 ESXi = 8.0.2 build-23305546 (U2b) vCenter = 8.0.2 built-23504390 (U2c)
vSphere 8 Enterprise Plus (Perpetual) vCenter Server 8 Standard (Perpetual)
I run the script with the unedited administrator@vsphere.local user. (Full rights)
Bug description
Everytime I run a new report this error gets thrown. New-AsBuiltReport: Index operation failed; the array index evaluated to null. Also, in a -verbose it states: VERBOSE: [ 11:10:43:637 ] [ Document ] - Insufficient user privileges to report ESXi host licensing. Please ensure the user account has the 'Global > Licenses' privilege assigned.
but iit is run with administrator@vsphere.local
Command-line input
New-AsBuiltReport -Report VMware.vSphere -Target 'vcenter.ad.local' -Username 'administrator@vsphere.local' -Password 'password' -Format Word -OutputPath "C:\Reports" -ReportConfigPath "C:\Reports\1Script\Config\fullBuiltReport.VMware.vSphere.json" -TimeStamp -EnableHealthcheck -verbose
Steps to reproduce
"InfoLevel": { "comment": "0 = Disabled, 1 = Enabled / Summary, 2 = Adv Summary, 3 = Detailed, 4 = Adv Detailed, 5 = Comprehensive", "vCenter": 4, "Cluster": 4, "ResourcePool": 4, "VMHost": 2, << if this is set higher than 2, it failes "Network": 4, "vSAN": 0, "Datastore": 4, "DSCluster": 4, "VM": 4, "VUM": 4
Expected behaviour
for it to work.
Screenshots
No response
Operating System
Windows 11
PowerShell Version
Name Value
PSVersion 7.4.5 PSEdition Core GitCommitId 7.4.5 OS Microsoft Windows 10.0.22631 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
PowerShell Modules
Name Version
AsBuiltReport.Core 1.4.0 AsBuiltReport.VMware.vSphere 1.3.4.1 PScribo 0.10.0
Additional Context
No response
Before submitting