Microsoft.Sql servers/databases/backupLongTermRetentionPolicies 2017-03-01-preview

The servers/databases/backupLongTermRetentionPolicies resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies@2017-03-01-preview' = {
  name: 'default'
  parent: parentSymbolicName
  properties: {
    monthlyRetention: 'string'
    weeklyRetention: 'string'
    weekOfYear: int
    yearlyRetention: 'string'
  }
}

Property values

servers/databases/backupLongTermRetentionPolicies

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2017-03-01-preview'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
'default'
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName
properties Properties of a long term retention policy LongTermRetentionPolicyProperties

LongTermRetentionPolicyProperties

Name Description Value
monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. string
weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. string
weekOfYear The week of year to take the yearly backup in an ISO 8601 format. int
yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. string