Skip to content

Commit

Permalink
Protect IaasVM using Azure Backup
Browse files Browse the repository at this point in the history
This template will use existing backup vault and policy, and enables
protection of registered IaasVM containers.
  • Loading branch information
nilaydshah committed Oct 19, 2015
1 parent f83ecd9 commit dd8e1c0
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 101-backup-protect-iaasvm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Protect IaasVM using Azure Backup

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-backup-protect-iaasvm%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>

<p>This template will use existing backup vault and policy, and enables protection of registered IaasVM containers.</p>
<p>To create backup vault and backup policy use existing template: https://github.com/Azure/azure-quickstart-templates/tree/master/101-create-backup-vault-policy </p>
<p>Know more about IaasVM Backup: https://azure.microsoft.com/en-us/blog/azure-backup-announcing-support-for-backup-of-azure-iaas-vms/</p>
38 changes: 38 additions & 0 deletions 101-backup-protect-iaasvm/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -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')]"
}
}
]
}
18 changes: 18 additions & 0 deletions 101-backup-protect-iaasvm/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
7 changes: 7 additions & 0 deletions 101-backup-protect-iaasvm/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit dd8e1c0

Please sign in to comment.