Microsoft.DataProtection backupVaults

Bicep resource definition

The backupVaults resource type can be deployed to:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataProtection/backupVaults resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DataProtection/backupVaults@2022-11-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  eTag: 'string'
  identity: {
    type: 'string'
  }
  properties: {
    monitoringSettings: {
      azureMonitorAlertSettings: {
        alertsForAllJobFailures: 'string'
      }
    }
    securitySettings: {
      immutabilitySettings: {
        state: 'string'
      }
      softDeleteSettings: {
        retentionDurationInDays: int
        state: 'string'
      }
    }
    storageSettings: [
      {
        datastoreType: 'string'
        type: 'string'
      }
    ]
  }
}

Property values

backupVaults

Name Description Value
name The resource name string (required)
location Resource location. string
tags Resource tags. Dictionary of tag names and values. See Tags in templates
eTag Optional ETag. string
identity Input Managed Identity Details DppIdentityDetails
properties BackupVaultResource properties BackupVault (required)

DppIdentityDetails

Name Description Value
type The identityType which can be either SystemAssigned or None string

BackupVault

Name Description Value
monitoringSettings Monitoring Settings MonitoringSettings
securitySettings Security Settings SecuritySettings
storageSettings Storage Settings StorageSetting[] (required)

MonitoringSettings

Name Description Value
azureMonitorAlertSettings Settings for Azure Monitor based alerts AzureMonitorAlertSettings

AzureMonitorAlertSettings

Name Description Value
alertsForAllJobFailures 'Disabled'
'Enabled'

SecuritySettings

Name Description Value
immutabilitySettings Immutability Settings at vault level ImmutabilitySettings
softDeleteSettings Soft delete related settings SoftDeleteSettings

ImmutabilitySettings

Name Description Value
state Immutability state 'Disabled'
'Locked'
'Unlocked'

SoftDeleteSettings

Name Description Value
retentionDurationInDays Soft delete retention duration int
state State of soft delete 'AlwaysOn'
'Off'
'On'

StorageSetting

Name Description Value
datastoreType Gets or sets the type of the datastore. 'ArchiveStore'
'SnapshotStore'
'VaultStore'
type Gets or sets the type. 'GeoRedundant'
'LocallyRedundant'
'ZoneRedundant'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create Disk & enable protection via Backup Vault

Deploy to Azure
Template that creates a disk and enables protection via Backup Vault
Create Storage Account & enable protection via Backup Vault

Deploy to Azure
Template that creates storage account and enable protection via Backup Vault
Create Backup Vault

Deploy to Azure
Simple template that creates a Backup Vault

ARM template resource definition

The backupVaults resource type can be deployed to:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataProtection/backupVaults resource, add the following JSON to your template.

{
  "type": "Microsoft.DataProtection/backupVaults",
  "apiVersion": "2022-11-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "eTag": "string",
  "identity": {
    "type": "string"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "string"
      }
    },
    "securitySettings": {
      "immutabilitySettings": {
        "state": "string"
      },
      "softDeleteSettings": {
        "retentionDurationInDays": "int",
        "state": "string"
      }
    },
    "storageSettings": [
      {
        "datastoreType": "string",
        "type": "string"
      }
    ]
  }
}

Property values

backupVaults

Name Description Value
type The resource type 'Microsoft.DataProtection/backupVaults'
apiVersion The resource api version '2022-11-01-preview'
name The resource name string (required)
location Resource location. string
tags Resource tags. Dictionary of tag names and values. See Tags in templates
eTag Optional ETag. string
identity Input Managed Identity Details DppIdentityDetails
properties BackupVaultResource properties BackupVault (required)

DppIdentityDetails

Name Description Value
type The identityType which can be either SystemAssigned or None string

BackupVault

Name Description Value
monitoringSettings Monitoring Settings MonitoringSettings
securitySettings Security Settings SecuritySettings
storageSettings Storage Settings StorageSetting[] (required)

MonitoringSettings

Name Description Value
azureMonitorAlertSettings Settings for Azure Monitor based alerts AzureMonitorAlertSettings

AzureMonitorAlertSettings

Name Description Value
alertsForAllJobFailures 'Disabled'
'Enabled'

SecuritySettings

Name Description Value
immutabilitySettings Immutability Settings at vault level ImmutabilitySettings
softDeleteSettings Soft delete related settings SoftDeleteSettings

ImmutabilitySettings

Name Description Value
state Immutability state 'Disabled'
'Locked'
'Unlocked'

SoftDeleteSettings

Name Description Value
retentionDurationInDays Soft delete retention duration int
state State of soft delete 'AlwaysOn'
'Off'
'On'

StorageSetting

Name Description Value
datastoreType Gets or sets the type of the datastore. 'ArchiveStore'
'SnapshotStore'
'VaultStore'
type Gets or sets the type. 'GeoRedundant'
'LocallyRedundant'
'ZoneRedundant'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create Disk & enable protection via Backup Vault

Deploy to Azure
Template that creates a disk and enables protection via Backup Vault
Create Storage Account & enable protection via Backup Vault

Deploy to Azure
Template that creates storage account and enable protection via Backup Vault
Create Backup Vault

Deploy to Azure
Simple template that creates a Backup Vault

Terraform (AzAPI provider) resource definition

The backupVaults resource type can be deployed to:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataProtection/backupVaults resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataProtection/backupVaults@2022-11-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
  }
  body = jsonencode({
    properties = {
      monitoringSettings = {
        azureMonitorAlertSettings = {
          alertsForAllJobFailures = "string"
        }
      }
      securitySettings = {
        immutabilitySettings = {
          state = "string"
        }
        softDeleteSettings = {
          retentionDurationInDays = int
          state = "string"
        }
      }
      storageSettings = [
        {
          datastoreType = "string"
          type = "string"
        }
      ]
    }
    eTag = "string"
  })
}

Property values

backupVaults

Name Description Value
type The resource type "Microsoft.DataProtection/backupVaults@2022-11-01-preview"
name The resource name string (required)
location Resource location. string
parent_id To deploy to a resource group, use the ID of that resource group. string (required)
tags Resource tags. Dictionary of tag names and values.
eTag Optional ETag. string
identity Input Managed Identity Details DppIdentityDetails
properties BackupVaultResource properties BackupVault (required)

DppIdentityDetails

Name Description Value
type The identityType which can be either SystemAssigned or None string

BackupVault

Name Description Value
monitoringSettings Monitoring Settings MonitoringSettings
securitySettings Security Settings SecuritySettings
storageSettings Storage Settings StorageSetting[] (required)

MonitoringSettings

Name Description Value
azureMonitorAlertSettings Settings for Azure Monitor based alerts AzureMonitorAlertSettings

AzureMonitorAlertSettings

Name Description Value
alertsForAllJobFailures "Disabled"
"Enabled"

SecuritySettings

Name Description Value
immutabilitySettings Immutability Settings at vault level ImmutabilitySettings
softDeleteSettings Soft delete related settings SoftDeleteSettings

ImmutabilitySettings

Name Description Value
state Immutability state "Disabled"
"Locked"
"Unlocked"

SoftDeleteSettings

Name Description Value
retentionDurationInDays Soft delete retention duration int
state State of soft delete "AlwaysOn"
"Off"
"On"

StorageSetting

Name Description Value
datastoreType Gets or sets the type of the datastore. "ArchiveStore"
"SnapshotStore"
"VaultStore"
type Gets or sets the type. "GeoRedundant"
"LocallyRedundant"
"ZoneRedundant"