Skip to main content

azRecoveryServicesVault

+++ title = "azRecoveryServicesVault" description = "Azure Recovery Services Vault" weight = 10 alwaysopen = false +++

Use the resource azRecoveryServicesVault to deploy an Azure Recovery Services Vault to the relevant subscription. Recovery Service Vaults are storage entities in Azure which house data. Typically used to hold virtual machine backups and SQL server database backups from SQL Virtual Machines.

Attributes

AttributeTypeMandatoryValuesDefaultNotes
NameStringYes
LocationStringYes
ResourceGroupNameStringYes
DiagnosticObjectNo
IdentityObjectNo
TagObjectNo
LockObjectNo

Diagnostic

AttributeTypeMandatoryValuesDefaultNotes
NameStringYes
LogObject
MetricObject
TargetObject

Diagnostic Log

AttributeTypeMandatoryValuesDefaultNotes
EnabledBooleanDefaults to true if Category is not null
CategoryArrayAzureBackupReport
CoreAzureBackup
AddonAzureBackupJobs
AddonAzureBackupAlerts
AddonAzureBackupPolicy
AddonAzureBackupStorage
AddonAzureBackupProtectedInstance
AzureSiteRecoveryJobs
AzureSiteRecoveryEvents
AzureSiteRecoveryReplicatedItems
AzureSiteRecoveryReplicationStats
AzureSiteRecoveryRecoveryPoints
AzureSiteRecoveryReplicationDataUploadRate
AzureSiteRecoveryProtectedDiskDataChurn

Diagnostic Metric

AttributeTypeMandatoryValuesDefaultNotes
EnabledBooleanTrue, FalseDefaults to true if Category is not null
CategoryArrayAllMetrics

Input by YAML

Object model for YAML deployment:

azRecoveryServicesVault:
# Mandatory
- Name: 'string'
ResourceGroupName: 'string'
Location: 'string'
# Optional
Identity:
SystemIdentity: boolean # True, False (D)
UserIdentity:
- Name: 'string'
ResourceGroupName: 'string'
Diagnostic:
- Name: 'string'
Log:
Enabled: boolean # True (D if Category not null), False
Category: [array] # Defaults to all if enabled
Metric:
Enabled: boolean # True (D if MetricCategory not null), False
Category: [array] # Defaults to all if enabled
Target:
Blob:
StorageAccount: 'string'
ResourceGroupName: 'string' # Defaults to RG of resource
Subscription: 'string' # Defaults to Sub of resource
StorageKeyType: 'string' # Primary, Secondary
RetentionInDays: number
EventHub:
Name: 'string'
Namespace: 'string'
ResourceGroupName: 'string' # Defaults to RG of resource
Subscription: 'string' # Defaults to Sub of resource
SharedAccessPolicy: 'string' # RootManageSharedAccessKey (D)
LogAnalytics:
Workspace: 'string'
ResourceGroupName: 'string' # Defaults to RG of resource
Subscription: 'string' # Defaults to Sub of resource
Tag:
'keyvalue-pairs'
Lock:
- Name: 'string'
Level: 'string' # CanNotDelete, ReadOnly
Notes: 'string'

Input by JSON

Object model for JSON deployment:

{
"azResourceGroup": [
{
"Name": "string",
"ResourceGroupName": "string",
"Location": "string",
"Identity": {
"SystemIdentity": boolean,
"UserIdentity": [
{
"Name": "string",
"ResourceGroupName": "string"
}
]
},
"Diagnostic": [
{
"Name": "string",
"Log": {
"Enabled": boolean,
"Category": [array]
},
"Metric": {
"Enabled": boolean,
"Category": [array]
},
"Target": {
"Blob": {
"StorageAccount": "string",
"ResourceGroupName": "string",
"Subscription": "string",
"StorageKeyType": "string",
"RetentionInDays": number
},
"EventHub": {
"Name": "string",
"Namespace": "string",
"ResourceGroupName": "string",
"Subscription": "string",
"SharedAccessPolicy": "string"
},
"LogAnalytics": {
"Workspace": "string",
"ResourceGroupName": "string",
"Subscription": "string"
}
}
}
],
"Tag": {
"key": "value"
},
"Lock": [
{
"Name": "string",
"Level": "string",
"Notes": "string"
}
]
}
]
}