diff --git a/101-backup-protect-iaasvm/README.md b/101-backup-protect-iaasvm/README.md new file mode 100644 index 000000000000..7ef80ae83577 --- /dev/null +++ b/101-backup-protect-iaasvm/README.md @@ -0,0 +1,9 @@ +# Protect IaasVM using Azure Backup + + + + + +

This template will use existing backup vault and policy, and enables protection of registered IaasVM containers.

+

To create backup vault and backup policy use existing template: https://github.com/Azure/azure-quickstart-templates/tree/master/101-create-backup-vault-policy

+

Know more about IaasVM Backup: https://azure.microsoft.com/en-us/blog/azure-backup-announcing-support-for-backup-of-azure-iaas-vms/

diff --git a/101-backup-protect-iaasvm/azuredeploy.json b/101-backup-protect-iaasvm/azuredeploy.json new file mode 100644 index 000000000000..fb0f34371717 --- /dev/null +++ b/101-backup-protect-iaasvm/azuredeploy.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "vaultName": { + "type": "string", + "metadata": { + "description": "Name of the Existing Backup Vault" + } + }, + "registeredContainers": { + "type": "array", + "metadata": { + "description": "Array of registered containers. It will take input as type of container; vm name; cloud service name. e.g for iaasvm type: iaasvmcontainer;myvm1;myvm1" + } + }, + "policyName": { + "type": "string", + "metadata": { + "description": "Name of existing Backup Policy in the Backup Vault." + } + } + }, + "resources": [ + { + "name": "[concat(parameters('vaultName'), '/', parameters('registeredContainers')[copyIndex()], '/', parameters('registeredContainers')[copyIndex()])]", + "apiVersion": "2015-03-15", + "type": "Microsoft.Backup/BackupVault/registeredContainers/protectedItems", + "copy": { + "name": "protectedItemsCopy", + "count": "[length(parameters('registeredContainers'))]" + }, + "properties": { + "policyId": "[parameters('policyName')]" + } + } + ] +} \ No newline at end of file diff --git a/101-backup-protect-iaasvm/azuredeploy.parameters.json b/101-backup-protect-iaasvm/azuredeploy.parameters.json new file mode 100644 index 000000000000..f59a9b2a1a99 --- /dev/null +++ b/101-backup-protect-iaasvm/azuredeploy.parameters.json @@ -0,0 +1,18 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "vaultName": { + "value": "backupvault1" + }, + "registeredContainers": { + "value": [ + "iaasvmcontainer;myvm1;myvm1", + "iaasvmcontainer;myvm2;myvm2" + ] + }, + "policyName": { + "value": "backuppolicy1" + } + } +} \ No newline at end of file diff --git a/101-backup-protect-iaasvm/metadata.json b/101-backup-protect-iaasvm/metadata.json new file mode 100644 index 000000000000..11cea76e3c38 --- /dev/null +++ b/101-backup-protect-iaasvm/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Protect IaasVM using Azure Backup", + "description": "This template will use existing backup vault and policy, and enables protection of registered IaasVM containers.", + "summary": "This template enable IaasVM protection using Azure Backup", + "githubUsername": "nilaydshah", + "dateUpdated": "2015-10-19" +}