Hi Luc ,
if yu cud suggest on the foollwoingi am able to connect vcsa vcenter appliance using
connect-cisserver
but not able to retrive below (which used to work fine earlier)
$health_vcenterappliance=(Get-CisService -name 'com.vmware.appliance.health.system').get()
error:
Looks like this API was added in vSphere 6.5, see REST API Reference.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you use an SSO account to do the Connect-CisServer?
This works for me
$service = Get-CisService -name 'com.vmware.appliance.health.system'
$service.get()
Disconnect-CisServer -Server $vcsa -Confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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
Administrator@customdomain.local
I m running on vcsa 6.0 are these health apis available there ?
Looks like this API was added in vSphere 6.5, see REST API Reference.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I think that’s the reason .this was not in 6.0.
thanks Luc.