# 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.

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/LQVehfF49RHXflmhPEw2/administration-ve-recovery_plans-policies_1.png)

After clicking on ![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/vMq3KrbsyqygdLeCFFLm/administration-ve-snapshot_slas-policies_3.png) 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.

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/hF2qL7YWeS3nQth2zuY0/administration-ve-recovery_plans-policies_2.png)

Click on it and customize restore settings.

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/UNC28Td3PIYo3xTms8AG/administration-ve-recovery_plans-policies_3.png)

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

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/V9J4vZWvyVxcwJb2U4Mk/administration-ve-recovery_plans-policies_4.png)

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

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/G1wRJywKogu8RA9ruk7l/administration-ve-recovery_plans-policies_5.png)

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

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/rwe8aL5dvPj2RaEyKBD7/administration-ve-recovery_plans-policies_6.png)

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

![](https://content.gitbook.com/content/wUsKWUrceYHp8e9TJ00e/blobs/FCgNdzdd35aWGYWOm07L/administration-ve-recovery_plans-policies_7.png)
