This repository includes a variety of artifacts that can be used to demonstrate the capabilities of Azure Backup and Azure Site Recovery.
A subscription with at least the Contributor RBAC role.
The following resouces get deployed:
- Resource Group for Backup Resources (main.bicep)
- Resource Group for other Resources (main.bicep)
- Recovery Services Vault for Backup (backup.bicep)
- Backup Vault (backup.bicep)
- Log Analytics Workspace (asrPrimaryResources.bicep)
- Virtual Network (asrPrimaryResources.bicep)
- Azure Bastion Host (asrPrimaryResources.bicep)
- 1 Windows Virtual Machine (asrPrimaryResources.bicep)
- 1 Linux Virtual Machine (asrPrimaryResources.bicep)
- Resource Group for ASR Resources (main.bicep)
- Resource Group for other Resources (main.bicep)
- Recovery Services Vault for ASR (asr.bicep)
- Automation Account (asr.bicep)
- Virtual Network for Failover (asrSecondaryResources.bicep)
- Virtual Network for Test Failover (asrSecondaryResources.bicep)
-
Clone this repo, install or upgrade Azure CLI and install/upgrade Bicep (you can also use Cloud Shell)
git clone https://github.com/ryhud/az-backup-asr-demo.git
az login
az account list --output table az account set --subscription <name-of-subscription>
-
Review the default paramaters in main.bicep and modify as needed (eg: regions, naming etc)
-
Deploy the resources
az deployment sub create --location eastus --template-file main.bicep
-
When prompted, enter the username and password for the VM resoources.
-
Using the Backup Recovery Services Vault, configure a new enhanced backup policy and apply to the Virtual Machines
-
Using the ASR Recovery Services Vault, configure the Virtual machines for replication.
-
If you would like to demo the Backup Vault, deploy a storage account for Blob (or any other supported resources) and configure protection.
Deploy and configure at least a few days before the demo
- Go through the settings of the Recovery Services vault properties explaining each setting (eg, storage replication type, CRR, encryption, immutability and security settings etc)
- Show Backup Center and go through the reports, compliance, polcies etc (optional configure some Azure Policy for backup)
- Show the process for a restore of a VM (including cross region restore)
- Go through the ASR Settings
- Create a recovery plan and go through all the settings
- Perform a Test failover to the test VNet in the secondary region (showing cleanup process)
- Perfom a failover to the secondary region
-
It is very important that you disable protection for both Backup and ASR before attempting to delete the resources. For Backup see Delete an Azure Backup Recovery Services Vault, and for ASR see Disable protection for a Azure VM (Azure to Azure)
-
Once protection has been disabled, you can proceed to delete the 4 Resource Groups
az group delete --name ResourceGroupName