$TemplateConfig
Updated: May 18, 2012
Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager
The $TemplateConfig variable notation refers to the configuration element of a template element’s type definition.
$TemplateConfig/ParameterName$
The $TemplateConfig variable notation allows template element’s child elements to refer to the values of its configuration parameters when the template configuration is created.
Warning |
|---|
| The creation of custom management pack templates is not supported in the current release of Operations Manager. |
The following example defines a Template element that requires 12 configuration parameters. When the template configuration is created, the value of those parameters can be used throughout the member elements of the template. In this example, you can see how the ID of a ClassType definition appends the TemplateIdString parameter value.
<Template ID="Microsoft.Exchange2007.Template.MailFlow">
<Configuration>
<xsd:element name="Name" type="xsd:string" />
<xsd:element name="Description" type="xsd:string" />
<xsd:element name="SourceServerClass" type="xsd:string" />
<xsd:element name="SourceServerInstanceGuid" type="xsd:string" />
<xsd:element name="SourceServerDnsName" type="xsd:string" />
<xsd:element name="TargetGuids" type="xsd:string" />
<xsd:element name="TargetServers" type="xsd:string" />
<xsd:element name="TemplateIdString" type="xsd:string" />
<xsd:element name="IntervalSeconds" type="xsd:unsignedInt" />
<xsd:element name="RegularTimeout" type="xsd:unsignedInt" />
<xsd:element name="DoubledTimeout" type="xsd:unsignedInt" />
<xsd:element name="TimeoutSeconds" type="xsd:unsignedInt" />
</Configuration>
<References>
<Reference ID="ExDiscovery" />
<Reference ID="ExLibrary" />
<Reference ID="ExMailbox" />
<Reference ID="System" />
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.Exchange2007.Template.MailFlowTX.Remote.$TemplateConfig/TemplateIdString$" Accessibility="Internal" Abstract="false" Base="$Reference/ExLibrary$Microsoft.Exchange2007.Synthetics.MailFlowTX.Remote" Hosted="true" Singleton="false" />
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
…
</Template>
Warning