In this post, I’ll show how you can use the new mechanism to enable backup of Azure IaaS virtual machines, which reduces the amount of clicking that you will need to do in the Azure Portal.
The Recovery Services Vault (RSV) is the storage and management resource that is the center of all things Azure Backup, whether you are working on-premises or with virtual machines in Azure. To do anything with Azure Backup, you must first create an RSV. Normal practice would then be to create a backup policy, defining when backups take place and how long they are retained for.
Then, continuing to work in the RSV, you would associate virtual machines with the policy.
The problem with a RSV-centric administration is that all Azure Backup work needs to be done in the RSV; this will probably be a distraction when you are working on deploying an application. I firmly believe that backup should be something I work with as little as possible; I want to turn it on, and in the best possible version of this universe, I never look at it again. Of course, I will have to do restores from time to time, but day-to-day administration of the backup should be zero. So the last thing I want, when I am focusing on designing, deploying, configuring, and securing a virtual machine-based service, is to have to jump to another browser tab or a blade in the Azure Portal to associate a virtual machine with a backup policy, and then lose track of whatever it was that I was doing.
The Azure Portal changed recently to add a Backup option in the settings of a virtual machine. The first time that you click this option, the Enable Backup blade will appear and allow you to create a new RSV and backup policy. You can change the default RSV name and customize the backup policy to suit your needs:
If you save the changes:
If you wish to create a central RSV in another resource group, then you should manually create that RSV beforehand.
Let’s assume that you have an RSV and a backup policy already in place, either created beforehand in another resource group or with another virtual machine (as above). To enable backup for additional virtual machines, we only need to do the following:
That’s a total of 9 clicks, without ever leaving the virtual machine or the resource group.
You do not need to return to the recovery services vault to manage backups of a virtual machine. You can open Backup in the settings of the machine, and have access to the following backup actions:
Note that monitoring and alerting continues to be managed from a central point in the RSV.