When attempting to configure or validate the Azure VMware Solution (AVS) Private Cloud Adapter in VMware Aria Operations, the configuration fails with the following error:
/storage/log/vcops/log/AVS_adapter.log reveals the following un-parsed error and AuthenticationException:
YYYY-MM-DDTHH:MM:SS,873+0000 ERROR [TasksManager-TaskHandler-31] (xxx) com.vmware.vrops.adapter.avs.util.AVSAdapterClient.<init> - [AvsAdapterClient] Error Occured :
java.lang.RuntimeException: java.io.IOException: com.microsoft.aad.adal4j.AuthenticationException: {"error":null}
...
YYYY-MM-DDTHH:MM:SS,874+0000 ERROR [TasksManager-TaskHandler-31] (xxx) com.vmware.vrops.adapter.avs.util.AVSAdapterClient.<init> - UN-PARSED ERROR : {"error":null}
YYYY-MM-DDTHH:MM:SS,875+0000 ERROR [TasksManager-TaskHandler-31] (xxx) com.vmware.vrops.adapter.avs.AVSAdapter.onConfigure - Configure failed with exception
com.vmware.vrops.adapter.avs.exception.LoginException: {"error":null}
rootcurl command to ensure authentication is successful and token is retrieved:curl -X POST https://login.microsoftonline.com/<TENANT_ID>/oauth2/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=<CLIENT_ID>" \
-d "client_secret=<CLIENT_SECRET>" \
-d "resource=https://management.azure.com/"
Note: <TENANT_ID>, <CLIENT_ID> and <CLIENT_SECRET> values to be collected from Microsoft Azure Portal.
admin userData Sources > Integrations > Accounts.Validate Connection. The validation should now succeed.Save to apply the configuration and begin data collection.