vRA7 to vRO Extensibility Magic Secrets Revealed Part 2

In Part 1 we went over the basic architecture of vRA to vRO extensibility, in this guide we will walk through a simple hello world example.

Pre-Reqs

  • Part 1 read and understood
  • vRealize Automation 7 at least advanced installed and configured
  • At least one reservation with a static ip pool
  • At least one blueprint successfully provisioning, I am using CentOS7 in my example.
  • The sample workflow package downloaded from here

Let’s get started!

Open a web browser to your vRealize automation appliance FQDN and click the vRealize Orchestrator Client

Login to the vRealize Orchestartor client

Login with the default user or an SSO user that you have setup.

Verify that the vRA and vCenter Plugins are working and configured properly

  1. Change the view to Run
  2. Click on the Plugins Tab
  3. Browse the vRealize Automation Infrastructure Plugin
  4. Browse the vRealize Automation Plugin
  5. Browse the vCenter Plugin

Install the sample vRA to vRO workflow that you downloaded earlier

  1. Change the view to Design
  2. Click the Workflow package tab
  3. Click Import Package
  4. Browse to the package you downloaded earlier

Now click import

Verify the workflow was imported

  1. Change view to run
  2. Click the workflows tab
  3. Browse to the vRA 7 EB Get Custom Properties Example

Now let’s edit this workflow to make it do something

  1. Click the workflow to highlight it
  2. Now click edit

Let’s create a few out parameters

  1. Click the Schema Tab
  2. Click the Out tab
  3. Click the create output parameter icon

Now click Create parameter/attribute in workflow

Now let’s create the parameters we need

We are going to create two out parameters:

vmname

ipaddress

myscript

Your list should look like this

Now let’s add some code to convert the custom properties to attributes in vRO

  1. Click the scripting tab
  2. Enter the following lines
//Get custom properties from vRA and store in an attribute
System.log('Getting the custom properties needed') ;
var vmname = machine.get("name") ;
var ipaddress = vCACVmProperties.get("VirtualMachine.Network0.Address") ;
var myscript =  vCACVmProperties.get("myscript") ;

Now let’s create a scriptable task to work with those custome properties we captured

Drag and drop a scriptable task

Name the scriptable task

  1. Highlight the scritable task
  2. Click Info tab
  3. Enter a description for this task

name-the-scriptable-task

Add the in paramaters

myscript and ipaddress

Create a new out parameter

  1. Create an out attribute named mynewscript

Enter the following code

What we are doing is combining the myscript text (we will create this as a custom property in vRA later) with the ipaddress that we get from vRA when the VM is provisioned.

Now let’s add the run script in guest workflow

  1. Drag and drop the Run Script in Guest workflow as shown
  2. Click Setup

Promote the Workflow Parameters

  1. Click to reset all bindings to Value
  2. Change myscript to mynewscript
  3. Click Promote

Now we need to get the VM name into the vm attribute

  1. Drag and drop the Get Virtual Machines by Name workflow as shown
  2. Click setup

NOTE: This is so is because the vm attribute is not a sctrig it is a vRO type VC:VIrtual Machine

Promote the workflow Parameters

  1. Click Value
  2. Change the name to vmname
  3. Click promote

Now change the output of vms to an attribute

  1. Change to outputs
  2. Highlight vms
  3. Click move to attribute

Let’s create another scriptable task

  1. Click the Schema Tab
  2. Drag and drop a new scriptable task
  3. Click the Info tab
  4. Name it Convert to VC:VM

Add the in parameter

  1. Click the in tab
  2. add vms attribute and click ok

Add the out attribute

  1. Click the out tab
  2. Add the vm attribute and click ok

Create the scriptable task

  1. Click the scriptable task tab
  2. Enter the text as shown
//convert array to vc:virtualmachine
System.log('Converting VMs array to VM object') ;
vm=vms[0] ;
System.log('Found VM = ' + vm) ;

Validate your workflow

Set your required attributes

  1. Click the general tab
  2. scroll down to attributes
  3. set the username for the VM your provisioning
  4. set the password
  5. enter bash for linux or bat or powershell for Windows
  6. enter a timeout, I used 10 seconds
  7. enter refresh time, I used 5 seconds
  8. enter a working directory, I used /tmp

Now rename your workflow and save it

  1. Click the general tab
  2. Change the workflow name
  3. Click Save and close

Now let’s setup vRA

Remember sharing is caring!

13 Replies to “vRA7 to vRO Extensibility Magic Secrets Revealed Part 2”

  1. Pingback: vRA7 to vRO Extensibility Magic Secrets Revealed Part 1 – VMtoCloud.com

  2. Really great blog(s) to get familiar with vRA/ Orchestrator handling!

    I tried to download and import the workflow package however get an IOException (not a valid package file, dunes-meta-inf is missing!) I am using vRO 7.2 from vRA 7.2 installation.

    Any idea?

    Christian

  3. Using vR) 7.01 and see the same error “IOException (not a valid package file, dunes-meta-inf is missing!”. Can you double check your package.
    Thanks,
    – Huy

  4. Hi Ryan. Looking to work trough this as it is exactly how I need to learn this stuff. Like the other 2 commentors, I can’t import the package as I get the same error. any chance to get a new export?
    thanks much
    -JohnM

  5. How To Find Local Sex On Meet N Fuck: https://s.coop/2316-?boXVI8CEQ

    Popular tags: latin american dating uk, hook up with tinder, best cowgirl dating site, free dating site seniors, is brad womack dating anyone, good dating self summary, youth dating website, nigeria instant hook up, new zealand dating sites review, speed dating galway, expensive dating websites, widows and widowers dating online, lots of fish in the sea dating website, what to expect when dating a taurus, how to find husbands dating profile, online jewish dating sites, pz38na scout matchmaking, dating sites over 60, dating a man 13 years younger, vizio sound bar hookup, dating ariane walkthrough 5.8, gay hookup site apps, dating site free sign up, elderly parents dating, moose dating site, is ariana grande dating anyone 2015, dating agency cyrano eng sub free download, can dating an older man work, best free dating sites us, bar one inverness speed dating, 100 free european dating site, free thai dating app, half lives radiometric dating, persuasive essay about online dating, christian mingle dating websites, no more dating i’m just waiting, free cougar dating 100 free, hsv 2 free dating sites, ku dating, how does dating turn into a relationship, unranked matchmaking lol, tvxq dating on earth eng sub, advice for single moms dating, karmin dating each other, i only dating other guys because i miss you so much, dota 2 stuck on matchmaking, things to ask someone on a dating site, dating site 7 or better, the first dating site, how do i turn dating into a relationship, edinburgh free gay dating, queer speed dating bay area, dating site karnataka, tokyo dating sites, who is jennifer lawrence dating april 2015, match making kundli in hindi online free, estj dating infp, i regret dating an older man, den bedste dating app, floyd mayweather dating erica, groupon winnipeg speed dating, free online dating sites in nj, dating website for divorcees, free dating in portugal, dating sites for fit singles, speed dating mit dem chef, speed dating east london, dating one direction pewdiepie, uk dating over 40, speed dating in long island ny, cave paintings dating method, online dating sites free messaging, is plenty of fish dating site safe, wave 105 dating mobile, online dating and christianity, cost to hook up to city water and sewer, novel dating with the dark bab 3, supermarket dating uk, dating napa ca, cute things to say to a guy you are dating, marriage not dating ep 4 english sub, flatmate dating london, ltr dating acronym, jmu dating website, best dating sites in visakhapatnam, online dating india delhi, dating girl kolkata, polyamory married and dating full episodes online, harley dating website, solar hook up, can dating a smoker affect your health, irish online dating agencies, online dating site about me, speed dating near farnborough, best free dating app, when did jamie and lily start dating, marriage not dating viki ep 6, dating site wa, free online tattoo dating sites, headline examples for dating profile, dating after cancer uk, dating how often to see each other, fifties dating, best dating websites for gamers, dating online pros and cons, honolulu hookup sites, modern dating quotes, us soldiers dating sites, kv-13 matchmaking, youtube matchmaking, black and white dating in south africa, 100 free u.k dating sites, christian europe dating sites, mary kate olsen dating who, widow dating husband’s best friend, all black dating sites, internet dating scams stories, geek dating sites, dating site name generator, dating a guy with herpes, volledig gratis dating belgie, dating sites for physicians, blue moon dating agency, tampa hook up site, last of us matchmaking unfair, dating app besides tinder, who is trina dating 2012, top over 50 dating sites, dating a guy 9 months younger, andrew caldwell dating, dating sites in asia 100 free, 100 free dating sites in usa, is there any free irish dating sites, best cougar dating site in uk, best online dating profile templates, israeli speed dating, norwegian gay dating site, install rv electrical hook up, how to attract attention online dating, how to build a dating site with joomla, i’m dating an ugly girl yahoo, dating the universe, speed dating jeune, online dating foreign, asian man white woman dating, how to delete my christian dating for free account, dubai dating culture, online dating vocabulary, mslt hookup, ariana grande dating guy from the wanted, online dating windhoek, alexandra dating site, dating sites canada over 40, dating letters, ign raid matchmaking, free marriage match making horoscope, free online dating houston texas, is it worth dating someone with a kid, houston singles personal matchmaking, free dating websites no paying, 4th grade dating sites, hook up buddy to boyfriend, neil strauss online dating advice, 26 dating 34 year old, interesting profiles for dating sites, dating online hyderabad, love letters 40 days of dating, astomi dating, dating class nyc, is anastasia dating site legit, le dating, andrea and cochran dating, good opener online dating messages, free south jersey dating sites, dating de la rue playing cards, pakistani dating apps, half brother and sister dating, dating leo woman tips, list of japanese dating sims, malaysia muslim dating site, when you’re dating someone with anxiety, discount code hook up tickets, the best dating site for singles, online college dating website, hookup culture in college, free dating website birmingham, english speed dating montreal, speed dating midlands, funniest fake dating profiles, free social dating network, legal age of dating a minor in canada, dating site uniforms, funny online dating lines, sewer hook up at rv park, dating sites in hyd, speed dating spalding, best sites for dating online, nigerian dating website, black girl dating white man, caught boyfriend dating site, 100 free dating apps for android, best dating apps for relationships, sterling knight dating history, worst dating site picture, boundaries on dating, romeo and juliet dating site, is 22 too young to join online dating, john gray five stages of dating, virtual dating and kissing games, reviews of dating sites, expat dating lausanne, free dating numbers in pa, what is my dating headline, guangzhou dating sites, best dating sites san antonio, how to find out if my man is on a dating site, dating fairy godmother, best dating restaurants in kolkata, on dating sites, best weird dating sites, dating swarovski binoculars, bobby dating interview, latest free dating sites in europe, dtv genie hookup, reasons for dating me meme, 100 free dating sites.com, dating a 35 year old woman, dating in akron ohio, american dating 1st base, plantronics s12 hookup, personal dating service london, dating site to find millionaires, my tinder dating experiment, dating a cancer leo cusp, search dating site by email, just hook up android app, linksys hookup instructions, online dating sites free in delhi, singapore speed dating 2014, fetlife dating website, dating apps in philippines, the dating detox gemma burgess mobilism, sugar mummy dating sites in usa, rp dating, social anxiety relationships dating, christian gay dating website, dating agency northern ireland, legal dating age difference in australia, dating drew, dating sites imposters, dating emails examples, acoustimass 7 hook up, the art of online dating download

Leave a Reply

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.