vCloud Automation Centre Email Template changes
Email State Configuration
Emails are sent to various people through the lifecycle of the machine process, to control the VirtualMachine States that emails are sent you can edit the ManagerService.exe.config file in the DCAC Server installation folder.
There are 2 App.Config Sections:
- workflowEmailByStateSection – this emails machine owners
- workflowManagerEmailByStateSection – this emails machine group managers
Detail:
<workflowEmailByStateSection DaysNotificationBeforeExpire=”7″ IncludeRdpLinkAttachment=”true” MachineRequested=”false” MachineRegisterRequest=”false” MachineReprovisionRequest=”false” VdiRegister=”false” VdiUnregister=”false” EpiRegister=”false” EpiUnregister=”false” PowerOn=”false” PowerOff=”false” Shutdown=”false” Suspend=”false” Reboot=”false” Reset=”false” MachineActivated=”true” MachineDisposed=”true” FailedToProvision=”true” LeaseModified=”true” LeaseExpired=”true” LeaseExpiredPowerOff=”true” LeaseAboutToExpire=”true” ArchivePeriodExpired=”true” MachineOwnerChanged=”true” ApprovalRequired=”true” LeaseApprovalRequired=”true” LeaseApproved=”true” LeaseRejected=”true” RequestApproved=”true” RequestRejected=”true” ReclamationForcedLeaseModified=”true” ReclamationExpiredLeaseModified=”true” ReclamationReminder=”true” Reclamation=”true”/>
<workflowManagerEmailByStateSection DaysNotificationBeforeExpire=”7″ FailedToProvision=”true” LeaseExpired=”false” LeaseModified=”false” LeaseAboutToExpire=”false” MachineActivated=”false” MachineDisposed=”false” MachineOwnerChanged=”false” MachineRequested=”false” RequestApproved=”false” RequestRejected=”false”/>
The various states that are emailed can be changed (requiring a restart of VMWare vCloud Automation Center).
net stop vmmanager
net start vmmanger
Email Content:
Email Content is managed by XSLT Templates located in the following folder:
%Install Location%\DCAC Server\Templates
Below is an example xslt snippet that can be added so that a VirtualMachine Property value can be used, in this case the value of “VirtualMachine.App.Connection” will be seen in a table:
<xsl:if test="starts-with(Name, 'VirtualMachine.App.Connection‘)”>
Application Connectivity:
|
|
All XSLT Templates support html/css style sheets so can be customised as required.
Approval Email Example:
Use case:
A different message to the approver based on the Approval group name using the same xslt template file
Download here.
July 23, 2013 at 2:22 pm
Is there a listing of all searchable properties of a VM or vCD vApp published anywhere?
LikeLike
August 13, 2013 at 8:19 pm
Tom, if I want to insert a img tag into a template, what is the relative path to use? I have tried many but unsuccessfull:
src=../Images/MyImage.png
src=../Website/Images/MyImage.png>
src=./Images/MyImage.png>
Do you know the path I should use?
Thanks
LikeLike
April 10, 2014 at 3:20 pm
I just came across this blog and the question above, so I'm assuming this is no longer relevant… however, for the sake of providing an answer for anyone else that may happen to find the same question, images and links can be defined as (inlcude the open tag character before every line):
tr>
td>
a>
xsl:attribute name=”href”>http://websiteurl
/xsl:attribute>
xsl:attribute name=”target”>_blank
/xsl:attribute>
img>
xsl:attribute name=”src”>http://websiteurl/image.png
/xsl:attribute>
xsl:attribute name=”border”>0
/xsl:attribute>
/img>
/a>
/td>
/tr>
LikeLike
April 15, 2014 at 5:47 pm
I just don't get it how this is done. All I get, even after replacing the approval request xslt template posted here, in a notification is this:
subject: Your Request #276 for “BLUEPRINT NAME” has been submitted
Message:
Request Information
Description
Reasons
Machine Details
Lease duration
Indefinite
CPUs
2
Memory
4,096 MB
Disk 0 size
10 GB
Click here to view the request details
Thats it. I have installed vcac 6.0 using the reference distributed architecture, that is vcac iaas server and web server are separate. On one server there are templates is the \Program Files (x86)\VMware\vCAC\Server\Model Manager Data\EmailTemplates\ManagementModel, but I find only templates regarding alerts and reconfigure approval. On the server hosting the Manager Service, the templates can be found at \Program Files (x86)\VMware\vCAC\Server\Model Manager Data\EmailTemplates\ManagementModel, there's the full list of the templates. There I have replaces the ApprovalRequest.xslt with the one posted on this blog, restarted both the Manager Service and Web Server, but there's no change in the mail sent.
LikeLike
April 15, 2014 at 5:49 pm
Same goes for the Action Needed: Request for BLUEPRINT NAME notification.
LikeLike
April 15, 2014 at 6:20 pm
Ah crap you can't edit comments here, so sorry for the spam. The ManagerService.exe.config file doesn't contain the sameLikeLike
July 10, 2014 at 3:25 am
I am seeing the same behavior. Did you ever find a resolution? I'm running 6.0.1.
LikeLike
July 16, 2014 at 9:54 am
Well, we have the same issue… changing the XSLT files will not change the content of the emails. Any idea?
LikeLike
July 16, 2014 at 10:09 am
Hi All
This is for vCAC 5.2 platform only not 6.x, this has changed in the fact that email notifications are on the vCAC Virtual Appliance. One of my colleagues Igor has blogged about this: https://communities.vmware.com/thread/470453
LikeLike