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

Template format

To create a Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "apiVersion": "2017-03-01-preview",
  "properties": {
    "weeklyRetention": "string",
    "monthlyRetention": "string",
    "yearlyRetention": "string",
    "weekOfYear": "integer"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies object

Name Type Required Value
name string Yes The policy name. Should always be Default.
type enum Yes backupLongTermRetentionPolicies
-or-
Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies

See Set name and type for child resources.
apiVersion enum Yes 2017-03-01-preview
properties object Yes Resource properties. - LongTermRetentionPolicyProperties object

LongTermRetentionPolicyProperties object

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