last sync: 2021-Jul-23 16:37:57 UTC

Azure Policy definition

Managed disks should disable public network access

Name Managed disks should disable public network access
Azure Portal
Id 8405fdab-1faf-48aa-b702-999c9c172094
Version 1.0.0
details on versioning
Category Compute
Microsoft docs
Description Disabling public network access improves security by ensuring that a managed disk isn't exposed on the public internet. Creating private endpoints can limit exposure of managed disks. Learn more at: https://aka.ms/disksprivatelinksdoc.
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
2021-04-07 13:27:17 add 8405fdab-1faf-48aa-b702-999c9c172094
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Managed disks should disable public network access",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Disabling public network access improves security by ensuring that a managed disk isn't exposed on the public internet. Creating private endpoints can limit exposure of managed disks. Learn more at: https://aka.ms/disksprivatelinksdoc.",
    "metadata": {
      "version": "1.0.0",
      "category": "Compute"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "The effect determines what happens when the policy rule is evaluated to match"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Compute/disks"
          },
          {
            "field": "Microsoft.Compute/disks/networkAccessPolicy",
            "notIn": [
              "DenyAll",
              "AllowPrivate"
            ]
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/8405fdab-1faf-48aa-b702-999c9c172094",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "8405fdab-1faf-48aa-b702-999c9c172094"
}