VMware Cloud Community
rkrichevskiy
Enthusiast
Enthusiast

Machine disposing state

I am exploring vRA event broker and wanted to see if it is possible to fail machine disposal request on vRO workflow failure. So far I have been able to configure event broker to kick off vRO workflow, using provisioning topic, with conditions:

Lifecycle state name: VMPSMasterWorkflow32.Disposing

State phase: PRE

However, I am not sure how to sent a signal back to vRA and fail Disposal request.

Tags (2)
0 Kudos
1 Reply
rkrichevskiy
Enthusiast
Enthusiast

To clarify my intention for this work, I'd like to request a destroy action on an item which should trigger vRO workflow. Based on the outcome of the workflow, I'd like to be able to stop destroy action in vRA from completing.

The following article seems to suggest that it is possible with vRO workflow output parameter virtualMachineEvent set to BuildFailure. However, during my tests it seems  that output property has no effect on destroy completion - it succeeds even if vRO workflow fails.

https://virtualviking.net/2016/01/20/exploring-the-vrealize-automation-7-0-event-broker-part-2/

0 Kudos