Closed patikoija closed 2 years ago
I guess the session is established in the previous script and the intent is to run the proxy script in short enough time thereafter that the session remains open. Adding the Connect-VIServer line to this script and the variables necessary to make it run allowed the proxy script to run successfully. Would recommend either making a note of that necessity or simply adding the required lines to this script.
I have edited the fields necessary to deploy the OVA in the haproxy script, but I don't see a stanza for connecting to vCenter in it. There is a variable for defining the host that the OVA should be deployed to, but not for connecting to vCenter. As such, the error returned is:
Line | 32 | $ovfconfig = Get-OvfConfiguration $HAProxyOVA |
~~~~~~~~ | 2/12/2022 1:51:51 PM Get-OvfConfiguration This cmdlet requires a vCenter Server connection.In previous scripts there was a line like this:
$vc = Connect-VIServer $VCSAHostname -User $VCSAUsername -Password $VCSAPassword
Am I simply overlooking something?