Azure DataProtection Backup Vault
This page shows how to write Terraform and Azure Resource Manager for DataProtection Backup Vault and write them securely.
azurerm_data_protection_backup_vault (Terraform)
The Backup Vault in DataProtection can be configured in Terraform with the resource name azurerm_data_protection_backup_vault
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
name
- (Required) Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created.resource_group_name
- (Required) The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created.location
- (Required) The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created.datastore_type
- (Required) Specifies the type of the data store. Possible values areArchiveStore
,SnapshotStore
andVaultStore
.redundancy
- (Required) Specifies the backup storage redundancy. Possible values areGeoRedundant
andLocallyRedundant
. Changing this forces a new Backup Vault to be created.
identity
- (Optional) Anidentity
block as defined below.tags
- (Optional) A mapping of tags which should be assigned to the Backup Vault.
A identity
block supports the following:
type
- (Required) Specifies the identity type of the Backup Vault. Possible value isSystemAssigned
.
The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and Backup Vault has been created. More details are available below.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Backup Vault.identity
- Anidentity
block as defined below, which contains the Identity information for this Backup Vault.
identity
exports the following:
principal_id
- The Principal ID for the Service Principal associated with the Identity of this Backup Vault.tenant_id
- The Tenant ID for the Service Principal associated with the Identity of this Backup Vault.
-> You can access the Principal ID via $[azurerm_data_protection_backup_vault.example.identity.0.principal_id]
and the Tenant ID via $[azurerm_data_protection_backup_vault.example.identity.0.tenant_id]
Explanation in Terraform Registry
Manages a Backup Vault.
Microsoft.DataProtection/backupVaults (Azure Resource Manager)
The backupVaults in Microsoft.DataProtection can be configured in Azure Resource Manager with the resource name Microsoft.DataProtection/backupVaults
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersion
required - stringeTag
optional - stringOptional ETag.
identity
optionaltype
optional - stringThe identityType which can be either SystemAssigned or None
location
optional - stringResource location.
name
required - stringThe name of the backup vault.
properties
requiredstorageSettings
required arraydatastoreType
optional - stringGets or sets the type of the datastore.
type
optional - stringGets or sets the type.
systemData
optionalcreatedAt
optional - stringThe timestamp of resource creation (UTC).
createdBy
optional - stringThe identity that created the resource.
createdByType
optional - stringThe type of identity that created the resource.
lastModifiedAt
optional - stringThe type of identity that last modified the resource.
lastModifiedBy
optional - stringThe identity that last modified the resource.
lastModifiedByType
optional - stringThe type of identity that last modified the resource.
tags
optional - stringResource tags.
type
required - string