# Assigning a template to a host pool (VDI)

When you create VDI host pools, you can assign a template to a pool. This can be done when you create or modify a pool, or it can be done from the **Templates** tab.

To assign a template to a host pool:

1. On the **Templates** tab, select a template.
2. Click **Tasks** > **Assign to pool**. A wizard opens.
3. On the **Versions** page, select the template version that will be assigned to the host pool.
4. (Optional) On the **Host pool** page, select the host pools that you want to recreate on schedule and click the **Next** button. You will see a dialog that allows you to schedule recreation. Configure the schedule according to your needs and click **Next**.
5. Click **Finish**.

To remove a template from a host pool:

1. Select a template and click **Tasks** > **Remove from pool**.
2. A dialog opens listing all host pools to which this template is assigned.
3. Select the host pools to remove the template from and click **OK**.

Note that if a host pool has hosts created from the template that you are removing, they will be removed as well. A message is displayed where you need to confirm the removal.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-21-administrators-guide/virtual-desktop-infrastructure-vdi/manage-vdi/manage-templates-vdi/assigning-a-template-to-a-host-pool-vdi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
