Manages a Resource Guard.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_data_protection_resource_guard" "example" {
name = "example-resourceguard"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
}
The following arguments are supported:
name
- (Required) The name of the Resource Guard. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the Resource Group where the Resource Guard should exist. Changing this forces a new resource to be created.
location
- (Required) The Azure Region where the Resource Guard should exist. Changing this forces a new resource to be created.
vault_critical_operation_exclusion_list
- (Optional) A list of the critical operations which are not protected by this Resource Guard.
tags
- (Optional) A mapping of tags which should be assigned to the Resource Guard.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Resource Guard.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Resource Guard.read
- (Defaults to 5 minutes) Used when retrieving the Resource Guard.update
- (Defaults to 30 minutes) Used when updating the Resource Guard.delete
- (Defaults to 30 minutes) Used when deleting the Resource Guard.Resource Guards can be imported using the resource id
, e.g.
terraform import azurerm_data_protection_resource_guard.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/resourceGuards/resourceGuard1