VMware Cloud on AWS (VMC) Cloud Accounts in Aria Automation fail data collection and validation. The account is marked "Unavailable for deployment."
vsphere and nsxp.FAILED with Failed to validate credentials. Error: Error for endpoint type 'vsphere': Failed to validate resource Error for endpoint type 'nsxp': Failed to validate credentials. AdapterReference: http://provisioning-service.prelude.svc.cluster.local:8282/provisioning/nsxp/endpoint-config-adapter. Error: Retries exhausted for 'Executing getAuthToken' from referer http://####:8282/provisioning/nsxp/endpoint-config-adapter
The issue occurs due to a mismatch or stale certificate/credential mapping within the Aria Automation provisioning service's internal endpoint registry. This prevents the nsxp adapter from successfully obtaining an authentication token for the VMC SDDC.
Manually patch the VMC Cloud Account endpoints using the Aria Automation API.
Retrieve the underlying associated vSphere and NSX with VMC on AWS endpoint using the following API with associated cloud accounts vSphere and NSX.
GET https://{vRA-root-uri}/provisioning/uerp/resources/endpoints/<VMC-endpoint-ID>
Get the Certificate for vSphere and NSX cloud with the below CLI commands:
openssl s_client -connect <vCenter_FQDN>:443 2> /dev/null | openssl x509 | awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}'
openssl s_client -connect <NSX_FQDN>:443 2> /dev/null | openssl x509 | awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}'
Retrieve the vSphere cloud account to double-check you are updating the correct one:GET https://{vRA-root-uri}/provisioning/uerp/resources/endpoints/<vsphere-cloud-account-id>
Update the vSphere cloud account with the valid certificate and credentials (provide the password for privateKey value, and username for privateKeyId) usingPATCH https://{vRA-root-uri}/provisioning/uerp/resources/endpoints/<vsphere-cloud-account-id>
with raw JSON body:
{ "endpointProperties": { "certificate": "<vCenter-certificate-from step 2", "privateKeyId": "[email protected]", "privateKey": "xxxx" }, "customProperties": { "certificate": ""<vCenter-certificate-from step 2" } }
Retrieve the underlying NSX cloud account:
GET https://{vRA-root-uri}/provisioning/uerp/resources/endpoints/<NSX-cloud-account-id>
Update the NSX cloud account : PATCH https://{vRA-root-uri}/provisioning/uerp/resources/endpoints/<NSX-cloud-account-id>
with raw JSON body:
{ "endpointProperties": { "certificate": "<NSX-certificate-from step 2", "privateKeyId": "[email protected]", "privateKey": "xxxx" }, "customProperties": { "certificate": ""<NSX-certificate-from step 2" } }
On the Aria Automation UI, navigate to the VMC on AWS cloud account, apply the API token ID, enter the user credentials to validate, and click save.