VMware Cloud Community
kwongheng
Contributor
Contributor
Jump to solution

Add/Update virtual machine custom properties using powershell

Hi all,

I am able to query a virtual machine's custom properties using REST API in powershell with no problems, but how do I update or add a custom properties to a virtual machine using powershell?

Currently, the searches only turns up java codes using VRO but nothing on powershell. Any help would be greatful

Thanks

Kelvin Wong

0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

Nope.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

0 Kudos
4 Replies
kwongheng
Contributor
Contributor
Jump to solution

Sounds like nobody ever done this??

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Nope.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

0 Kudos
kwongheng
Contributor
Contributor
Jump to solution

This is definitely not helpful. I assure you that I have spent days searching for the answer before trying to post on this forum in order to my face hit by a pie.

(1) I have already mentioned that I found out how this is done in javascript

(2) None of my search helped me to translate those javascript to an equivalent powershell script version for update properties in a VM using REST API.

This is why I needed help here with the experts. I hope this clarifies my request.

0 Kudos
Vsure
Enthusiast
Enthusiast
Jump to solution

if you share the javascript you want translated to PowerShell I'm sure I can help.
0 Kudos