last sync: 2021-Jan-19 16:06:44 UTC

Azure Policy definition

[Preview]: Firewall should be enabled on Key Vault

Name [Preview]: Firewall should be enabled on Key Vault
Azure Portal
Id 55615ac9-af46-4a59-874e-391cc3dfb490
Version 1.0.2-preview
details on versioning
Category Key Vault
Microsoft docs
Description Key vault's firewall prevents unauthorized traffic from reaching your key vault and provides an additional layer of protection for your secrets. Enable the firewall to make sure that only traffic from allowed networks can access your key vault.
Mode Indexed
Type BuiltIn
Preview True
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-12-11 15:42:52 change Patch, suffix remains equal (1.0.1-preview > 1.0.2-preview)
2020-09-09 11:24:03 add 55615ac9-af46-4a59-874e-391cc3dfb490
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
[Preview]: Azure Security Benchmark v2 bb522ac1-bc39-4957-b194-429bcd3bcb0b Regulatory Compliance Preview
Enable Monitoring in Azure Security Center 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 Security Center GA
JSON Changes

Json
{
  "properties": {
  "displayName": "[Preview]: Firewall should be enabled on Key Vault",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Key vault's firewall prevents unauthorized traffic from reaching your key vault and provides an additional layer of protection for your secrets. Enable the firewall to make sure that only traffic from allowed networks can access your key vault.",
    "metadata": {
      "version": "1.0.2-preview",
      "category": "Key Vault",
      "preview": true
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
        "displayName": "[Preview]: Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.KeyVault/vaults"
          },
          {
            "field": "Microsoft.KeyVault/vaults/networkAcls.defaultAction",
            "notEquals": "Deny"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/55615ac9-af46-4a59-874e-391cc3dfb490",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "55615ac9-af46-4a59-874e-391cc3dfb490"
}