«

»

May 18

vRealize Automation 7 – Event Broker subscription installation workflows

Alright I’ll admit it, I’m totally a guy who got into automation because I am lazy! Ask my wife, ask my colleagues, I find the easiest way to do everything I can and if I don’t see direct value then I’m probably not participating. Just ask my friends at dailyhypervisor how frustrating I can be if you’re imposing a model that forces me to do something that takes even seconds for me to switch screens. At the end of the day this isn’t a good thing, but it can be a valuable trait and as such I create things that make my life easier and I suppose at least 1 or 2 of you out there will get some value out of it as well.

I begin this post with that because what I’m going to show you here may not be as valuable as the custom notifications, or the prepare a windows template for software components. However with Sample Exchange growing and I sincerely hope that you are inspired to give back and either use community content, adjust it, make it better, and load your copy back into a place where we can all share, learn and grow together. Let’s apply the great open source mentality to all things automation and orchestration!

So what is it I’m going to walk through here today? How bout a set of workflows that allow you to add or update event subscriptions and property groups without leaving the vRO console? Maybe even provide you with a means to create your own install packages for specific workflows and settings to make it easier for you to share your content? Best of all I’ll start using this method for all my work so you can quickly get up and running with all of work I’m doing!

As I often do here is a video example and in this instance I firmly believe you’ll get more out of the few minutes watching this than the post itself.

 

 

Here is a link to the vRO package that I use in the post and in the video.

 

Since I’ve already painted the picture as to why this might be valuable to you, here’s the example of our EB subscriptions.

01-installer-workflowsmp4

 

Then if you want to add one for a specific State and Phase you go through the steps like in this image. While I firmly believe you should understand how this works and how you would take advantage of it, after you review my Enabling the Event Broker series you will say to yourself. I got this, now can it be easier?!

02-installer-workflowsmp4

 

After importing the above package you will find these workflows available to you under the VMware -> SDE-SET -> Common -> Installer folders

  • Add or Update Lifecycle Event Subscription
  • Add or Update Post Approval Event Subscription
  • Create property groups
  • Install Wrapper

03-installer-workflowsmp4

 

Looking at the schema for the Add or Update Lifecycle Event Subscription you’ll see a pretty simple collection of details and then run the out of box workflow to register a subscription. Then if that already exists you’ll be prompted to update or rename the subscription request.

04-installer-workflowsmp4

 

Steps and questions will ask you all of the parts to an event subscription. If you choose no to the subscribe to state and phase it will run the workflow on all events. (Not Recommended but you can always update the workflow)

05-installer-workflowsmp4

 

Step 2

06-installer-workflowsmp4

 

Step 3

07-installer-workflowsmp4

 

Step 4

08-installer-workflowsmp4

 

Here is the example of the workflow created!

09-installer-workflowsmp4

 

Now what happens if I end up having a subscription with that name already? Then it will give you the option to update existing or just put it into new subscription name.

10-installer-workflowsmp4

 

Next we review the create property groups. Let me give props where they are due, Tom Bonnano from dailyhypervisor did all the the work and I am just reusing it. It simply gives you the ability to pre-create all the property groups for your event subscriptions if you want. *Notice this will not assign any property groups to your blueprints. That still requires you log into vRA and execute

11-installer-workflowsmp4

 

Step 2

12-installer-workflowsmp4

 

Now for the explanation of the install wrapper, what if I want to run both of those together and perhaps do an additional configuration on my particular workflows.

13-installer-workflowsmp4

 

Here’s an example of exactly what it looks like for one of my workflows. I build a configure properties into the installer. Now anyone who wants to use my work will be able to run a quick install and go!

14-installer-workflowsmp4

 

As always comments, and feedback are welcome! I hope this helps you in your day to day vRO/vRA activity.

 

4 comments

1 ping

Skip to comment form

  1. JEREMIE

    Hello
    I followed your posts concerning vRA and it’s very good source for (I’m newbie on vRA).
    My challenge now is create a blueprint to deploy VM (1 or more) with a custome name directly in a good datastore cluster and VM folder (PROD, DEV or TEST) and integrated in a specific AD container.
    And when we delete a VM the remove operations cleanup the AD registry.
    I know I ask too much things, sorry 🙂

    PS : Sorry for my English

    1. gary.coburn

      Jeremie, That’s not a terribly complex request. Where or how do you get the “custom name” I highly recommend you look at the great work that my friends at http://dailyhypervisor.com/vrealize-automation-custom-hostnaming-extension/ to help. Then you can use the AD plugin already available in vRO to execute the add VM to a specific folder and remove it after.

  2. Purchase Theophylline no Script needed

    Simply want to say your article is as astonishing. The clarity in your post is
    simply great and i can think you are a professional on this
    subject. Fine along with your permission let me to clutch your
    RSS feed to keep up to date with impending post. Thanks 1,000,000 and please continue the rewarding work.

    1. gary.coburn

      Thanks!

  1. vRealize Automation 7 – Agent Install Wizard for 7.0 thru 7.1 » Extending Clouds

    […] to the work over the past few months it’s all starting to come together. First I created the installer workflows that made it easy to build out a install wizard, then I updated the combination of […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>