7.3

Table Of Contents
Scenario: Create a Post-Provisioning Snapshot Workflow Subscription
As a tenant administrator, you want to create a snapshot of each virtual machine after it is created. You
congure a workow subscription based on the machine provisioning event topic, and publish it to make it
active.
You congure the workow subscription to run a create snapshot workow when a virtual machine is
provisioned and the detected event message is in the activated state.
Prerequisites
n
Log in to the vRealize Automation console as a tenant administrator.
n
Congure a vCenter Server plug-in as a vRealize Orchestrator endpoint. See Conguring vRealize
Automation.
n
Verify that you have a vSphere virtual machine blueprint.
n
Verify that you have a vRealize Orchestrator workow that creates a snapshot of a virtual machine. You
cannot use the Create a snapshot workow provided by the vRealize Automation plug-in. The
provided snapshot workow is specic to XaaS integration. See “Conguring vRealize Orchestrator
Workows for Provisioning and Life Cycle Workows,” on page 21.
Procedure
1 Select Administration > Events > Subscriptions
2
Click the New icon ( ).
3 Select Machine provisioning.
4 Click Next.
5 On the Conditions tab, congure the triggering conditions.
a Select Run based on conditions.
b From the Clause drop-down menu, select All of the following.
c Congure the following conditions:
Property Operator Value
Data > Machine > Machine type Equals Constant > Virtual Machine
Data > Lifecycle state > Lifecycle state
name
Equals Constant > VMPSMasterWorkow32.MachineActivated
Data > Lifecycle state > State phase Equals Constant > POST
d Click Next.
6 On the Workow tab, browse the Orchestrator tree and select your Automation Post-Provisioning
Snapshot workow.
7 Click Next.
8 On the Details tab, enter the Name and Description.
In this scenario, enter Post-Provisioning Virtual Machine Snapshot as the name and
Create a snapshot when new virtual machine is provisioned and activated as the description.
9 Click Finish.
10 Select the Post-Provisioning Virtual Machine Snapshot row and click Publish.
The workow subscription is active and will trigger your snapshot workow when an event message
indicates that a requested virtual machine is provisioned and activated.
Life Cycle Extensibility
36 VMware, Inc.