VMware Cloud Community
carl1
Expert
Expert
Jump to solution

How to set properites on a VM AFTER deployment

I am working on how to migrate all our VMs from vRA7 to vRA8 using the Onboarding system.  But the Onboarding does not allow you to set properties so I will have to do that after the VMs are onboarded.  However, I have looked at swagger and I do not see any way to set properties on a VM in a deployment.  Any suggestions are welcome 🙂  We have a lot of business data we want to maintain in those properties.

Thanks,
Carl L.

Reply
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

Since 8.2 you can:

curl -k -s -H 'Content-Type: application/json' -H "Authorization: Bearer $access_token" "https://vra8.corp.local/iaas/api/machines/0bef43a7-cfcf-45fc-b98d-6087c1c7cb59 " -X PATCH -d '{"customProperties":{"myprop":"updated"}}'

View solution in original post

1 Reply
xian_
Expert
Expert
Jump to solution

Since 8.2 you can:

curl -k -s -H 'Content-Type: application/json' -H "Authorization: Bearer $access_token" "https://vra8.corp.local/iaas/api/machines/0bef43a7-cfcf-45fc-b98d-6087c1c7cb59 " -X PATCH -d '{"customProperties":{"myprop":"updated"}}'