VMware Cloud Community
kev01228
Enthusiast
Enthusiast
Jump to solution

vRA 8: Call workflow when deployments fail - Filter events in topic

I want to run workflows when our vm request fail, but I am having a hard time locating the correct event filter to do this. I see references in the below documentation to the timeouts (OnCloneMachineTimeout, OnCustomizeMachineTimeout, OnCustomizeOSTimeout) for Event Topic Compute Provision but I am not sure how that translates into a filter in the “Filter events in topic” section.

Any pointers would be helpful as would any good documentation on event filtering in general, as I have not found much.

https://docs.vmware.com/en/vRealize-Automation/8.2/vrealize-automation-transition/GUID-048FB11C-5D52...

Labels (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

Try:

deployment.request.post

condition: event.data.eventType == "CREATE_DEPLOYMENT"

You also need to filter on the status (failure). This seems to work only within the WF:

inputProperties.status == "FAILED"

HTH

View solution in original post

2 Replies
xian_
Expert
Expert
Jump to solution

Try:

deployment.request.post

condition: event.data.eventType == "CREATE_DEPLOYMENT"

You also need to filter on the status (failure). This seems to work only within the WF:

inputProperties.status == "FAILED"

HTH

kev01228
Enthusiast
Enthusiast
Jump to solution

Hi,
The below seems to be working for topic deployment.request.post

event.data.eventType == 'CREATE_DEPLOYMENT' && event.data.status == 'FAILED'

Many thanks!