---
title: Apply a Parameterized Template
slug: manufacturing-connect/apply-a-parameterized-template
createdAt: 2022-09-28T20:53:09.000Z
---

You can apply a parameterized template to one or more edge devices from an open project *Templates* pane.

This page covers templates with variables that you add in Manufacturing Connect, as described in Parameterize a Template. If the template declares its parameters in the template file, the apply wizard shows a **Parameters** step instead of the *Set Variables* dialog box, with each value pre-filled with its default.

When applying a parameterized template, you can apply it to a group of edge devices by clicking the group to show only the edge devices in the selected group.

To apply a template when you activate an edge device, see Apply a Parameterized Template During Activation.

# How template variables work

When you apply a parameterized template, you set a value for each variable in the template. Manufacturing Connect uses each variable's JSON path to place your value in the template, and then sends the result to the edge device.

# Apply a parameterized template

**To apply a parameterized template:&#x20;**

1. Log in to Manufacturing Connect.
   &#x20;The *Status Overview* pane by default appears.
2. From the Navigation panel, select **Edge Management**.
   *Edge Management* pane appears, by default the *Edge Devices* tab displays.
3. From *Edge Management* pane, select **Templates**.
   *Templates* tab appears.
4. Click the **Actions** icon next to a parameterized template and select **Apply Template**.
   The *Apply Template: Select Edge Devices to Appl*y dialog box appears.
5. Select one or more check boxes next to edge devices, and then click **Apply**.
   The *Set Variables* dialog box appears.
6. From the **Set Variables&#xA0;**&#x64;ialog box, enter the variable value in the variable field.
   &#x20;    **Example**: Enter `PLC1` in the **device\_name** field.
7. Click **Apply**.
   &#x20;    The template is applied to the selected edge devices.

Manufacturing Connect checks the template and the target edge devices, and then applies the template to the selected edge devices. If a check fails, Manufacturing Connect reports the issue. Correct the issue, and then apply the template again.

The apply options work as follows:

- **Reset & Apply:** Replaces the target configuration with the template.
- **Merge & Apply:** Combines the template with the current target configuration.
- **Apply:** Uses the existing rules for each type of setting and does not create a saved configuration.

# Verify template parameters on an edge device

A template can contain many types of variables. The following verification procedure is an example.

**To verify template parameters are applied to an edge device:**

1. From another browser tab, log in to Manufacturing Connect Edge.
2. From the Navigation panel, select **DeviceHub**. The *Edge Devices* pane appears.
3. Select the device for which the template was applied and ensure that the variables entered in the *Set Variables* dialog box appear correctly.
   **Example**: If `device_name `is a variable, make sure that the name for the device is correct. In this case, `PLC1`.

