DefinIT

What’s in my vRA7 EBS Payloads?

| 30/03/2016 | Tags: , , , , , , ,

vRAAs I discussed in my previous post, vRA7 Event Broker integration is a big change from previous version of vRA – we no longer receive the same objects that used to be passed from vCAC/vRA to vCO. Instead we receive the mysterious “payload” – a properties object.

I wanted to create a workflow that I could enable to log all of the keys, values and types of the properties object for each stage of the vRA7 MachineProvisioning workflows, and create a reference for myself on the payload for each stage.

To do this I created a new workflow “debugProperties” and added an input variable called “payload”, type Properties. Next I added a single scriptable task and cycled through the properties. Some of the properties’ values are actually other properties objects, so there’s a function to test the type and iterate through if required.

You can download the debugProperties workflow here.

To make it work, you will need to tell your blueprint to pass the payloads to Orchestrator using the following properties:

2016-03-30_16-45-03.png

I also added a custom property of my own, to watch it go through the events.

I then added a subscription to the MachineProvisioning Events, using the following conditions to ensure it only ran on the Blueprint with “DEBUG” in the name (each machine build generates a lot of events, so we don’t want every build to run every event!)

2016-03-30_16-39-15

As you can see – even for one run there are a lot of events triggered – this is just a standard VM build, and then expire.

2016-03-30_16-41-02.png

The output of these workflows looks like this:

2016-03-30_16-47-05.png

Finally, for my own reference I wanted to view my example data in an easier format – so I have created a spreadsheet and pulled in the relevant data, collating it by workflow stage. The spreadsheet is also available on my vRA7 EBS Examples github page

2016-03-30_16-49-53.png

Not the worlds most exciting vRA7 post – but hopefully a useful reference!