Microsoft.Sql servers/databases/backupLongTermRetentionPolicies template reference
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": "2014-04-01",
"properties": {
"state": "string",
"recoveryServicesBackupPolicyResourceId": "string"
}
}
Property values
The following tables describe the values you need to set in the schema.
Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies object
Note
In Bicep, type
and apiVersion
are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>
. Don't set those properties in the resource body.
Name | Type | Required | Value |
---|---|---|---|
name | string | Yes | The name of the backup long term retention policy |
type | enum | Yes | For JSON -backupLongTermRetentionPolicies -or- Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies See Set name and type for child resources. |
apiVersion | enum | Yes | For JSON - 2014-04-01 |
properties | object | Yes | The properties of the backup long term retention policy - BackupLongTermRetentionPolicyProperties object |
BackupLongTermRetentionPolicyProperties object
Name | Type | Required | Value |
---|---|---|---|
state | enum | Yes | The status of the backup long term retention policy. - Disabled or Enabled |
recoveryServicesBackupPolicyResourceId | string | Yes | The azure recovery services backup protection policy resource id |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for