The goal of this task is to protect a virtual machine with Azure backup. This includes provisioning and configuring a vault, backing up a virtual machine.
Note: The backup process may take 20-55 minutes.
Task 1: Provision a vault
For this requirement you will provision a Backup and site recovery vault (also called a Recovery Services vault). Provision the vault in the same region as the virtual machine it is going to protect. If you used the pre-requisite deployment the region will be East US. Disable *soft delete** for the vault. This is important to allow easy cleanup at the end of the task.*
- Use your credentials and log in to the Azure portal.

- After Login you will able to see the following resources in the resource group. Now, click on + Create.

- Search for Backup and Site Recovery.


- Valut name: inevault
- Click on Review+Create.

- On validation success click on Create.

- Once the deployment is success then click on Go to Resource.

- This is the Important step that we should follow.
- Go to properties and click on update for Security Settings.

- We should Disable the Soft Delete. If we don't disable, we cannot delete the created backup VM data.

Successfully we have completed our Task 1.
Task 2: Configure Backup for a virtual machine
Next you will create a backup policy and configure the virtual machine to use the policy for backups. You will also trigger the initial backup manually. Follow the steps to complete this task:
- Now, goto Backup policies and click on + Add

- Policy type: Azure Virtual Machine

- Policy sub type: Standard
- Policy Name: task
- Frequency: Daily, Time: 1:00AM
- Scroll Down for more

- Weekly Retention: 52 weeks
- Monthly Retention: 24 weeks
- Scroll Down for more

- Yearly Retention: 10 years
- Click on Create. It will take 2 minutes for deployment.

- On successful deployment click on Go to resource.

- Navigate to Backup items, choose Azure Virtual Machine. You can 0 items in the list now we will add a VM.

- You can see no items in the backup, now we will add a VM for backup.

- Workload: Azure
- Backup: Virtual Machine
- Click on Backup

- Policy sub type: Standard
- Backup policy: task

- Scroll Down and click on Add.

- Choose the virtual machine task-vm and click on OK.

- After adding the VM click on Enable backup.

- Deployment takes 1-2minutes


- Navigate to Backup items click on Azure Virtual Machine. You can see one item has been added.

- The Backup Pre-Check is passed, Backup status: Initial backup pending. This backup takes 25-55minutes.

- Now lets trigger a manual backup as well. To do that click on ellipsis menu and click on Backup now.

- And choose the till date and click on OK.

- The manual backup will be triggered. Remember Backup will takes 25-55 minutes.
- The requried tasks are finished but it is important to delete the backup vm and clean up. Follow those important steps in the Clean up section.
Clean up:
- Valut won't be deleted until we delete the Backup data.
- Click on View details


- Choose Reason: Others
- Click on Stop backup

- It will take 1-2minutes. Once it is done refresh the page and click on Delete backup data.

- Backup item name: task-vm
- Reason: Others
- Click on Delete button.

-
Deletion will be done in 1-2 minutes.
-
Now, goto resource group then select all the resources and click on ellipsis menu to Delete all the resources.

- Check on the Apply force delete and Type yes then click on Delete button.
