When I run connect-viserver -Server vcenter -Credential(Get-Credential) I get:
Connect-VIServer : 'config.vpxd.sso.sts.uri' is invalid or exceeds the maximum number of characters permitted.
At line:1 char:1
+ Connect-VIServer -Server vcenter -Credential(Get-Credential)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], VimException
+ FullyQualifiedErrorId : VMware.Vim.VimException,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer
That looks as if your vCenter is pointing to an incorrect PSC.
Check the vCenter's Advanced Settings, more specifically the config.vpxd.sso.sts.uri entry
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Can you connect when you specify the SSO administrator (default is administrator@vsphere.local)?
WHich vSphere version are you using? And is it a VCSA?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes I can log into vcenter with the administrator@vsphere.local account. We just upgraded/migrated vcenter on Windows to vcsa 6.5.
Just to make sure, that is a Connect-VIServer with the administrator@vsphere.local account?
If yes, there might be something wrong with the Authentication source(s).
When you do a Connect-VIServer without credentials, the SSO will use the credentials of the sessions from where you do the Connect-VIServer.I assume that would be an Active Directory account?
Can you try to remove/add the AD authentication source in SSO?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I got the same issue 😕
Also upgraded from 6.0 Windows to vcsa 6.5d. Re-Add the domain does not work ...
I just added the vCenter Advances Parameters:
config.vpxd.sso.admin.uri
https://MyvCenter-Server.dom/sso-adminserver/sdk/vsphere.local
config.vpxd.sso.groupcheck.uri
https://MyvCenter-Server.dom/sso-adminserver/sdk/vsphere.local
config.vpxd.sso.sts.uri
https://MyvCenter-Server.dom/sts/STSService/vsphere.local
They were missing 😕
This worked for me
I had the same issue after upgrading from VCSA 6.0 to 6.5. I only had to add the one line
config.vpxd.sso.sts.uri -> https://MYserver.FQDN/sts/STSService/vsphere.local
Thanks for posting!
Just wanted to chime in and say that this is still a thing 6.7. The vCenter I ran into this on was upgraded from 6.5.