VMware Aria Automation Tools

 View Only
  • 1.  Windows Host name is not correct

    Posted Mar 09, 2020 07:25 AM

    Hello Expert,

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

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

    Vm name

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



  • 2.  RE: Windows Host name is not correct

    Posted Mar 10, 2020 03:35 AM

    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.



  • 3.  RE: Windows Host name is not correct

    Posted Jun 11, 2021 09:35 PM

    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.... 

     



  • 4.  RE: Windows Host name is not correct

    Posted Jun 21, 2021 06:24 PM

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


    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}