top of page

VCF Operations Email Payload Templates

Writer: Brock Peterson
Brock Peterson
3 minutes ago
2 min read

It's been several years since we last discussed the ability to adjust email Payload Templates in VCF Operations and there have been a few changes over the years, let's explore.


All screenshots in this blog are taken from VCF Operations 9.1.2. As you probably know, you can make email Notifications on Alerts and that email uses the default email Payload Template, which looks like this.



A reasonable default, but I'd like some things removed and others added, so let's build our own.



Click the three dots next to the Default Email Template and select Clone.



Give it a Name and Description, I'm calling mine Email Template for VM Alerts as I'll be using it for VM-related Alerts.



This is where we can add VM Metrics/Properties to be used in our Payload. We can also add ancestor/descendant object type Metrics/Properties to be used in our Payload. Mine looks like this.



Once you've added everything you want click NEXT.



You can now use all those Metrics/Properties on the right, they show as Parameters. I've adjusted my email Body to look like this.



A couple things to highlight here:

  • Adjusted Subject line to be more concise

  • Adjusted the email body to have the Alert details at the top and the supporting information in two sections below that


Now you need a Notification Rule using this Payload Template, mine looks like this.



I've configured this Notification Rule to run against all VM Alerts and to send an email using the new Email Template for VMs. Once an Alert triggered, I now get an email that looks like this.



You can see the Alert is for a VM Guest Filesystem, but you also get additional VM Metrics/Properties and related ESX Host Metrics/Properties. If you'd like this Payload Template you can get it here. I hope this was helpful, enjoy!



Comments


Leave a Comment above or email me here with questions, thanks for reading!
    bottom of page