Add Recovery Services Vault module with VM backup policies and outputs
This commit is contained in:
25
outputs.tf
Normal file
25
outputs.tf
Normal file
@@ -0,0 +1,25 @@
|
||||
output "recovery_services_vault_id" {
|
||||
value = azurerm_recovery_services_vault.this.id
|
||||
}
|
||||
|
||||
output "recovery_services_vault_name" {
|
||||
value = azurerm_recovery_services_vault.this.name
|
||||
}
|
||||
|
||||
output "recovery_services_vault_identity_principal_id" {
|
||||
value = try(azurerm_recovery_services_vault.this.identity[0].principal_id, null)
|
||||
}
|
||||
|
||||
output "vm_backup_policy_ids" {
|
||||
value = {
|
||||
for key, policy in azurerm_backup_policy_vm.this :
|
||||
key => policy.id
|
||||
}
|
||||
}
|
||||
|
||||
output "protected_vm_backup_ids" {
|
||||
value = {
|
||||
for key, item in azurerm_backup_protected_vm.this :
|
||||
key => item.id
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user