AsBuiltReport.VMware.vSphere
AsBuiltReport.VMware.vSphere copied to clipboard
The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
Describe the bug A clear and concise description of what the bug is.
When the script is running, suddenly after some time a message that say appear:
New-AsBuiltReport : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
To Reproduce Steps to reproduce the behavior:
- Go to the folder where the script is
- Click on 'open an powershell in admin mode (where trying with PS ISE, PS v5 and PS v7 as well'
- Run command New-AsBuiltReport -Report VMware.vSphere -Target 'vCenterFQDN' -EnableHealthCheck -Verbose

Expected behavior That the DOc document were generated.
Screenshots If applicable, add screenshots to help explain your problem.
System (please provide the following information about the system from which you are trying to generate a report):
- OS: Windows 10
- Windows PowerShell version

-
3rd party PowerShell module name and version [e.g. VMware PowerCLI 11.2]

-
AsBuiltReport Core module version [e.g. 1.0.0]
-
AsBuiltReport Report module name and version [e.g. AsBuiltReport.VMware.vSphere 1.0.0]

Additional context vCenter versioon 6.5 user with admin privileges on domain ([email protected]) I have to run this amazing tool with several vCenters and only in 1 on those had those problems. it has 4300 vms and 250 hosts
What is the output of Get-PowerCLIConfiguration?
Perhaps try and increase the WebOperationTimeoutSeconds parameter?
Set-PowerCLIConfiguration -WebOperationTimeoutSeconds 600
Closing this issue due to lack of response. Please reopen if you continue to experience issues.