# Policies

To schedule a VM to restore using a recovery plan (or execute a recovery plan manually), you must first create a policy.

Go to the Recovery Plans from the left menu under the Virtual Environments section.

![](/files/vDdfnwe6q4lWyhoBxbAZ)

After clicking on ![](/files/8UpBgHw6WYyaNZnhCTDS) provide the name of the policy and set priority. After saving you will be able to add rules using the new button on the right.

![](/files/OLKllVZJWtMpYMnu6b33)

Click on it and customize restore settings.

![](/files/JDoZ9QwjN7rUNbjQbs8R)

Each rule requires a **name** for easier identification later

![](/files/dvu8mjAfbIYiycNn4Epy)

In the **Virtual Environments** tab, you need to select **Hypervisor type** for this rule and corresponding **virtual environments** of this type

![](/files/z1nR7tgUrCbNXy585OUz)

If you previously defined any schedules for recovery plans you can select them in the **Schedules** tab

![](/files/zZWKnVErKmn5KewtpAzI)

In the **Restore Parameters** tab, you specify where VMs are going to be restored - compared to regular restore parameters provided in the manual restore window, notice that:

* you need to choose **\*\*which backup to restore -** last (regardless of status) **or** last successful
* you may want to use **Delete if Virtual Environment already exists** - which allows Storware Backup & Recovery to remove VM with the same name as the one being restored

![](/files/jPaoY6zv5yakhkcv55Ya)


---

# 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.storware.eu/backup-and-recovery-7.3/administration/virtual-environments/recovery-plans/policies.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.
