VMware Cloud Community
hchchchc
Contributor
Contributor
Jump to solution

Rename VM (change Display Name) with vCO

hi,

maybe a dumb question, but i'm struggling with it.

is there an easy way in a scriptable task to rename a vm ?

thanks, chris

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

It looks like this:

task = vm.rename_Task(newName);

Christophe.

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

Hi Christian Smiley Happy

If you look for the vCloud Director version, here it is.

vAppVm.name = newName;
var task = vAppVm.update();

Christophe.

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
hchchchc
Contributor
Contributor
Jump to solution

hi,

does it work somehow this way for vsphere:

Vm.name = newName;
var task = Vm.update();

thanks, chris

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

It looks like this:

task = vm.rename_Task(newName);

Christophe.

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
hchchchc
Contributor
Contributor
Jump to solution

thanks, chris Smiley Wink

0 Kudos