VMware Cloud Community
evil242
Enthusiast
Enthusiast

vRA 7.6 to vRA 8 / Cloud Assembly Migration: 1. Infra Migration, Business Groups Resource Actions

So we are finally making the leap from vRA 7.6 to vRA 8 / Cloud Assembly.   Following the documentation, I've deployed the on-prem Proxy and ABX appliances.  Got things connected back to the on-prem vRA 7.6 in order to utilize the migration assessment tool.  One of the first items to clean up in the old 7.6 is the Entitlement Built in Resource Actions for each Business Group (BG).  

Screen Shot 2022-07-27 at 1.52.21 PM.pngOf all the possible resource actions, of the Actions my institution desires, only 11 are supported in vRA 8.  

Some of the assessments state I have a total of 66 (someone checked all). Multiplied by 40 Business Groups.  

 

 

 

 

 

 

Screen Shot 2022-07-27 at 3.49.45 PM.pngThat's going to be a lot of manual drop down and remove.

 

 

 

 

 

Assuming you are familiar with, Linux, bash scripting, and VMware_vRealize_CloudClient, there is an easier way.  

1st) I yum installed jq, a lightweight and flexible command-line JSON processor.  I assume there are other cli JSON processors on other systems. 

2) Go through the process for one BG entitlement, review the migration assessment for actions, and remove all the ones that don't work, you can periodically update to get latest number.

3) Extract your known good BG entitlements as a baseline JSON:

 

 

./cloudclient.sh vra entitlement detail --id YourGoodBG --format JSON --export entitlement_updates/default.json

 

 

 

Using jq you can trace through your action names and ids:

 

 

jq .entitledResourceOperations[].resourceOperationRef entitlement_updates/default.json 
{
  "id": "7c9ff251-7af1-461b-856e-21d5c991f597",
  "label": "Decommission"
}
{
  "id": "1cf2b0a9-13b7-4b81-97cd-1f433b1c8350",
  "label": "Create Snapshot"
}
{
  "id": "4f126e32-b137-412c-9672-c29905f3c032",
  "label": "Delete Snapshot"
}
{
  "id": "625e4d36-3548-47af-9e4a-6a86e8c36b33",
  "label": "Revert To Snapshot"
}
{
  "id": "af32bcaf-f7ab-4165-b9dd-a6e3646e23bc",
  "label": "Connect to Remote Console"
}
{
  "id": "b399718f-8035-468c-81e3-2d1568458f11",
  "label": "Power Off"
}
{
  "id": "52e08557-df21-4590-a1b4-b1032fe64ccd",
  "label": "Power On"
}
{
  "id": "73c0593f-4f5f-4524-b12c-6ca3c71e19ce",
  "label": "Reboot"
}
{
  "id": "20ebe9a5-6e67-4d27-a1ab-27db0355da49",
  "label": "Shutdown"
}
{
  "id": "8faf187d-0800-40b7-80ac-feb86dbd8fd3",
  "label": "Change Lease"
}
{
  "id": "c089a4dd-64e6-4c9c-9acf-6a61dadb37f5",
  "label": "Change Owner"
}
{
  "id": "827cf77a-ba09-4a64-b861-161867895a25",
  "label": "Destroy"
}

 

 

 

4) Next remove all the actions from your bad BG

 

 

 for op in $(./cloudclient.sh vra entitlement detail --id BadBG --format JSON | jq .entitledResourceOperations[].resourceOperationRef.id ) # lists all operation id
do 
   ./cloudclient.sh vra entitlement action assign --id BadBG --action REMOVE --operationid $op
done

 

 

 

This will take a while with a series of "Success." written to the output.

Screen Shot 2022-07-27 at 4.40.17 PM.png  

Upon return of prompt, an "Update" in migration assessment should will remove Built in Resource Actions as a dependency for migration.

 

 

 





5) Now Add back in the known good and desired operations:

 

 

for op in $(jq .entitledResourceOperations[].resourceOperationRef.id entitlement_updates/default.json) 
do 
   ./cloudclient.sh vra entitlement action assign --id BadBG --action ADD --operationid $op
done

 

 

 

Screen Shot 2022-07-27 at 5.05.40 PM.png6) Update and check Cloud Assembly Migration assessment for Actions and you should see you are good to proceed with that Business Group as far as Built in Resource Actions are concerned. 

 

 

 

 

 

 

Screen Shot 2022-07-27 at 5.05.05 PM.png

 

 

 

 

 

 

 

 

Damion Terrell  .   +  (He/Him)  +  . *  .  +   @   + .    *  .    +      .                    
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
0 Replies