> 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/parallels-ras-21-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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-21-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=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
