last sync: 2021-Jan-25 16:07:05 UTC

Azure Policy definition

Geo-redundant storage should be enabled for Storage Accounts

Name Geo-redundant storage should be enabled for Storage Accounts
Azure Portal
Id bf045164-79ba-4215-8f95-f8048dc1780b
Version 1.0.0
details on versioning
Category Storage
Microsoft docs
Description This policy audits any Storage Account with geo-redundant storage not enabled.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2019-10-29 23:04:36 add bf045164-79ba-4215-8f95-f8048dc1780b
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
[Deprecated]: DOD Impact Level 4 8d792a84-723c-4d92-a3c3-e4ed16a2d133 Regulatory Compliance Deprecated
FedRAMP High d5264498-16f4-418a-b659-fa7ef418175f Regulatory Compliance GA
Json
{
  "properties": {
    "displayName": "Geo-redundant storage should be enabled for Storage Accounts",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits any Storage Account with geo-redundant storage not enabled.",
    "metadata": {
      "version": "1.0.0",
      "category": "Storage"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Storage/storageAccounts"
          },
          {
            "not": {
              "field": "Microsoft.Storage/storageAccounts/sku.name",
              "in": [
                "Standard_GRS",
                "Standard_RAGRS",
                "Standard_GZRS",
                "Standard_RAGZRS"
              ]
            }
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/bf045164-79ba-4215-8f95-f8048dc1780b",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "bf045164-79ba-4215-8f95-f8048dc1780b"
}