<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error &amp;quot;Failure to construct resource name for : 'Cloud_vSphere_Network_1'&amp;quot; while deplo in VMware Aria Automation Tools Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862328#M23531</link>
    <description>&lt;P&gt;Cool, I'm glad you were able to track down the source of the issue!&lt;/P&gt;&lt;P&gt;I did some testing with that information and was able to reproduce the same problem you had before; if I set the Naming Template on the Project to something like '${resource.hostname}' without including any randomized digits ('{###}'), there's a conflict because both the computer and network resource try to use the exact same name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to work around that by appending '-net' to the property on the network resource:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;inputs:
  hostname:
    type: string
    title: Server name
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.vSphere.Machine
    properties:
      hostname: '${input.hostname}'
      image: cent7
      flavor: micro
      networks:
        - network: '${Cloud_vSphere_Network_1.name}'
  Cloud_vSphere_Network_1:
    type: Cloud.vSphere.Network
    properties:
      hostname: '${input.hostname + "-net"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now input a specific hostname to be used for the provisioned VM, and the associated network resource will get named the same but with "-net" tacked on the end.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 20:48:11 GMT</pubDate>
    <dc:creator>johnbowdre</dc:creator>
    <dc:date>2021-08-16T20:48:11Z</dc:date>
    <item>
      <title>Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deployment testing</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861906#M23521</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am getting an error&amp;nbsp;&lt;EM&gt;Failure to construct resource name for : 'Cloud_vSphere_Network_1 &lt;/EM&gt;while testing basic blueprint deployment test. PFA screenshot.&lt;/P&gt;&lt;P&gt;formatVersion: 1&lt;BR /&gt;inputs:&lt;BR /&gt;platform:&lt;BR /&gt;type: string&lt;BR /&gt;title: cloud platform&lt;BR /&gt;environment:&lt;BR /&gt;type: string&lt;BR /&gt;title: environment&lt;BR /&gt;resources:&lt;BR /&gt;Cloud_vSphere_Machine_1:&lt;BR /&gt;type: Cloud.vSphere.Machine&lt;BR /&gt;properties:&lt;BR /&gt;image: vRA-Windows2019&lt;BR /&gt;customizationSpec: WIN2019_vRA&lt;BR /&gt;cpuCount: 2&lt;BR /&gt;totalMemoryMB: 4096&lt;BR /&gt;constraints:&lt;BR /&gt;- tag: '${input.platform}'&lt;BR /&gt;- tag: '${input.environment}'&lt;BR /&gt;networks:&lt;BR /&gt;- network: '${resource.Cloud_vSphere_Network_1.id}'&lt;BR /&gt;Cloud_vSphere_Network_1:&lt;BR /&gt;type: Cloud.Network&lt;BR /&gt;properties:&lt;BR /&gt;networkType: existing&lt;/P&gt;&lt;P&gt;I have assigned a tag to Network profile and tried in YAML under constraints, still same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me understand the issue and the resolution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sasidhar&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 20:16:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861906#M23521</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-12T20:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861908#M23522</link>
      <description>&lt;P&gt;Maybe change the type of your network resource to &lt;FONT face="courier new,courier"&gt;Cloud.vSphere.Network&lt;/FONT&gt; so it matches the machine type?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  Cloud_vSphere_Network_1:
    type: Cloud.vSphere.Network
    properties:
      networkType: existing&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Aug 2021 20:22:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861908#M23522</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-12T20:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861990#M23523</link>
      <description>&lt;P&gt;Tried that, same error. Please suggest any other. Do we need to add any custom properties at project level?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:34:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2861990#M23523</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-13T13:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862087#M23524</link>
      <description>&lt;P&gt;What does your network profile in Cloud Assembly look like?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 15:50:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862087#M23524</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-14T15:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862305#M23526</link>
      <description>&lt;P&gt;Please see the screenshots for network details&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:48:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862305#M23526</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-16T17:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862308#M23527</link>
      <description>&lt;P&gt;You might try changing the Isolation Policy of the Network Profile to "None" just to simplify things a bit. I don't think those options are involved when you use `networkType: existing` but it may just be adding unnecessary complication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd also specify the CIDR with the network address (x.x.x.0/23) instead of a host address (x.x.x.66/23) just to make sure there isn't any confusion there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Provisioning Diagram from the deployment test might yield some additional insight into what's going on as well.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 18:13:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862308#M23527</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-16T18:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862314#M23528</link>
      <description>&lt;P&gt;I have disabled network policies and changed the CIDR to network address(DG), still same error. Provisioning diagram is attached which says its failing at "Allocation". The JSON file exported from provisioning diagram is also attached. Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 18:32:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862314#M23528</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-16T18:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862323#M23529</link>
      <description>&lt;P&gt;Hmm, I'm trying &lt;EM&gt;really&lt;/EM&gt; hard to reproduce this in my lab but haven't had any luck in breaking it yet.&lt;/P&gt;&lt;P&gt;Any change if you remove the constraints section from the machine resource definition? Try to make the cloud template as simple as possible to rule out potential points of failure.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 19:55:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862323#M23529</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-16T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862327#M23530</link>
      <description>&lt;P&gt;I figured out the issue is causing due to&amp;nbsp;${resource.hostname} given in the project under custom naming section.&lt;/P&gt;&lt;P&gt;Without network adapter the &lt;EM&gt;hostname&lt;/EM&gt; was given as an input with&amp;nbsp;&lt;EM&gt;${resource.hostname}&lt;/EM&gt; updated in project and the VM build was successful taking default VLAN.&lt;/P&gt;&lt;P&gt;As you suggested, tried from scratch without custom hostname and figured out the issue. &lt;STRONG&gt;Thanks for your help&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way we can give custom hostname without any predefined configured input values(Env, OS flavor, Suffix number etc) with a network adapter in Blueprint design. My customer do not have a naming convention for hostname in place.&lt;/P&gt;&lt;P&gt;For ex: I want to build a VM name as "Titanic".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 20:22:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862327#M23530</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-16T20:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862328#M23531</link>
      <description>&lt;P&gt;Cool, I'm glad you were able to track down the source of the issue!&lt;/P&gt;&lt;P&gt;I did some testing with that information and was able to reproduce the same problem you had before; if I set the Naming Template on the Project to something like '${resource.hostname}' without including any randomized digits ('{###}'), there's a conflict because both the computer and network resource try to use the exact same name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to work around that by appending '-net' to the property on the network resource:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;inputs:
  hostname:
    type: string
    title: Server name
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.vSphere.Machine
    properties:
      hostname: '${input.hostname}'
      image: cent7
      flavor: micro
      networks:
        - network: '${Cloud_vSphere_Network_1.name}'
  Cloud_vSphere_Network_1:
    type: Cloud.vSphere.Network
    properties:
      hostname: '${input.hostname + "-net"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now input a specific hostname to be used for the provisioned VM, and the associated network resource will get named the same but with "-net" tacked on the end.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 20:48:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862328#M23531</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-16T20:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862329#M23532</link>
      <description>&lt;P&gt;Whoops, nope, I was actually overthinking that; the issue was just with the network resource not having the 'hostname' property defined at all - a null value rather than a collision. Remember that the naming template is applied at the resource (not deployment) level so all resources in a template (machine, network, etc) will get named.&lt;/P&gt;&lt;P&gt;So just add&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    properties:
      hostname: '${input.hostname}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the network resource portion of your cloud template and I think you'll be good to go.&lt;/P&gt;&lt;P&gt;All together now:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;formatVersion: 1
inputs:
  hostname:
    type: string
    title: Server name
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.vSphere.Machine
    properties:
      hostname: '${input.hostname}'
      image: cent7
      flavor: micro
      networks:
        - network: '${Cloud_vSphere_Network_1.name}'
  Cloud_vSphere_Network_1:
    type: Cloud.vSphere.Network
    properties:
      hostname: '${input.hostname}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 12:52:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862329#M23532</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-17T12:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862764#M23545</link>
      <description>&lt;P&gt;Thanks a lot for your resolution. Am able to deploy a custom named vm with a network adapter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:36:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862764#M23545</guid>
      <dc:creator>Sasidhar1234</dc:creator>
      <dc:date>2021-08-18T18:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Failure to construct resource name for : 'Cloud_vSphere_Network_1'" while deplo</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862769#M23546</link>
      <description>&lt;P&gt;You're welcome. That was a kind of fun one!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 19:18:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Error-quot-Failure-to-construct-resource-name-for-Cloud-vSphere/m-p/2862769#M23546</guid>
      <dc:creator>johnbowdre</dc:creator>
      <dc:date>2021-08-18T19:18:17Z</dc:date>
    </item>
  </channel>
</rss>

