VMware Cloud Community
pezhorEL
Contributor
Contributor
Jump to solution

Renaming a vCloud vApp's VM Name

I'm trying to automate the deployment of vApp Templates provided a custom name for the vApp and custom name for the contained VM. I can fairly easily deploy the template with Instantiate a vApp Template, but I can't seem to find a function/workflow to rename the VM contained within that vApp. Node that I'm not looking to rename the VM via Guest Customization, I want the vCloud VM name to be customized.

Any ideas?

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

If I recall well just do.

vm.name = "new name";

vm.update();

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

0 Kudos
4 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

If I recall well just do.

vm.name = "new name";

vm.update();

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
pezhorEL
Contributor
Contributor
Jump to solution

That was almost too easy. Is there a good resource to reference for built in functions like that?

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

The API explorer in vCO is the place where the objects and methods are documented.

Any vCD Java SDK / REST API doc should help as well since the vCO plug-in maps closely to their functionality.

In terms of examples of code, the document tab here and some blogs including mine (vcoteam.info).

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

Sounds like you might also want to look at the Custom Deploy vApp workflow found on the Documents tab of this discussion... as Christophe mentions, we've got quite a bit of sample code Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos