> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/azure-virtual-desktop/manage-azure-virtual-desktop/manage-templates-azure-virtual-desktop/assigning-a-template-to-a-host-pool-azure-virtual-desktop.md).

# Assigning a template to a host pool (Azure Virtual Desktop)

When you create a host pool and set its provisioning type as Template, you need to assign an existing template to it. This can be done when you create or modify a host pool, or you can assign a template to a host pool on the **Templates** tab.

To assign a template to a host pool:

1. Select a template and click **Tasks** > **Assign to host pool**.
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 **Configure** 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 host pool**.
2. The **Remove from Host Pool** dialog opens listing all host pools using the selected template.
3. Select one or more host pools to remove the template from and click **OK**.
4. Note that if a host pool has hosts, they will be removed. You will see a message and need to confirm the removal.
5. If one or more host pools are being locked by another administrator, you will also see a message and will have to repeat the operation later when a pool is unlocked.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/azure-virtual-desktop/manage-azure-virtual-desktop/manage-templates-azure-virtual-desktop/assigning-a-template-to-a-host-pool-azure-virtual-desktop.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
