1 Reply Latest reply on Feb 7, 2020 1:04 PM by stevenbright

    vRA 8 - vRO Workflow Subscriptions

    jgautierit Lurker



      I am a new vRA user trying to play with the product in the lab.


      I am struggling to understand how to execute some vRO workflows for a specific blueprint.


      As an example, I am just trying to execute the workflow "Create a Snapshot" after my VM is deployed by my blueprint.


      Everytime I get the error "VM Cannot be null". So I understand that it needs to gather that name somehow but how to do it ?


      I tried to create another subscription with the vRO Workflow "Get VM Name" but it does not work.


      Can somebody explain with simple words ?


      Thanks a lot

        • 1. Re: vRA 8 - vRO Workflow Subscriptions
          stevenbright Enthusiast

          vRealize Orchestrator workflows that are used for extensibility event Subscriptions require a workflow input titled "inputProperties" that is of the type "Properties". Whenever the workflow is executed from vRA, it will populate this input with all the properties provided by the Event Topic selected in your Subscription. This requirement can be found in the vRealize Automation documentation How do I modify virtual machine properties using a vRealize Orchestrator workflow subscription. The properties that are provided can be seen by expanding the "Schema" of the event as shown:


          As you can see in the next screenshot which is from a workflow executed by vRA via the extensibility event for "Compute post provision", the "inputProperties" item contains all of the data listed in the Schema. The provisioned VM's name can be found in the array of ResourceNames. With this value, you can then use vSphere plug-in and built-in workflows in vRO to find the Virtual Machine and create a new snapshot.