VCF Automation Deployment Failure Notifications
- Brock Peterson

- 2 hours ago
- 1 min read
We've discussed email notifications from VCF Automation on successful Deployments, but I wanted notifications on failures, here's how I did it. All screenshots taken here are from VCFA 8.18.1, but this should work in VCFA 9.x VM Apps as well.
I used the same idea of a VCFA Subscription tied to an Event, which called a vRO Workflow. First, my Subscription looks like this.

The Subscription will fire on "Deployment completed" Event Topics, which is basically all completed Deployments (successful or not).
The Condition is event.data.status == "FAILED", which filters in just the failed Deployments.
The Action/Workflow is "BAP Sent Email on Failure", which is a vRO Workflow that calls Javascript that looks like this.

This is very similar to our vRO Workflow we used to send emails on successful Deployments. If you'd like it you can get it here.
Now when I request a Deployment that fails, which will look something like this.

I receive an email that looks like this.

Exactly what I wanted! Of course you an adjust the vRO Workflow Javascript to adjust what's in the email itself. Hope this was helpful, enjoy!



Comments