<?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: Get Deployment Custom Property through vRO in VMware Aria Automation Tools Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505519#M3794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;getting Error as host not defined - for this i have added new attribute, to point VCAC:VCACHOST&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;and now getting error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;CODE style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;at line 32 : java&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: #2b91af;"&gt;NullPointerException&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2020 07:53:21 GMT</pubDate>
    <dc:creator>tommuthu</dc:creator>
    <dc:date>2020-05-07T07:53:21Z</dc:date>
    <item>
      <title>Get Deployment Custom Property through vRO</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505517#M3792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;BR /&gt;I have few custom properties on my blueprint, what I'm trying to do, is to get them in one of my stubs.&lt;BR /&gt;I managed to get the CatalogResource of the deployment, but can't find any way to get the properties.&lt;BR /&gt;Does anyone have an idea how to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Yev Berman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 14:02:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505517#M3792</guid>
      <dc:creator>YevBerman</dc:creator>
      <dc:date>2018-07-08T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Deployment Custom Property through vRO</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505518#M3793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some good blog posts on dealing with the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thevirtualist.org/vra-event-broker-pass-basic-custom-properties-vro/" title="http://www.thevirtualist.org/vra-event-broker-pass-basic-custom-properties-vro/"&gt;http://www.thevirtualist.org/vra-event-broker-pass-basic-custom-properties-vro/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also some sample templates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.vmware.com/samples/916/event-broker-workflow-templates" title="https://code.vmware.com/samples/916/event-broker-workflow-templates"&gt;Event Broker Workflow Templates - Samples - VMware {code}&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I include this code in a scriptable task at the start of our blueprint deployment event subscriptions.&amp;nbsp; Pretty sure its taken directly from the samples I linked above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Collect info from payload input&lt;/P&gt;&lt;P&gt;lifecycleState = payload.get("lifecycleState");&lt;/P&gt;&lt;P&gt;componentId = payload.get("componentId");&lt;/P&gt;&lt;P&gt;blueprintName = payload.get("blueprintName");&lt;/P&gt;&lt;P&gt;componentTypeId = payload.get("componentTypeId");&lt;/P&gt;&lt;P&gt;machine = payload.get("machine");&lt;/P&gt;&lt;P&gt;machineProperties= machine.get("properties");&lt;/P&gt;&lt;P&gt;requestId = payload.get("requestId");&lt;/P&gt;&lt;P&gt;endpointId = payload.get("endpointId");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//COLLECT vRA INFO TO USE IN LOGGING&lt;/P&gt;&lt;P&gt;System.log("------List Properties------");&lt;/P&gt;&lt;P&gt;System.log("requestId: " + requestId);&lt;/P&gt;&lt;P&gt;System.log("machine.id: " + machine.get("id"))&lt;/P&gt;&lt;P&gt;System.log("machine.name: " + machine.get("name"))&lt;/P&gt;&lt;P&gt;System.log("machine.type: " + machine.get("type"))&lt;/P&gt;&lt;P&gt;System.log("machine.owner: " + machine.get("owner"))&lt;/P&gt;&lt;P&gt;System.log("machine.externalReference: " + machine.get("externalReference"))&lt;/P&gt;&lt;P&gt;System.log("lifecycleState.event: " + lifecycleState.get("event"))&lt;/P&gt;&lt;P&gt;System.log("lifecycleState.phase: " + lifecycleState.get("phase"))&lt;/P&gt;&lt;P&gt;System.log("lifecycleState.state: " + lifecycleState.get("state"))&lt;/P&gt;&lt;P&gt;System.log("componentId: " + componentId);&lt;/P&gt;&lt;P&gt;System.log("blueprintName: " + blueprintName );&lt;/P&gt;&lt;P&gt;System.log("componentTypeId: " + componentTypeId);&lt;/P&gt;&lt;P&gt;System.log("endpointId: " + endpointId);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vmName = machine.get("name");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Collect vRA VM properties from VM Entity&lt;/P&gt;&lt;P&gt;var properties = new Properties();&lt;/P&gt;&lt;P&gt;properties.put("VirtualMachineID", machine.get("id"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;virtualMachineEntity = vCACEntityManager.readModelEntity(host.id, "ManagementModelEntities.svc", "VirtualMachines", properties, null);&lt;/P&gt;&lt;P&gt;var vCACVm = virtualMachineEntity.getInventoryObject();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Get vCenter object if required&lt;/P&gt;&lt;P&gt;var moRef = machine.get("externalReference");&lt;/P&gt;&lt;P&gt;if (moRef != null) {&lt;/P&gt;&lt;P&gt;var vCenterVm = System.getModule("com.qualcomm.basic").QCgetvCenterVmFromvCACVm(vCACVm);&lt;/P&gt;&lt;P&gt;if (!vCenterVm) {&lt;/P&gt;&lt;P&gt;System.log("No vCenter object exists yet");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else {&lt;/P&gt;&lt;P&gt;System.debug("Found matching vCenterVm: " + vCenterVm.name);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vmProperties = new Properties();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var virtualMachinePropertiesEntities = virtualMachineEntity.getLink(host, "VirtualMachineProperties");&lt;/P&gt;&lt;P&gt;for each (var virtualMachinePropertiesEntity in virtualMachinePropertiesEntities) {&lt;/P&gt;&lt;P&gt; var propertyName = virtualMachinePropertiesEntity.getProperty("PropertyName");&lt;/P&gt;&lt;P&gt; var propertyValue = virtualMachinePropertiesEntity.getProperty("PropertyValue");&lt;/P&gt;&lt;P&gt; System.debug("Found property " + propertyName + " = " + propertyValue);&lt;/P&gt;&lt;P&gt; vmProperties.put(propertyName, propertyValue);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 18:06:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505518#M3793</guid>
      <dc:creator>qc4vmware</dc:creator>
      <dc:date>2018-07-09T18:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Deployment Custom Property through vRO</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505519#M3794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;getting Error as host not defined - for this i have added new attribute, to point VCAC:VCACHOST&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;and now getting error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;CODE style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;at line 32 : java&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;lang&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: var(--black-750);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="font-weight: inherit; font-style: inherit; font-size: inherit !important; font-family: inherit; color: #2b91af;"&gt;NullPointerException&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 07:53:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505519#M3794</guid>
      <dc:creator>tommuthu</dc:creator>
      <dc:date>2020-05-07T07:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Deployment Custom Property through vRO</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505520#M3795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope you to set the host in the attribute.&amp;nbsp; Please verify the value by add this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.debug(" Host :&amp;nbsp; "+host);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 08:17:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-Deployment-Custom-Property-through-vRO/m-p/505520#M3795</guid>
      <dc:creator>kumarsenthild</dc:creator>
      <dc:date>2020-05-07T08:17:49Z</dc:date>
    </item>
  </channel>
</rss>

