VMware Cloud Community
rchaubey
Enthusiast
Enthusiast

Windows Host name is not correct

Hello Expert,

When i am trying  to deploy Windows vm through Vra 8 and using custom name  ( Typing Manually ) pastedImage_0.pngBut some extra word is coming along with hostname .

Deployment Name- ICDS-WIN-DB0011 but Vm is I-WIN-APP-001-mcm385-132130544766

pastedImage_2.png

Vm name

pastedImage_1.png

Can you please help me how to remove extra word (mcm385-132130544766)

0 Kudos
3 Replies
stevedrummond
Hot Shot
Hot Shot

How are you actually setting the vRA name of the VM though? Are you setting it with EBS or using the custom naming configuration on the project?

You can't just use the "hostname" property in the YAML.

0 Kudos
chrisjsteinke
Contributor
Contributor

I have this same question only for Linux VMs.  I'm not defining anything in the project, since the project always overrides whatever the requestor picks if a custom name template is picked. I'm not setting it with EBS. 

So why can't I just use the 'hostname' that is inputted by the user?  You know kind of like vSphere.... 

 

0 Kudos
BrettK1
Enthusiast
Enthusiast

I've basically asked the same question here: https://communities.vmware.com/t5/vRealize-Automation-Tools/User-Specified-Hostname-VM-Name/m-p/2853...


To accomplish this in our case we:

1) In the Project, set the 'custom naming' to ${resource.name} and
2) In the Template, set the Cloud.vSphere.Machine property 'name: '${input.Your_Hostname_Input_Field}'

This named the VM and Windows Hostname both to ${input.Your_Hostname_Input_Field}

0 Kudos