Book Image

VMware vRealize Orchestrator Cookbook

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Cookbook

By: Daniel Langenhan

Overview of this book

Table of Contents (15 chapters)
VMware vRealize Orchestrator Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with policies


In this recipe, we will look into policies. We will learn how to create and use policies to react automatically to events that occur outside Orchestrator.

Getting ready

For this recipe, we need something that we can monitor for events. We already had a look at policies with the Working with SNMP and Working with AMQP recipes in Chapter 4, Working with Plugins.

In this example, we will monitor vCenter Server.

How to do it...

We will create a simple policy that will monitor a VM by performing the following steps:

  1. In Orchestrator client, switch to the Run mode and click on Policies.

  2. Click on Create a new Policy (scroll down; you will see an icon with a plus sign).

  3. After you give the policy a name, you will find a new policy in the policy list. Right-click on New policy and select Edit (the pencil icon).

  4. In the General tab under Startup, choose whether the policy should be started with the Orchestrator service or not. This is used when Orchestrator is powered down.

  5. Priority regulates...