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,SnapshotStoreandVaultStore.redundancy- (Required) Specifies the backup storage redundancy. Possible values areGeoRedundantandLocallyRedundant. Changing this forces a new Backup Vault to be created.
identity- (Optional) Anidentityblock 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_idandtenant_idcan be retrieved after the identitytypehas been set toSystemAssignedand 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- Anidentityblock 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
apiVersionrequired - stringeTagoptional - stringOptional ETag.
identityoptionaltypeoptional - stringThe identityType which can be either SystemAssigned or None
locationoptional - stringResource location.
namerequired - stringThe name of the backup vault.
propertiesrequiredstorageSettingsrequired arraydatastoreTypeoptional - stringGets or sets the type of the datastore.
typeoptional - stringGets or sets the type.
systemDataoptionalcreatedAtoptional - stringThe timestamp of resource creation (UTC).
createdByoptional - stringThe identity that created the resource.
createdByTypeoptional - stringThe type of identity that created the resource.
lastModifiedAtoptional - stringThe type of identity that last modified the resource.
lastModifiedByoptional - stringThe identity that last modified the resource.
lastModifiedByTypeoptional - stringThe type of identity that last modified the resource.
tagsoptional - stringResource tags.
typerequired - string