Bylaw

Gallery › Stack HCI › Azure built-in policies

[Preview]: Azure Stack HCI servers should meet Secured-core requirements

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

Ensure that all Azure Stack HCI servers meet the Secured-core requirements. To enable the Secured-core server requirements: 1. From the Azure Stack HCI clusters page, go to Windows Admin Center and select Connect. 2. Go to the Security extension and select Secured-core. 3. Select any setting that is not enabled and click Enable.

ConvertTo-Bylaw can't convert this policy yet:

Azure Policy JSONSecuredCoreComplianceAtCluster_Audit.json · 65 lines
{
  "properties": {
    "displayName": "[Preview]: Azure Stack HCI servers should meet Secured-core requirements",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Ensure that all Azure Stack HCI servers meet the Secured-core requirements. To enable the Secured-core server requirements: 1. From the Azure Stack HCI clusters page, go to Windows Admin Center and select Connect. 2. Go to the Security extension and select Secured-core. 3. Select any setting that is not enabled and click Enable.",
    "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.securedCoreCompliance",
                "in": [
                  "Compliant",
                  "Pending"
                ]
              }
            ]
          }
        }
      }
    },
    "versions": [
      "1.0.0-PREVIEW"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/5e6bf724-0154-49bc-985f-27b2e07e636b",
  "name": "5e6bf724-0154-49bc-985f-27b2e07e636b"
}

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