last sync: 2021-Jan-20 16:06:14 UTC

Azure Policy definition

SQL Managed Instances should avoid using GRS backup redundancy

Name SQL Managed Instances should avoid using GRS backup redundancy
Azure Portal
Id a9934fd7-29f2-4e6d-ab3d-607ea38e9079
Version 1.0.0
details on versioning
Category SQL
Microsoft docs
Description Managed Instances should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Deny
Allowed: (Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-09-09 11:24:03 add a9934fd7-29f2-4e6d-ab3d-607ea38e9079
Used in Initiatives none
Json
{
  "properties": {
    "displayName": "SQL Managed Instances should avoid using GRS backup redundancy",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Managed Instances should avoid using the default geo-redundant storage for backups, if data residency rules require data to stay within a specific region. Note: Azure Policy is not enforced when creating a database using T-SQL. If not explicitly specified, database with geo-redundant backup storage is created via T-SQL.",
    "metadata": {
      "version": "1.0.0",
      "category": "SQL"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Deny"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Sql/managedInstances"
          },
          {
            "not": {
              "anyOf": [
                {
                  "field": "Microsoft.Sql/managedInstances/storageAccountType",
                  "equals": "LRS"
                },
                {
                  "field": "Microsoft.Sql/managedInstances/storageAccountType",
                  "equals": "ZRS"
                }
              ]
            }
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/a9934fd7-29f2-4e6d-ab3d-607ea38e9079",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "a9934fd7-29f2-4e6d-ab3d-607ea38e9079"
}