Did you use an SSO account to do the Connect-CisServer?
This works for meConnect-CisServer -Server $vcsa -User $user -Password $pswd | Out-Null
$service = Get-CisService -name 'com.vmware.appliance.health.system'
Disconnect-CisServer -Server $vcsa -Confirm:$false
it is customized sso account .but iam able to login .does it mean that account is not authorized to get this info.
Looks like it.
Best way to make sure is to try with an account that is in the SSO Administrators group.
When I use an account that is not in that group, I get the same error as you are getting.
I'm going to check this however last time it happened it gave me unauthorized error which is not the case right now .
I can see this was deployed using
I m running on vcsa 6.0 are these health apis available there ?
I think that’s the reason .this was not in 6.0.