Running vRA 8.8. Trying to connect to vcenter for a query. When i call this, it just hangs and eventually times out. I can run this in powershell outside vra and it works fine. code hangs after Write-Host "connecting"
Figured it out. Putting here for posterity for others.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
putting this in my script fixed the issue.
Figured it out. Putting here for posterity for others.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
putting this in my script fixed the issue.