custom/manifests/AzureDatabaseForPostgreSQL.json

{
  "datasourcePermissions": [ "Reader" ],
  "snapshotRGPermissions": [],
  "keyVaultPermissions": [ "Key Vault Secrets User" ],
  "isProxyResource": true,
  "resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
  "parentResourceType": "Microsoft.DBforPostgreSQL/servers",
  "datasourceType": "Microsoft.DBforPostgreSQL/servers/databases",
  "allowedRestoreModes": [ "RecoveryPointBased" ],
  "allowedRestoreTargetTypes": [ "AlternateLocation", "RestoreAsFiles" ],
  "itemLevelRecoveyEnabled": false,
  "supportSecretStoreAuthentication": true,
  "policySettings": {
    "supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ],
    "supportedDatastoreTypes": [ "VaultStore", "ArchiveStore" ],
    "disableAddRetentionRule": false,
    "disableCustomRetentionTag": false,
    "backupScheduleSupported": true,
    "supportedBackupFrequency": [ "Weekly" ],
    "defaultPolicy": {
      "name": "OssPolicy1",
      "datasourceTypes": [ "Microsoft.DBforPostgreSQL/servers/databases" ],
      "objectType": "BackupPolicy",
      "policyRules": [
        {
          "backupParameters": {
            "backupType": "Full",
            "objectType": "AzureBackupParams"
          },
          "trigger": {
            "schedule": {
              "repeatingTimeIntervals": [
                "R/2021-08-22T02:00:00+00:00/P1W"
              ],
              "timeZone": "UTC"
            },
            "taggingCriteria": [
              {
                "tagInfo": {
                  "tagName": "Default",
                  "id": "Default_"
                },
                "taggingPriority": 99,
                "isDefault": true
              }
            ],
            "objectType": "ScheduleBasedTriggerContext"
          },
          "dataStore": {
            "dataStoreType": "VaultStore",
            "objectType": "DataStoreInfoBase"
          },
          "name": "BackupWeekly",
          "objectType": "AzureBackupRule"
        },
        {
          "lifecycles": [
            {
              "deleteAfter": {
                "objectType": "AbsoluteDeleteOption",
                "duration": "P3M"
              },
              "targetDataStoreCopySettings": [],
              "sourceDataStore": {
                "dataStoreType": "VaultStore",
                "objectType": "DataStoreInfoBase"
              }
            }
          ],
          "isDefault": true,
          "name": "Default",
          "objectType": "AzureRetentionRule"
        }
      ]
    }
  }
}