Microsoft.Sql servers/databases/backupLongTermRetentionPolicies 2020-11-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@2020-11-01-preview' = {
  name: 'string'
  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.
'2020-11-01-preview'
name The resource name 'default'

See how to set names and types for child resources in Bicep or JSON ARM templates.
properties Properties of a long term retention policy BaseLongTermRetentionPolicyProperties

BaseLongTermRetentionPolicyProperties

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