You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi.periketi e1d107485a Merge pull request 'Add CHANGELOG.md and update the provider version' (#2) from update/provider into master 7 months ago
examples Add CHANGELOG.md and update the provider version 7 months ago
.gitignore initial commit 9 months ago
.pre-commit-config.yaml initial commit 9 months ago
CHANGELOG.md Add CHANGELOG.md and update the provider version 7 months ago
Jenkinsfile typo 9 months ago
LICENSE initial commit 9 months ago
README.md Add CHANGELOG.md and update the provider version 7 months ago
data.tf initial commit 9 months ago
main.tf fix string value 9 months ago
outputs.tf review fixes 9 months ago
variables.tf fix review : test 9 months ago
versions.tf Add CHANGELOG.md and update the provider version 7 months ago

README.md

terraform-module-azurerm-recovery-services

Usage

See examples folders for usage of this module.

Limitation

  • Any call of this module will create resources in a single resource group.
  • By default soft delete option for recovery service key vault will be enabled. When trying to delete the recovery service vault resource make sure to unregister\stop all the VMs and storage files share backups in the recovery service key vault. If not Terraform will throw an exception.

Requirements

Name Version
terraform >= 0.12
azurerm >= 2.0.0

Providers

Name Version
azurerm >= 2.0.0

Inputs

Name Description Type Default Required
backup_container_storage_account_ids The list of Azure resource IDs of the storage account to be registered. list(string)
[
““
]
no
backup_frequencies If specified , it defines the frequency of backups. Must be either Daily or Weekly. list(string)
[
““
]
no
backup_policy_file_share_count Specifies the numnber of backup file share policies we would like to create. number 1 no
backup_policy_file_share_daily_retention_counts The list of number of the daily backup to keep. Must be between 1 and 180. list(number)
[
1
]
no
backup_policy_file_share_enabled Boolean flag which describes whether or nor to enable the backup for file share policy. bool false no
backup_policy_file_share_frequencies The frequency of the file share backup. Currently, only Daily is supported. list(string)
[
““
]
no
backup_policy_file_share_names A list which specifies the names of the policy. Changing this forces a new resource to be created. list(string)
[
““
]
no
backup_policy_file_share_times The list of times of the day to perform the backup in 24-hour format. Times must be either on the hour or half hour(eg: 12:00, 12:30, 13:00,etc). list(string)
[
““
]
no
backup_policy_file_share_timezones The list of the timezones. Default to UTC. list(string)
[
““
]
no
backup_protected_file_share_enabled Boolean flag which describes whether or not enable the backup for the protected file share. bool false no
backup_protected_file_share_source_file_share_names Spcifies the names of the file share to backup. Changing this forces a new resource to be created. list(string)
[
““
]
no
backup_protected_file_share_source_storage_account_ids The list of IDs of the stoarge account of the fileshare to backup. Changing this forces a new resource to be created. list(string)
[
““
]
no
backup_protected_source_vm_ids The IDs of the VMs to backup. Changing this forces a new resource to be created. list(string)
[
““
]
no
backup_protected_vm_enabled Boolean whcih specifies to enable or not for the backup protected VMs. bool false no
backup_retention_daily_counts A list of which specifies the number of daily backups to keep. Must be between 1 and 9999. list(number)
[
1
]
no
backup_retention_monthly_counts A list which specifies the number of monthly backups to keep. Must be between 1 and 9999. list(number)
[
0
]
no
backup_retention_monthly_weekdays The list of weekdays to retain backups. Must be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday. list(list(string))
[
null
]
no
backup_retention_monthly_weeks The list of weeks of the month to retain backups of. Must be one of First, Second, Third, Fourth, Last. list(list(string))
[
null
]
no
backup_retention_weekdays List of days of the week to perform backups on. Must be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday. list(list(string))
[
null
]
no
backup_retention_weekly_counts A list of which specifies the of weekly backups to keep. Must be between 1 and 9999. list(number)
[
0
]
no
backup_retention_yearly_counts A list which specifies the number of yearly backups to keep. Must be between 1 and 9999. list(number)
[
0
]
no
backup_retention_yearly_months The months of the year to retain backups of. Must be one of January, February, March, April, May, June, July, Augest, September, October, November and December. list(list(string))
[
null
]
no
backup_retention_yearly_weekdays List of weekdays backups to retain . Must be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday. list(list(string))
[
null
]
no
backup_retention_yearly_weeks The list of weeks of the month to retain backups of. Must be one of First, Second, Third, Fourth, Last. list(list(string))
[
null
]
no
backup_storage_container_enabled Boolean flag which describes whether or not to enable Backup for storage account containers. bool false no
backup_times The list times of day to perform the backup in 24hour format. list(string)
[
““
]
no
backup_timezones List which specifies the timezones. Defaults to UTC. list(string)
[
“UTC"
]
no
backup_vm_policy_count Specifies the number of backup policies we would like to create. number 1 no
backup_vm_policy_enabled Boolean flag which decribes whether or not to enable the backup policy for VMs. bool false no
backup_vm_policy_id_names The list of names the backup policy IDs which should be used to backup the protected VMs. list(string)
[
““
]
no
backup_vm_policy_names The names of the backup VM policies. Changing this force a new resource to be created. list(string)
[
““
]
no
backup_weekdays List of days of the week to perform backups on. Must be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday. list(list(string))
[
null
]
no
enabled Enable or disable module. bool true no
existing_backup_file_share_policy_ids The list of existing backup file share policy IDs. list(string)
[
““
]
no
existing_backup_vm_policy_ids List of the existing backup policy IDs which will be used to backup the VMs. list(string)
[
““
]
no
recovery_service_vault_location The supported Azure locations where the resource exists. Changing this force a new resource to be created. string n/a yes
recovery_service_vault_name The name of the recovery service vaults.Changing this forces a new resource to be created. string n/a yes
recovery_service_vault_sku SKU of the service vault which will be created. Posssible values are Standard, RS0. string n/a yes
recovery_service_vault_soft_delete_enabled Boolean flag which descibes soft delete for the vault is enabled or not. Default vaule is true. bool true no
recovery_service_vault_tags Tags whcih will be associated to the recovery service vault. map {} no
resource_group_name Name of the resource group of the recovery services resources should be exist.Changing this forces a new resource to be created. string n/a yes
tags Tags shared by all resources of this module. Will be merged with any other specific tags by resource. map {} no

Outputs

Name Description
backup_file_share_policy_ids The IDs of the backup file share policies.
backup_protected_file_share_ids The IDs of the backup protected file shares.
backup_protected_vm_ids The IDs of the backup protected VMs.
backup_storage_account_container_ids The IDs of the backup storage account container.
backup_vm_policy_ids The IDs of the backup VM policies.
recovery_vault_id The ID of the recovery service vault.