After registering Aria Operations with vCenter you may see the following message when you access VMware Aria Operations remote plugin from vCenter:
401 Unauthorized Error : Unable to authorize VMware Aria Operations/vCenter Server API with the provided credentials
Please refer the below mentioned steps to resolve
You may see the following error in /storage/log/vcops/log/unicorn.log:
NFO 3723 --- [ajp-nio-127.0.0.1-8010-exec-4] c.v.v.u.p.s.api.SuiteApiRestClient : Resolving the hostname
INFO 3723 --- [ajp-nio-127.0.0.1-8010-exec-4] c.v.v.u.p.s.api.SuiteApiRestClient : Authorisation Exception :The provided token for auth scheme "VCToken" is either invalid or has expired.
ERROR 3723 --- [ajp-nio-127.0.0.1-8010-exec-4] c.v.v.u.p.s.api.SuiteApiRestClient : com.vmware.ops.api.client.exceptions.AuthException: The provided token for auth scheme "VCToken" is either invalid or has expired.
at com.vmware.ops.api.client.internal.ResponseHandlerImpl.handleResponse(ResponseHandlerImpl.java:101)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
VMware Aria Operations 8.x
VMware vCenter 8.0.x
The plugin requires permission to log in to Aria Operations via vCenter user.
The issue occurred because the vCenter Adapter Instance in VMware Aria Operations was not in a collection (collecting) state, due to authentication failure for the integration account being used.
Other causes:
Administration -> Integrations -> Accounts -> vCenter -> Select the vCenter Instance and click edit -> Validate Connection
If the Validate Connection fails pointing towards Authentication, make sure to validate the credentials and update if needed
Administration -> Global Settings -> User Access -> Enable 'Allow vCenter users to log in from vCenter clients'
This may affect the Aria Operations Remote Plugin that is used in vCenter 8.0.0.10000 or later.
For more information on the Remote Plugin, see Integrating the Aria Operations plugin with vCenter Server