Workflow is failing with Error: Unable to get vRA Access Token
search cancel

Workflow is failing with Error: Unable to get vRA Access Token


Article ID: 367403


Updated On:


VMware Aria Suite


In VMware Aria Automation, The provisioning fails when they have subscribed to call a workflow in orchestrator where we might see similar error

Extensibility triggered task failed. Event ID: d5473938-*******************. Failure: Extensibility error received for topic compute.allocation.pre, eventId = 'd5473938-*******************************': [10040] SubscriberID: vro-gateway-*****************, RunnableID: C0D7E01C-************************** and SubscriptionID: Generated.QH.compute.allocation.pre failed with the following error: Workflow run [424573b1-*************************] completed with error [Error: Unable to get vRA Access Token {"status":400,"headers":{"Cache-Control":"no-cache, no-store, max-age=0, must-revalidate","X-Xss-Protection":"1 ; mode=block","Referrer-Policy":"no-referrer","Content-Length":"193","Strict-Transport-Security":"max-age=*** ; includeSubDomains","X-Frame-Options":"SAMEORIGIN","Date":"************** GMT","":"no-cache","Expires":"0","Content-Type":"application/json","X-Content-Type-Options":"nosniff"},"body":{"message":"'refreshToken' can not be null.","statusCode":400,"errorCode":0,"serverErrorId":"35101d10-*********************","documentKind":"com:vmware:xenon:common:ServiceErrorResponse"}} (Dynamic Script Module name : #98)]

The message is pointing to ":"'refreshToken' can not be null


Aria automation orchestrator 8.x

Aria automation 8.x


This is caused because the refresh token is missing from the configuration of orchestrator


1.Run this command to obtain the refresh token

     curl --insecure -H "Accept: application/json" -H 'Content-Type: application/json' --data '{"username":"<username>","password":"<password>"}' https://<vra-host>/csp/gateway/am/api/login?access_token

2.Open vRO--> go to Assets --> Configurations and look for the configuration that is utilized by Aria automation
            This configuration is used internally by the Orchestrator workflow to deploy cloud templates

3.Edit the variable refresh token and update the refresh token that is obtained by step 1

4.Rerun the workflow/Provisioning