last sync: 2020-Sep-25 13:37:27 UTC

Azure Policy

Long-term geo-redundant backup should be enabled for Azure SQL Databases

Policy DisplayName Long-term geo-redundant backup should be enabled for Azure SQL Databases
Policy Id d38fc420-0735-4ef3-ac11-c806f651a570
Policy Category SQL
Policy Description This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2019-10-29 23:04:36 add: Policy d38fc420-0735-4ef3-ac11-c806f651a570
Used in Policy Initiative(s)
Initiative DisplayName Initiative Id
[Preview]: Azure Security Benchmark 42a694ed-f65e-42b2-aa9e-8052e9740a92
[Deprecated]: DOD Impact Level 4 8d792a84-723c-4d92-a3c3-e4ed16a2d133
HITRUST/HIPAA a169a624-5599-4385-a696-c8d643089fab
FedRAMP High d5264498-16f4-418a-b659-fa7ef418175f
Policy Rule
{
  "properties": {
    "displayName": "Long-term geo-redundant backup should be enabled for Azure SQL Databases",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.",
    "metadata": {
      "version": "1.0.0",
      "category": "SQL"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "defaultValue": "AuditIfNotExists"
      }
    },
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.Sql/servers/databases"
      },
      "then": {
      "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
          "name": "default",
          "existenceCondition": {
            "anyOf": [
              {
                "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/weeklyRetention",
                "notEquals": "PT0S"
              },
              {
                "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/monthlyRetention",
                "notEquals": "PT0S"
              },
              {
                "field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/yearlyRetention",
                "notEquals": "PT0S"
              }
            ]
          }
        }
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/d38fc420-0735-4ef3-ac11-c806f651a570",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "d38fc420-0735-4ef3-ac11-c806f651a570"
}