VMware Aria

 View Only
  • 1.  how to include geography in vm name?

    Posted Jul 19, 2023 04:30 PM

    Hi there,

    I've been working on setting up a test environment with Vmware Aria, but I'm having some issues getting my head around Automation Assembler.

    In particular, I want to include a geographic reference in the VM name that gets deployed.I have multiple vcenters which span multiple regions so it's nice to be able to instantly know from the name which vcenter I can expect to find the VM in.

    As best I can describe what I want to do is something like :

    name: ${geography}-vra-${######}

    I'm deploying to on-prem Vmware Vcenters. I tried to see if I could somehow attach custom attributes to the vmware clouds I have defined but I don't seem to be able to do this.

    Which is odd. In LCM you can define where your data center is and even put it on a map. Yet I don't seem to be able to reference any of this location data in Automation Assembler?

    If anyone has done anything like this before, I'd love to hear about it!



  • 2.  RE: how to include geography in vm name?

    Posted Sep 23, 2023 07:58 PM

    Use can use geography as yam input and then use it the name of your VM by using global naming of vRA or a vRO workflow. if you want to check the vCenter of the VM you can use the events in the subscriptions (some event have the attributes vcUiid). 

  • 3.  RE: how to include geography in vm name?

    Broadcom Employee
    Posted Sep 23, 2023 08:08 PM

    I agree with ca_fahem, please follow the example  "Example of a custom name with property group and cloud template user inputs" on this doc https://docs.vmware.com/en/VMware-Aria-Automation/SaaS/Using-Automation-Assembler/GUID-29344E60-5D86-4653-8D3D-B6D02D159CE4.html

  • 4.  RE: how to include geography in vm name?
    Best Answer

    Posted Sep 23, 2023 08:30 PM

    I managed to solve this with the aid of this blog post I googled up.




    Esentially you can create your own custom resource values which you can then include in the name of your VM.


    In my blueprint I have an input which asks the user to choose which geography they want their VM in. So for example here, I ceate a 'region' property and set that to the value of the input.


    type: Cloud.vSphere.Machine
    region: ${input.region}


    Then in Infrastructure->Administration->projects->"example project" under the Provisioning->Custom Naming I have it set to the following.




    Hope this helps anyone else trying to solve this.