Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
VMware vRealize Orchestrator Cookbook. - Second Edition

You're reading from  VMware vRealize Orchestrator Cookbook. - Second Edition

Product type Book
Published in Nov 2016
Publisher Packt
ISBN-13 9781786462787
Pages 556 pages
Edition 2nd Edition
Languages
Author (1):
Daniel Langenhan Daniel Langenhan
Profile icon Daniel Langenhan

Table of Contents (19) Chapters

VMware vRealize Orchestrator Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing and Configuring Orchestrator 2. Optimizing Orchestrator Configuration 3. Distributed Design 4. Programming Skills 5. Visual Programming 6. Advanced Programming 7. Interacting with Orchestrator 8. Better Workflows and Optimized Working 9. Essential Plugins 10. Built-in Plugins 11. Additional Plugins 12. Working with vSphere 13. Working with vRealize Automation

Using the Event Manager to start workflows


With vRA7.1, Stubs are deprecated and will be soon gone. The Event Broker is the new way of interacting with the vRA life cycle.

Getting ready

We need a connection to vRA as an Infrastructure Admin.

We also need an Orchestrator client open and ready.

To fully try this recipe out, you will need a working Blueprint that deploys a VM.

How to do it...

This recipe is split into several sections. In this recipe, we will only activate the event subscription for the event when a VM is provisioned.

Create a workflow

We now need a workflow we can trigger when the VM is deployed. (You can also use the example workflow 13.03 EventBrokerTest):

  1. Go to the Orchestrator Client and create a new workflow.

  2. Add an input called payload of type Properties.

  3. Add a scriptable task with the following code:

          for each (key in payload.keys) { 
            System.log(key + " : " + payload.get(key)); 
          } 
          var lifecycleState = payload.get("lifecycleState"); 
...
lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}