# 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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FIg9eieGUYREnC1oFBsr5%2Fadministration-ve-recovery_plans-policies_1.png?alt=media\&token=842f72a9-4be7-40d6-b74c-e8bf4415959d)

After clicking on ![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fonl6RElbFq11cqxzz7Nm%2Fadministration-ve-snapshot_slas-policies_3.png?alt=media\&token=ec3847dc-95ea-44ad-9d4b-ecb28e1ecb4d) 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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2F0tTmF2r4sghUPlTGkaSJ%2Fadministration-ve-recovery_plans-policies_2.png?alt=media\&token=56492ddc-4413-45cc-95a8-6ff89f40bb0b)

Click on it and customize restore settings.

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fc8OpA00gi4f4RSApyc92%2Fadministration-ve-recovery_plans-policies_3.png?alt=media\&token=2d4ef141-d72e-4b12-b4fe-33afb7260e4d)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fwf7qiKIQlkzqD13LTiue%2Fadministration-ve-recovery_plans-policies_4.png?alt=media\&token=54cbf6cc-b61e-4bc7-afca-0df5dd05882c)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Frplrcabz3Hmo3hjM7EVV%2Fadministration-ve-recovery_plans-policies_5.png?alt=media\&token=d32f7fc6-e095-4906-a0fb-6339970002da)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FPYjfwx7D2j8URQE35eA2%2Fadministration-ve-recovery_plans-policies_6.png?alt=media\&token=080ac937-7eab-4e63-bcf4-075ee16b1d07)

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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FrDJONctcyMOu3rNlXfEX%2Fadministration-ve-recovery_plans-policies_7.png?alt=media\&token=f922acad-f74d-4405-a5a5-c2b665e5bf0e)
