Bylaw

Gallery › Stack HCI › Azure built-in policies

[Preview]: Host and VM networking should be protected on Azure Stack HCI systems

Doesn't convert yet Policy Audit AuditIfNotExists Disabled Mode Indexed Version 1.0.0-preview Preview

Protect data on the Azure Stack HCI hosts network and on virtual machine network connections.

ConvertTo-Bylaw can't convert this policy yet:

Azure Policy JSONDataInTransitProtectedAtCluster_Audit.json · 65 lines
{
  "properties": {
    "displayName": "[Preview]: Host and VM networking should be protected on Azure Stack HCI systems",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Protect data on the Azure Stack HCI hosts network and on virtual machine network connections.",
    "metadata": {
      "version": "1.0.0-preview",
      "category": "Stack HCI",
      "preview": true
    },
    "version": "1.0.0-preview",
    "parameters": {
      "effect": {
        "type": "String",
        "defaultValue": "AuditIfNotExists",
        "allowedValues": [
          "Audit",
          "Disabled",
          "AuditIfNotExists"
        ],
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        }
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.AzureStackHCI/clusters"
          },
          {
            "field": "Microsoft.AzureStackHCI/clusters/reportedProperties.clusterVersion",
            "greater": "10.0.20350"
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.AzureStackHCI/clusters/securitySettings",
          "existenceCondition": {
            "allOf": [
              {
                "field": "Microsoft.AzureStackHCI/clusters/securitySettings/securityComplianceStatus.dataInTransitProtected",
                "in": [
                  "Compliant",
                  "Pending"
                ]
              }
            ]
          }
        }
      }
    },
    "versions": [
      "1.0.0-PREVIEW"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/36f0d6bc-a253-4df8-b25b-c3a5023ff443",
  "name": "36f0d6bc-a253-4df8-b25b-c3a5023ff443"
}

Source: built-in-policies/policyDefinitions/Stack HCI/DataInTransitProtectedAtCluster_Audit.json in Azure/azure-policy, under the MIT licence.