last sync: 2021-May-10 15:04:35 UTC

Azure Policy definition

Azure HDInsight clusters should be injected into a virtual network

Name Azure HDInsight clusters should be injected into a virtual network
Azure Portal
Id b0ab5b05-1c98-40f7-bb9e-dc568e41b501
Version 1.0.0
details on versioning
Category HDInsight
Microsoft docs
Description Injecting Azure HDInsight clusters in a virtual network unlocks advanced HDInsight networking and security features and provides you with control over your network security configuration.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled, Deny)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-03-02 15:11:40 add b0ab5b05-1c98-40f7-bb9e-dc568e41b501
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "Azure HDInsight clusters should be injected into a virtual network",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Injecting Azure HDInsight clusters in a virtual network unlocks advanced HDInsight networking and security features and provides you with control over your network security configuration.",
    "metadata": {
      "version": "1.0.0",
      "category": "HDInsight"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled",
          "Deny"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.HDInsight/clusters"
          },
          {
            "count": {
            "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*]",
              "where": {
                "anyOf": [
                  {
                  "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.id",
                    "exists": false
                  },
                  {
                  "field": "Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.subnet",
                    "exists": false
                  }
                ]
              }
            },
            "greater": 0
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/b0ab5b05-1c98-40f7-bb9e-dc568e41b501",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "b0ab5b05-1c98-40f7-bb9e-dc568e41b501"
}