Azure Resource Manager and Bicep templates for Azure Backup

The following table includes a link to a repository of Azure Resource Manager and Bicep templates for use with Recovery Services vaults, Backup vaults, and Azure Backup features. To learn about the JSON or Bicep syntax and properties, see Microsoft.RecoveryServices resource types and Microsoft.DataProtection resource types.

Template Description
Recovery Services vault
Create a Recovery Services vault Create a Recovery Services vault. The vault can be used for Azure Backup and Azure Site Recovery.
Create Recovery Services vault with backup policies Create a Recovery Services vault. You can optionally configure backup policies, system identity, backup storage type, Cross Region Restores, and enable diagnostics logs and a delete lock.
Create Recovery Services vault and Enable Diagnostics Template creates a Recovery Services vault and enables diagnostics for Azure Backup.
Back up virtual machines
Back up Resource Manager VMs Use the existing Recovery Services vault and Backup policy to back up Resource Manager-virtual machines in the same resource group.
Back up IaaS VMs to Recovery Services vault Template to back up classic and Resource Manager-virtual machines.
Create Weekly Backup policy for IaaS VMs Template creates Recovery Services vault and a weekly backup policy, which is used to back up classic and Resource Manager-virtual machines.
Create Daily Backup policy for IaaS VMs Template creates Recovery Services vault and a daily backup policy, which is used to back up classic and Resource Manager-virtual machines.
Deploy Windows Server VM with backup enabled Template creates a Windows Server VM and Recovery Services vault with the default backup policy enabled.
Monitor Backup jobs
Use Azure Monitor logs with Azure Backup Template deploys Azure Monitor logs with Azure Backup, which allows you to monitor backup and restore jobs, backup alerts, and the Cloud storage used in your Recovery Services vaults.
Set up notifications for backup alerts using Azure Monitor Template to enable you to set up email notifications for your Recovery Services vaults using Azure Monitor.
Back up SQL Server in Azure VM
Back up SQL Server in Azure VM Template creates a Recovery Services vault and Workload specific Backup Policy. It Registers the VM with Azure Backup service and Configures Protection on that VM. Currently, it only works for SQL Gallery images.
Back up Azure File shares
Back up Azure File shares (daily) This template configures protection for an existing Azure file share by specifying appropriate details for the Recovery Services vault and backup policy. It optionally creates a new Recovery Services vault and backup policy, and registers the storage account containing the file share to the Recovery Services vault.
Backup File share (hourly) This template configures hourly protection for an existing Azure File share by specifying appropriate details for the Recovery Services vault and backup policy. It optionally creates a new Recovery Services vault and backup policy, and registers the storage account containing the File share to the Recovery Services vault.
Backup vault
Creates Backup vault Template creates a Backup Vault. The vault can be used for Azure Database for PostgreSQL backup, Azure Blobs backup, Azure Disk backup.
Backup Azure Disk
Create Disk and enable protection Template creates a disk and enables protection via Azure Backup.
Backup Azure Blobs
Create storage account and enables blobs protection Template creates storage account and enables blobs protection via Azure Backup.