Due to high demand, here’s the combined AAA deployment!

I think this may be the highest requested post I’ve had so far. After creating the Dynamic deployment of the App Authoring Agent (AAA for the rest of this post) on Linux using SSH, the demand for a windows, or more importantly combined solution was flooding my inbox.

 

Quick DISCLAIMER based on internal tests by colleagues this works well but does open up two key points.

  1. You must have access to port 5480 on your vRA Virtual Appliance from the guest operating systems that you are planning to use.
  2. This also requires that if you are using in a load balanced vRA Virtual Appliance environment that you will need to choose a single VA to pull the agent installs from.

As you might imagine windows was a bit more difficult to over come the remote execution and had a number of manual steps. If you haven’t checked it out yet I highly recommend you take a look at my automation script remove the need for those manual steps. That automation script is what enabled me to complete this post!

So let’s get the pre-req/assumptions out of the way.

  • First you must be running vRA 7
  • The supported windows version with the script is 2012 R2 only
  • Have a working knowledge of vRO and how to import packages
  • Internet access for your guests and vRA (the scripts used actually pull down the latest ps1 script)
  • This guide already has way too many screenshots so I expect you can check boxes, click next, click finish, and entitle catalog items

Step 1. Download and Import the following package into your vRO environment

This includes both my ExtendingClouds workflows as well as the Guest Script Manager package that we use to execute our scripts inside the guests. I highly recommend using this instead of the standard run program in guest workflows.

Step 2. Log into vRO and expand Extendingclouds Examples -> helpers
Edit the GSM – Linux workflow
01-full-aaa-recordingmp4.png

Step 3. In the General tab
Edit the vmUsername and vmPassword
02-full-aaa-recordingmp4.png

 

Step 4. Repeat steps 2 and 3 for the GSM – Windows extendingclouds workflow
Edit the GSM – Windows workflow
03-full-aaa-recordingmp4.png

 

Step 5. In the General tab
Edit the vmUsername and vmPassword
04-full-aaa-recordingmp4.png

 

Step 6. Edit the AAA onBuildSuccess workflow
05-full-aaa-recordingmp4.png

 

Step 7. In the General tab
Verify the linScriptConfigurationResource points to the AAA for Linux
Verify the winScriptConfigurationResource points to the AAA for Windows
06-full-aaa-recordingmp4.png

 

Step 8. Go to the Schema tab
Edit the logic scriptable task
07-full-aaa-recordingmp4.png

 

Step 9. Go to the Scripting tab
Alter the password variable

The agent uses a service user to initiate the bootstrap service. This user is named darwin and this variable will define the password for that service user.
08-full-aaa-recordingmp4.png

 

We have now completed all of the tasks in vRA, time to jump into vRA with a privledged user.

Step 10. Go to Administration -> Property Dictionary
09-full-aaa-recordingmp4.png

 

Step 11. Property Groups -> Add New
10-full-aaa-recordingmp4.png

 

Step 12. Assign a name (id will be auto populated)
We will have to create 3 new entries, none of which should be overridable.
custom.appliance.fqdn with a value of your fully qualified vRA Appliance
custom.iaas.fqdn with a value of your IaaS/Model Manager windows server
Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.VMPSMasterWorkflow32 with a value of *

The last one is needed to pass these properties to vRA for the logic to execute during the onBuildSuccess event.
11-full-aaa-recordingmp4.png

 

Step 13. Go to design tab
Select your blueprint and copy
12-full-aaa-recordingmp4.png

 

Step 14. Enter the new name you would like for this blueprint
13-full-aaa-recordingmp4.png

 

Step 15. Properties -> Property Groups -> + New
14-full-aaa-recordingmp4.png

 

Step 16. Select the Group you created in Step 1215-full-aaa-recordingmp4.png

 

Step 17. Go to Custom Properties

custom.os with a value of linux or windows and not overridable

16-full-aaa-recordingmp4.png

 

Step 18. Drag software component onto your OS, if you don’t have a software component defined yet just go check out the sample exchange

This is our growing community driven place where you can download and upload content like blueprints.
17-full-aaa-recordingmp4.png

 

Step 19. Don’t forget to Publish
18-full-aaa-recordingmp4.png

 

Step 20. Go to Administration -> Events19-full-aaa-recordingmp4.png

 

Step 21. Subscriptions -> +New
20-full-aaa-recordingmp4.png

 

Step 22. Select Machine provisioning
21-full-aaa-recordingmp4.png

 

Step 23. Select Run based on conditions

All of the following

Expand Data->Lifecycle state-> Select Lifecycle state event
22-full-aaa-recordingmp4.png

 

Step 24. Select Equals
23-full-aaa-recordingmp4.png

 

Step 25. Select VMPSMasterWorkflow32.VMPSMasterWorkflow32.EVENT.onBuildSuccess
24-full-aaa-recordingmp4.png

 

Step 26. Add a condition

Type out in the text field data~machine~properties~agent.download.url

This looks for the specific property, which is only available when a software component is present on the request.

Check the green check mark to apply
25-full-aaa-recordingmp4.png

 

Step 27. Select Contains
26-full-aaa-recordingmp4.png

 

Step 28. Enter http in the text field.

The url always contains an http if that property is defined
27-full-aaa-recordingmp4.png

 

Step 29. Select the AAA onBuildSuccess workflow
28-full-aaa-recordingmp4.png

 

Step 30. Check the Blocking box and set a timeout of 20 minutes
29-full-aaa-recordingmp4.png

 

Step 31. Don’t forget to Publish
30-full-aaa-recordingmp4.png

With this complete you can utilize any software component and you won’t need to maintain any separate template in vCenter. Welcome to the nirvana that vRA 7 and EB have opened up!

If you would like to see exactly how I built this out I’ve got a step by step video available here.

10 comments

5 pings

Skip to comment form

    • Amir A. on April 4, 2016 at 4:03 pm
    • Reply

    Hi Gary, thanks a lot for such detailed documentation on this topic. I have found your previous blogs very useful as well. One quick question that I have is – does this install the Guest Agent as well or do we still have to install the that initially on the Windows template. Thanks,

    1. This will download and install both the gugent (guest agent) and the software components agents.

    • Justin Turver on July 19, 2016 at 12:57 am
    • Reply

    HI,

    The download link you provide seems to point to an older linux-only version of the workflow. Can you post a link to the version as shown in the screenshots above?

    Many thanks
    Justin

    1. Justin, Try now. I’ve updated the package in sample exchange. If it still doesn’t work use this link.

      https://www.dropbox.com/s/uhxyz5hyzzdl00w/extendingclouds.eb.aaa.gsm.package?dl=0

    • Ron Perron on September 27, 2016 at 11:43 am
    • Reply

    Great post, Gary. Thx..

    Just reviewing the logic of this now and without a bit of reverse-engineering, am wondering if there was an easy way to introduce or configure the script to simply use a locally available copy of the “prepare_vra_template.ps1” file?

    The issue I have is none of the Guest Machines have internet access which conflicts with your pre-req statement, “Internet access for your guests and vRA (the scripts used actually pull down the latest ps1 script)”.

    Apologize if this is covered off somewhere else..like I said…just reviewing this now..

    Thx. Ron

    • aenagy on October 31, 2017 at 7:42 pm
    • Reply

    Gary:

    Would you be able to elaborate on your statement:

    2.This also requires that if you are using in a load balanced vRA Virtual Appliance environment that you will need to choose a single VA to pull the agent installs from

    Why bypass the NLB?

    1. When this was created there was still the limitation of the agents and their inability to support the LB methods. I can’t say it if it works under the latest vRA architecture as the agent deployment may have changed.

        • aenagy on November 1, 2017 at 3:21 pm
        • Reply

        Gary:

        Thanks for the clarification.

        • aenagy on November 1, 2017 at 3:51 pm
        • Reply

        Gary:

        What was the limitation?

  1. […] AAA deployment Here is an article about deploying the App Authoring Agent of vRA v7.  Quite handy […]

  2. […] At the end of the day this script will provide you with a very quick entry point into utilizing software components on Windows. Please download, or fork and play with the script! Additionally if you want an example of how you can install the Application Authoring agents on Windows or Linux at request time please take a look at ExtendingClouds.com […]

  3. […] powerful use cases as you can see by reviewing other more advanced Event Broker postings like Due to high demand, here’s the combined AAA deployment!, and New disk on a new SCSI adapter at request time. The issue is that it came to my attention by […]

  4. […] At the end of the day this script will provide you with a very quick entry point into utilizing software components on Windows. Please download, or fork and play with the script! Additionally if you want an example of how you can install the Application Authoring agents on Windows or Linux at request time please take a look at ExtendingClouds.com […]

  5. […] I build out the logic for either linux or windows with the AAA. Feeling accomplished I say that was some good work now on to the next […]

Leave a Reply

Your email address will not be published.