Setup a vault and Backup Azure VMs
Create the vault
- Logon to the Azure Portal
- Search for Backup center and browse the Backup Center dashboard
- Under Overview, click on +Vault
- Select Recovery Services vault > Continue
- Fill out the following:
- Subscription: choose the subscription you want to use
- Resource group: you can use an existing resource group or create a new one
- Vault name: something friendly that you can easily identity as a vault
- Region: select the region for the vault - note this has to be the same as the region of the VMs
- Click Review + create
- Click Create
Modify the storage replication
- Click on your new vault
- Browse Properties under the Settings section
- Under Backup configuration, select Update
- Choose the storage replication that you'd like, here's the differences:
- Geo-redunant storage (default and recommeneded): copies your data three times in a single physical location, and this it copies your data to another single physical location hundreds of miles away from the primary region
- Locally-redundant storage: replicates your data three times within a single physical location. LRS does not copy that data off to another location
- Zone-redundant storage: replicates your data across three availability zones within the primary region. ZRS does not copy that data off to another location
Apply a backup policy
- Whilst in the Backup Center, click +Backup from the Overview tab
- Datasource type: Azure Virtual machines
- Vault: the new vault you created
- Assign a backup policy, we will be using the DefaultPolicy
note
The default policy backs up a VM once a daily and the backups are retained for 30 days. Instant recovery snapshots are maintainted for two days.
- Under Virtual Machines, select Add and select the VM's you want to backup
- Click OK
- Under Backup, select Enable Backup
Once a backup job is enabled it'll try to do the following:
- The backup extension will be installed whether or not the VM is running
- A backup will run in accordance to your backup schedule
Verify a Backup job
- Browse to Backup center > Backup jobs
- From here you can see all previous Backup jobs and current ongoing backups.