# 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/0FWMFN0y1yUTAd3cSRaK/blobs/xHm2rFzmpmuBJSIGo6sL/administration-ve-recovery_plans-policies_1.png)

After clicking on ![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/oiuwh0eB00QDYFsm52WO/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/0FWMFN0y1yUTAd3cSRaK/blobs/bblwBfR0INARxvJkJS3k/administration-ve-recovery_plans-policies_2.png)

Click on it and customize restore settings.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/9BOurUnhlSmCZxbClBBL/administration-ve-recovery_plans-policies_3.png)

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

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/w6Qk4g5vMj7oEqsLFO2e/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/0FWMFN0y1yUTAd3cSRaK/blobs/lV9H8AnuMyNG17bXP5d6/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/0FWMFN0y1yUTAd3cSRaK/blobs/lvQ40cT52gVSOt4IOktN/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/0FWMFN0y1yUTAd3cSRaK/blobs/88FUzqMJD8iAZbzFXFl6/administration-ve-recovery_plans-policies_7.png)
