Bylaw

Gallery › Regulatory Compliance › Azure built-in policies

New Zealand ISM

Converted Initiative Version 1.11.0

NZISM v3.8. The New Zealand Information Security Manual (NZISM) details processes and controls essential for the protection of all New Zealand Government information and systems. This initiative includes policies that address a subset of NZISM controls. Additional policies will be added in upcoming releases. For full details on controls, please refer to https://www.nzism.gcsb.govt.nz/ism-document. This policy set includes definitions that have a Deny effect by default.

ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.

Azure Policy JSONNewZealand_ISM.json · 2860 lines
{
  "properties": {
    "displayName": "New Zealand ISM",
    "policyType": "BuiltIn",
    "description": "NZISM v3.8. The New Zealand Information Security Manual (NZISM) details processes and controls essential for the protection of all New Zealand Government information and systems. This initiative includes policies that address a subset of NZISM controls. Additional policies will be added in upcoming releases. For full details on controls, please refer to https://www.nzism.gcsb.govt.nz/ism-document. This policy set includes definitions that have a Deny effect by default.",
    "metadata": {
      "category": "Regulatory Compliance",
      "version": "1.11.0"
    },
    "version": "1.11.0",
    "policyDefinitionGroups": [
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.2.5.C.01",
        "category": "06. Information security monitoring",
        "name": "New_Zealand_ISM_06.2.5.C.01",
        "description": "Agencies SHOULD conduct vulnerability assessments in order to establish a baseline. This SHOULD be done: before a system is first used; after any significant incident; after a significant change to the system; after changes to standards, policies and guidelines; when specified by an ITSM or system owner."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.2.6.C.01",
        "category": "06. Information security monitoring",
        "name": "New_Zealand_ISM_06.2.6.C.01",
        "description": "Agencies SHOULD analyse and treat all vulnerabilities and subsequent security risks to their systems identified during a vulnerability assessment."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.4.5.C.01",
        "category": "06. Information security monitoring",
        "name": "New_Zealand_ISM_06.4.5.C.01",
        "description": "Agencies MUST determine availability and recovery requirements for their systems and implement measures consistent with the agency's SRMP to support them."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_07.1.7.C.02",
        "category": "07. Information Security Incidents",
        "name": "New_Zealand_ISM_07.1.7.C.02",
        "description": "Agencies SHOULD develop, implement and maintain tools and procedures covering the detection of potential information security incidents, incorporating: user awareness and training; counter-measures against malicious code, known attack methods and types; intrusion detection strategies; data egress monitoring & control; access control anomalies; audit analysis; system integrity checking; and vulnerability assessments."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_07.2.22.C.01",
        "category": "07. Information Security Incidents",
        "name": "New_Zealand_ISM_07.2.22.C.01",
        "description": "Agencies that outsource their information technology services and functions MUST ensure that the service provider advises and consults with the agency when an information security incident occurs."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_10.8.35.C.01",
        "category": "10. Infrastructure",
        "name": "New_Zealand_ISM_10.8.35.C.01",
        "description": "Security architectures MUST apply the principles of separation and segregation."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_12.4.4.C.02",
        "category": "12. Product Security",
        "name": "New_Zealand_ISM_12.4.4.C.02",
        "description": "Agencies MUST implement a patch management strategy, including an evaluation or testing process."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.1.8.C.01",
        "category": "14. Software security",
        "name": "New_Zealand_ISM_14.1.8.C.01",
        "description": "Agencies SHOULD develop a hardened SOE for workstations and servers, covering several requirements detailed here https://www.nzism.gcsb.govt.nz/ism-document#SubSection-15020"
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.1.9.C.01",
        "category": "14. Software security",
        "name": "New_Zealand_ISM_14.1.9.C.01",
        "description": "Agencies MUST ensure that for all servers and workstations: a technical specification is agreed for each platform with specified controls; a standard configuration created and updated for each operating system type and version; system users do not have the ability to install or disable software without approval; and installed software and operating system patching is up to date."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.2.4.C.01",
        "category": "14. Software security",
        "name": "New_Zealand_ISM_14.2.4.C.01",
        "description": "Agencies SHOULD implement application allow listing as part of the SOE for workstations, servers and any other network device."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.5.8.C.01",
        "category": "14. Software security",
        "name": "New_Zealand_ISM_14.5.8.C.01",
        "description": "Agencies SHOULD follow the documentation provided in the Open Web Application Security Project guide to building secure Web applications and Web services."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.1.32.C.01",
        "category": "16. Access Control and Passwords",
        "name": "New_Zealand_ISM_16.1.32.C.01",
        "description": "Agencies MUST ensure that all system users are: uniquely identifiable; and authenticated on each occasion that access is granted to a system."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.3.5.C.02",
        "category": "16. Access Control and Passwords",
        "name": "New_Zealand_ISM_16.3.5.C.02",
        "description": "Agencies SHOULD: ensure strong change management practices are implemented; ensure that the use of privileged accounts is controlled and accountable; ensure that system administrators are assigned an individual account for the performance of their administration tasks; keep privileged accounts to a minimum; and allow the use of privileged accounts for  administrative work only."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.4.30.C.01",
        "category": "16. Access Control and Passwords",
        "name": "New_Zealand_ISM_16.4.30.C.01",
        "description": "Agencies MUST establish a Privileged Access Management (PAM) policy."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.4.32.C.01",
        "category": "16. Access Control and Passwords",
        "name": "New_Zealand_ISM_16.4.32.C.01",
        "description": "As part of a Privileged Access Management (PAM) policy, agencies MUST establish and implement a strong approval and authorisation process before any privileged access credentials are issued."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.1.55.C.03",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.1.55.C.03",
        "description": "Agencies MUST encrypt aggregated agency data using an approved algorithm and protocol over insecure or unprotected networks such as the Internet, public infrastructure or non-agency controlled networks when the compromise of the aggregated data would present a significant impact to the agency."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.1.58.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.1.58.C.01",
        "description": "Agencies SHOULD establish cryptoperiods for all keys and cryptographic implementations in their systems and operations."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.19.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.2.19.C.01",
        "description": "Agencies using DH, for the approved use of agreeing on encryption session keys, MUST use a modulus of at least 3072 bits."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.22.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.2.22.C.01",
        "description": "Agencies using ECDH, for the approved use of agreeing on encryption session keys, MUST implement the curve P-384 (prime moduli)."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.24.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.2.24.C.01",
        "description": "Agencies using RSA, for the approved use of digital signatures and passing encryption session keys or similar keys, MUST use a modulus of at least 3072 bits."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.4.16.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.4.16.C.01",
        "description": "Agencies SHOULD use the current version of TLS (version 1.3)."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.5.6.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.5.6.C.01",
        "description": "The settings that SHOULD be implemented when using SSH areoutlined on the NCSC website for this control https://www.nzism.gcsb.govt.nz/ism-document#SubSection-15978"
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.5.7.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.5.7.C.01",
        "description": "Agencies SHOULD use public key-based authentication before using password-based authentication."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.9.35.C.01",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.9.35.C.01",
        "description": "Before personnel are granted cryptographic system administrator access, agencies MUST ensure the requirements for access are met.  For a full list see the control published here https://www.nzism.gcsb.govt.nz/ism-document#SubSection-16122"
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.9.36.C.02",
        "category": "17. Cryptography",
        "name": "New_Zealand_ISM_17.9.36.C.02",
        "description": "Areas in which cryptographic system material is used SHOULD be separated from other areas and designated as a controlled cryptography area."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.1.10.C.01",
        "category": "18. Network security",
        "name": "New_Zealand_ISM_18.1.10.C.01",
        "description": "Agencies SHOULD keep the network configuration under the control of a network management authority."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.1.13.C.02",
        "category": "18. Network security",
        "name": "New_Zealand_ISM_18.1.13.C.02",
        "description": "Agencies SHOULD implement network access controls on all networks."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.4.7.C.02",
        "category": "18. Network security",
        "name": "New_Zealand_ISM_18.4.7.C.02",
        "description": "Agencies SHOULD develop, implement and maintain an intrusion detection strategy that includes: appropriate intrusion detection mechanisms, including network-based IDS/IPSs and host-based IDS/IPSs as necessary; the audit analysis of event logs, including IDS/IPS logs; a periodic audit of intrusion detection procedures; information security awareness and training programs; and a documented IRP."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.4.8.C.01",
        "category": "18. Network security",
        "name": "New_Zealand_ISM_18.4.8.C.01",
        "description": "Agencies SHOULD deploy IDS/IPSs in all gateways between the agency�s networks and unsecure public networks or BYOD wireless networks."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_22.1.24.C.03",
        "category": "22. Enterprise systems security",
        "name": "New_Zealand_ISM_22.1.24.C.03",
        "description": "Agencies intending to adopt cloud technologies or services SHOULD apply controls to detect and prevent unauthorised data transfers and multiple or large scale data transfers to offshore locations and entities."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_22.1.24.C.04",
        "category": "22. Enterprise systems security",
        "name": "New_Zealand_ISM_22.1.24.C.04",
        "description": "Agencies intending to adopt cloud technologies or services SHOULD consider the use of encryption for data in transit and at rest."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.3.19.C.01",
        "category": "23. Public Cloud Security",
        "name": "New_Zealand_ISM_23.3.19.C.01",
        "description": "Where administration interfaces or portals are accessible from the internet, privileged accounts MUST be configured to use multiple factors of authentication."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.4.10.C.01",
        "category": "23. Public Cloud Security",
        "name": "New_Zealand_ISM_23.4.10.C.01",
        "description": "Agencies MUST apply the principle of least privilege and configure service endpoints to restrict access to authorised parties."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.4.9.C.01",
        "category": "23. Public Cloud Security",
        "name": "New_Zealand_ISM_23.4.9.C.01",
        "description": "For each cloud service, agencies MUST ensure that the mechanisms used to protect data meet agency requirements."
      },
      {
        "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.5.11.C.01",
        "category": "23. Public Cloud Security",
        "name": "New_Zealand_ISM_23.5.11.C.01",
        "description": "Agencies MUST ensure that logs associated with public cloud services are collected, protected, and that their integrity can be confirmed in accordance with the agency�s documented logging requirements."
      }
    ],
    "parameters": {
      "namespaces-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Namespace inclusions",
          "description": "List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces."
        },
        "defaultValue": []
      },
      "evaluatedSkuNames-2": {
        "type": "Array",
        "metadata": {
          "displayName": "Azure Spring Cloud SKU Names",
          "description": "List of Azure Spring Cloud SKUs against which this policy will be evaluated."
        },
        "allowedValues": [
          "Standard",
          "Enterprise"
        ],
        "defaultValue": [
          "Standard",
          "Enterprise"
        ]
      },
      "warn-1": {
        "type": "Boolean",
        "metadata": {
          "displayName": "Warn",
          "description": "Whether or not to return warnings back to the user in the kubectl cli"
        },
        "defaultValue": false
      },
      "NotAvailableMachineState-1": {
        "type": "String",
        "metadata": {
          "displayName": "Status if Windows Defender is not available on machine",
          "description": "Windows Defender Exploit Guard is only available starting with Windows 10/Windows Server with update 1709. Setting this value to 'Non-Compliant' shows machines with older versions on which Windows Defender Exploit Guard is not available (such as Windows Server 2012 R2) as non-compliant. Setting this value to 'Compliant' shows these machines as compliant."
        },
        "allowedValues": [
          "Compliant",
          "Non-Compliant"
        ],
        "defaultValue": "Compliant"
      },
      "setting-1": {
        "type": "String",
        "metadata": {
          "displayName": "Desired Auditing setting"
        },
        "allowedValues": [
          "enabled",
          "disabled"
        ],
        "defaultValue": "enabled"
      },
      "evaluatedSkuNames-1": {
        "type": "Array",
        "metadata": {
          "displayName": "API Management SKU Names",
          "description": "List of API Management SKUs against which this policy will be evaluated."
        },
        "allowedValues": [
          "Developer",
          "Basic",
          "Standard",
          "Premium",
          "Consumption"
        ],
        "defaultValue": [
          "Developer",
          "Premium"
        ]
      },
      "allowedECNames-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Allowed elliptic curve names",
          "description": "The list of allowed curve names for elliptic curve cryptography certificates."
        },
        "allowedValues": [
          "P-256",
          "P-256K",
          "P-384",
          "P-521"
        ],
        "defaultValue": [
          "P-256",
          "P-256K",
          "P-384",
          "P-521"
        ]
      },
      "LinuxPythonVersion-1": {
        "type": "String",
        "metadata": {
          "displayName": "Linux Python version",
          "description": "Specify a supported Python version for App Service"
        },
        "defaultValue": ""
      },
      "forbiddenIPAddresses-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Forbidden IP addresses",
          "description": "Array with forbidden public IP addresses. An empty array is evaluated as there are no forbidden IP addresses."
        },
        "defaultValue": []
      },
      "excludedKinds-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Excluded Kinds",
          "description": "The list of excluded API kinds for customer-managed key, default is the list of API kinds that don't have data stored in Cognitive Services"
        },
        "defaultValue": [
          "CognitiveServices",
          "ContentSafety",
          "ImmersiveReader",
          "HealthInsights",
          "LUIS.Authoring",
          "LUIS",
          "QnAMaker",
          "QnAMaker.V2",
          "AIServices",
          "MetricsAdvisor",
          "SpeechTranslation",
          "Internal.AllInOne",
          "ConversationalLanguageUnderstanding",
          "knowledge",
          "TranscriptionIntelligence",
          "HealthDecisionSupport"
        ]
      },
      "excludedNamespaces-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Namespace exclusions",
          "description": "List of Kubernetes namespaces to exclude from policy evaluation. System namespaces \"kube-system\", \"gatekeeper-system\" and \"azure-arc\" are always excluded by design. \"azure-extensions-usage-system\" is optional to remove."
        },
        "defaultValue": [
          "kube-system",
          "gatekeeper-system",
          "azure-arc",
          "azure-extensions-usage-system"
        ]
      },
      "endpointType-1": {
        "type": "String",
        "metadata": {
          "displayName": "Public Endpoint Type",
          "description": "Public Endpoint Type for which to enforce the access check"
        },
        "allowedValues": [
          "Management",
          "Git",
          "Gateway Configuration"
        ],
        "defaultValue": "Management"
      },
      "allowedIPAddresses-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Allowed IP addresses",
          "description": "Array with allowed public IP addresses. An empty array is evaluated as to allow all IPs."
        },
        "defaultValue": []
      },
      "minimumRSAKeySize-1": {
        "type": "Integer",
        "metadata": {
          "displayName": "Minimum RSA key size",
          "description": "The minimum key size for RSA keys."
        },
        "allowedValues": [
          2048,
          3072,
          4096
        ],
        "defaultValue": 2048
      },
      "IncludeArcMachines-1": {
        "type": "String",
        "metadata": {
          "displayName": "Include Arc connected servers",
          "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.",
          "portalReview": "true"
        },
        "allowedValues": [
          "true",
          "false"
        ],
        "defaultValue": "false"
      },
      "requiredRetentionDays-1": {
        "type": "String",
        "metadata": {
          "displayName": "Required retention (days)",
          "description": "The required resource logs retention in days"
        },
        "defaultValue": "365"
      },
      "excludedContainers-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Containers exclusions",
          "description": "The list of InitContainers and Containers to exclude from policy evaluation. The identify is the name of container. Use an empty list to apply this policy to all containers in all namespaces."
        },
        "defaultValue": []
      },
      "modeRequirement-1": {
        "type": "String",
        "metadata": {
          "displayName": "Mode Requirement",
          "description": "Mode required for all WAF policies"
        },
        "allowedValues": [
          "Prevention",
          "Detection"
        ],
        "defaultValue": "Detection"
      },
      "MinimumTLSVersion-1": {
        "type": "String",
        "metadata": {
          "displayName": "Minimum TLS version",
          "description": "The minimum TLS protocol version that should be enabled. Windows machines with lower TLS versions will be marked as non-compliant."
        },
        "allowedValues": [
          "1.1",
          "1.2"
        ],
        "defaultValue": "1.2"
      },
      "excludedImages-1": {
        "type": "Array",
        "metadata": {
          "displayName": "Image exclusions",
          "description": "The list of InitContainers and Containers to exclude from policy evaluation. The identifier is the image of container. Prefix-matching can be signified with `*`. For example: `myregistry.azurecr.io/istio:*`. It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name) in order to avoid unexpectedly exempting images from an untrusted repository.",
          "portalReview": true
        },
        "defaultValue": []
      },
      "restrictIPAddresses-1": {
        "type": "String",
        "metadata": {
          "displayName": "Would you like to restrict specific IP addresses?",
          "description": "Select (Yes) to allow or forbid a list of IP addresses. If (No), the list of IP addresses won't have any effect in the policy enforcement"
        },
        "allowedValues": [
          "Yes",
          "No"
        ],
        "defaultValue": "No"
      },
      "source-1": {
        "type": "String",
        "metadata": {
          "displayName": "Source",
          "description": "The source k8s object for constraint evaluation. 'Original' means only evaluate against the specific GroupVersionKind specified in the policy definition. 'Generated' means only evaluate against k8s objects generated by Gatekeeper ExpansionTemplates. 'All' means evaluate against both the original object and any generated ones."
        },
        "allowedValues": [
          "All",
          "Generated",
          "Original"
        ],
        "defaultValue": "Original"
      },
      "LinuxPHPVersion-1": {
        "type": "String",
        "metadata": {
          "displayName": "Linux PHP version",
          "description": "Specify a supported PHP version for App Service"
        },
        "defaultValue": ""
      },
      "labelSelector-1": {
        "type": "Object",
        "metadata": {
          "displayName": "Kubernetes label selector",
          "description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."
        },
        "defaultValue": {},
        "schema": {
          "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.",
          "type": "object",
          "properties": {
            "matchLabels": {
              "description": "matchLabels is a map of {key,value} pairs.",
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "minProperties": 1
            },
            "matchExpressions": {
              "description": "matchExpressions is a list of values, a key, and an operator.",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "description": "key is the label key that the selector applies to.",
                    "type": "string"
                  },
                  "operator": {
                    "description": "operator represents a key's relationship to a set of values.",
                    "type": "string",
                    "enum": [
                      "In",
                      "NotIn",
                      "Exists",
                      "DoesNotExist"
                    ]
                  },
                  "values": {
                    "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "key",
                  "operator"
                ],
                "additionalProperties": false
              },
              "minItems": 1
            }
          },
          "additionalProperties": false
        }
      },
      "minimumTlsVersion-2": {
        "type": "String",
        "metadata": {
          "displayName": "Minimum TLS Version",
          "description": "Minimum version of TLS required to access data in this storage account"
        },
        "allowedValues": [
          "TLS1_0",
          "TLS1_1",
          "TLS1_2"
        ],
        "defaultValue": "TLS1_2"
      },
      "audit_effect-1": {
        "type": "String",
        "metadata": {
          "displayName": "A deprecate audit effect parameter",
          "description": "Enable or disable the execution of the policy",
          "deprecated": true
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Disabled"
      },
      "audit-effect-2": {
        "type": "String",
        "metadata": {
          "displayName": "A deprecate audit or deny effect parameter",
          "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy.",
          "portalReview": true,
          "deprecated": true
        },
        "allowedValues": [
          "audit",
          "Audit",
          "deny",
          "Deny",
          "disabled",
          "Disabled"
        ],
        "defaultValue": "Disabled"
      },
      "auditEffectAzureKeyVaultsShouldUsePrivateLink": {
        "type": "String",
        "metadata": {
          "displayName": "Effect for policy: Azure Key Vaults should use private link",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      },
      "auditEffectAzureMachineLearningComputeInstancesShouldBeRecreated": {
        "type": "String",
        "metadata": {
          "displayName": "Effect for policy: Azure Machine Learning compute instances should be recreated to get the latest software updates",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      },
      "auditEffectKubernetesClusterShouldNotAllowPrivilegedContainers": {
        "type": "String",
        "metadata": {
          "displayName": "Effect for policy: Kubernetes cluster should not allow privileged containers",
          "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy.",
          "portalReview": true
        },
        "allowedValues": [
          "audit",
          "Audit",
          "deny",
          "Deny",
          "disabled",
          "Disabled"
        ],
        "defaultValue": "Audit"
      },
      "auditEffectKubernetesClustersShouldBeAccessibleOnlyOverHTTPS": {
        "type": "String",
        "metadata": {
          "displayName": "Effect for policy: Kubernetes clusters should be accessible only over HTTPS",
          "description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy.",
          "portalReview": true
        },
        "allowedValues": [
          "audit",
          "Audit",
          "deny",
          "Deny",
          "disabled",
          "Disabled"
        ],
        "defaultValue": "Audit"
      },
      "deny_effect-1": {
        "type": "String",
        "metadata": {
          "displayName": "Audit, deny or disable the execution of the policy",
          "description": "Audit, deny or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Deny"
      },
      "LinuxJavaVersion-1": {
        "type": "String",
        "metadata": {
          "displayName": "Linux Java version",
          "description": "Specify a supported Java version for App Service"
        },
        "defaultValue": ""
      }
    },
    "policyDefinitions": [
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.5.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "A vulnerability assessment solution should be enabled on your virtual machines",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/501541f7-f7e7-4cd6-868c-4190fdad3ac9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.5.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Vulnerability assessment should be enabled on SQL Managed Instance",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1b7aa243-30e4-4c9e-bca8-d0d3022b634a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.5.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Vulnerability assessment should be enabled on your SQL servers",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL databases should have vulnerability findings resolved",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/feedbf84-6b99-488c-acc2-71c829aa5ffc"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL servers on machines should have vulnerability findings resolved",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6ba6d016-e7c3-4842-b8f2-4992ebc0d72d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Machines should have secret findings resolved",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/3ac7c827-eea2-4bde-acc7-9568cd320efa"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure registry container images should have vulnerabilities resolved (powered by Microsoft Defender Vulnerability Management)",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/090c7b07-b4ed-4561-ad20-e9075f3ccaff"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure running container images should have vulnerabilities resolved (powered by Microsoft Defender Vulnerability Management)",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/17f4b1cc-c55c-4d94-b1f9-2978f6ac2957"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.2.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Configure Microsoft Defender for Containers to be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9ddb292-b203-4738-aead-18e2716e858f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_06.4.5.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Audit virtual machines without disaster recovery configured",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for App Service should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2913021d-f2fd-4f3d-b958-22354e2bdbcb"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for Azure SQL Database servers should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7fe3b40f-802b-4cdd-8bd4-fd799c948cc2"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for Key Vault should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0e6763cc-5078-4e64-889d-ff4d9a839047"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for open-source relational databases should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0a9fbe0d-c5c4-4da8-87d8-f4fd77338835"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for Resource Manager should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c3d20c29-b36d-48fe-808b-99a87530ad99"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for servers should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4da35fc9-c9e7-4960-aec9-797fe7d9051d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for SQL servers on machines should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6581d072-105e-4418-827f-bd446d56421b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for SQL should be enabled for unprotected Azure SQL servers",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for SQL should be enabled for unprotected SQL Managed Instances",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Kubernetes Service clusters should have Defender profile enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a1840de2-8088-4ea8-b153-b4c723e9cb01"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Defender for Containers should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1c988dd6-ade4-430f-a608-2a3e5b0a6d38"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Defender for Storage should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/640d2586-54d2-465f-877f-9ffc1d2109f4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Defender for APIs should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7926a6d1-b268-4586-8197-e8ae90c877d7"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Defender for Azure Cosmos DB should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/adbe85b5-83e6-4350-ab58-bf3a4f736e5e"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Defender for SQL should be enabled for unprotected Synapse workspaces",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d31e5c31-63b2-4f12-887b-e49456834fa1"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.1.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Defender for SQL should be enabled for unprotected PostgreSQL flexible servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d38668f5-d155-42c7-ab3d-9b57b50f8fbf"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.2.22.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Email notification for high severity alerts should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6e2593d9-add6-4083-9c9b-4b7d2188c899"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.2.22.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Email notification to subscription owner for high severity alerts should be enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0b15565f-aa9e-48ba-8619-45960f2c314d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_07.2.22.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Subscriptions should have a contact email address for security issues",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {
          "evaluatedSkuNames": {
            "value": "[parameters('evaluatedSkuNames-1')]"
          }
        },
        "policyDefinitionReferenceId": "API Management services should use a virtual network",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ef619a2c-cc4d-4d03-b2ba-8c94a834d85b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Configuration should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ca610c1d-041c-4332-9d88-7ed3094967c7"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure API for FHIR should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1ee56206-5dd1-42ab-b02d-8aae8b1634ce"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Cache for Redis should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7803067c-7d34-46e3-8c79-0ca68fc4036d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Event Grid domains should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9830b652-8523-49cc-b1b3-e17dce1127ca"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Event Grid topics should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4b90e17e-8448-49db-875e-bd83fb6f804f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {
          "audit_effect": {
            "value": "[parameters('auditEffectAzureKeyVaultsShouldUsePrivateLink')]"
          }
        },
        "policyDefinitionReferenceId": "Azure Key Vaults should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a6abeaec-4d90-4a02-805f-6b26c4d3fbe9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Machine Learning workspaces should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/45e05259-1eb5-4f70-9574-baf73e9d219b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SignalR Service should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2393d2cf-a342-44cd-a2e2-fe0188fd1234"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {
          "evaluatedSkuNames": {
            "value": "[parameters('evaluatedSkuNames-2')]"
          }
        },
        "policyDefinitionReferenceId": "Azure Spring Cloud should use network injection",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af35e2a4-ef96-44e7-a9ae-853dd97032c4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Container registries should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e8eef0a8-67cf-4eb4-9386-14b0e78733d4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Private endpoint connections on Azure SQL Database should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7698e800-9299-47a6-b3b6-5a0fee576eed"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Private endpoint connections on Batch accounts should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/009a0c92-f5b4-4776-9b66-4ed2b4775563"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Private endpoint should be enabled for MariaDB servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0a1302fb-a631-4106-9753-f3d494733990"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Private endpoint should be enabled for MySQL servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7595c971-233d-4bcf-bd18-596129188c49"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Private endpoint should be enabled for PostgreSQL servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0564d078-92f5-4f97-8398-b9f58a51f70b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access should be disabled for MySQL flexible servers",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9299215-ae47-4f50-9c54-8a392f68a052"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access should be disabled for PostgreSQL flexible servers",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5e1de0e3-42cb-4ebc-a86d-61d0c619ca48"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage accounts should restrict network access using virtual network rules",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2a1a9cdf-e04d-429a-8416-3bfb72a1b26f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage accounts should use private link",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6edd7eda-6dd8-40f7-810d-67160c639cd9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "VM Image Builder templates should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2154edb9-244f-4741-9970-660785bccdaa"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Databricks Clusters should disable public IP",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/51c1490f-3319-459c-bbbc-7f391bbed753"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Databricks Workspaces should disable public network access",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0e7849de-b939-4c50-ab48-fc6b0f5eeba2"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Databricks Workspaces should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/258823f2-4595-4b52-b333-cc96192710d8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Machine Learning Workspaces should disable public network access",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/438c38d2-3772-465a-a9cc-7a6666a275ce"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Cosmos DB should disable public network access",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/797b37f7-06b8-444c-b1ad-fc62867f335a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Databricks Workspaces should be in a virtual network",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9c25c9e4-ee12-4882-afd2-11fb9d87893f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Managed Instances should disable public network access",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9dfea752-dd46-4766-aed1-c355fa93fb91"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {
          "endpointType": {
            "value": "[parameters('endpointType-1')]"
          }
        },
        "policyDefinitionReferenceId": "API Management should disable public network access to the service configuration endpoints",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/df73bd95-24da-4a4f-96b9-4e8b94b402bd"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "CosmosDB accounts should use private link",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/58440f8a-10c5-4151-bdce-dfbaad4a20b7"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_10.8.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Machine Learning Computes should be in a virtual network",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7804b5c7-01dc-4723-969b-ae300cc07ff1"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_12.4.4.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Machines should be configured to periodically check for missing system updates",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/bd876905-5b84-4f73-ab2d-2e7a7c4568d9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_12.4.4.C.02"
        ],
        "parameters": {
          "effects": {
            "value": "[parameters('auditEffectAzureMachineLearningComputeInstancesShouldBeRecreated')]"
          }
        },
        "policyDefinitionReferenceId": "Azure Machine Learning compute instances should be recreated to get the latest software updates",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f110a506-2dcb-422e-bcea-d533fc8c35e2"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should have remote debugging turned off",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cb510bfd-1cba-4d9f-a230-cb0976f4bb71"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should have remote debugging turned off",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0e60b895-3786-45da-8377-9c6b4b6ac5f9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Management ports should be closed on your virtual machines",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0a15ec92-a229-4763-bb14-0ea34a568f8d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Role-Based Access Control (RBAC) should be used on Kubernetes Services",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ac4a19c2-fa67-49b4-8ae5-0b2e78c49457"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Guest Configuration extension should be installed on your machines",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ae89ebca-1c92-4898-ac2c-9f63decb045c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes cluster containers should not share host process ID or host IPC namespace",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "excludedContainers": {
            "value": "[parameters('excludedContainers-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes cluster containers should run with a read only root file system",
        "definitionVersion": "6.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/df49d893-a74c-421d-bc95-c663042e5b80"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "excludedContainers": {
            "value": "[parameters('excludedContainers-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          },
          "effect": {
            "value": "[parameters('auditEffectKubernetesClusterShouldNotAllowPrivilegedContainers')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes cluster should not allow privileged containers",
        "definitionVersion": "9.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/95edb821-ddaf-4404-9732-666045e056b4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "effect": {
            "value": "[parameters('auditEffectKubernetesClustersShouldBeAccessibleOnlyOverHTTPS')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes clusters should be accessible only over HTTPS",
        "definitionVersion": "8.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes clusters should disable automounting API credentials",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/423dd1ba-798e-40e4-9c4d-b6902674b423"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          },
          "excludedContainers": {
            "value": "[parameters('excludedContainers-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes clusters should not allow container privilege escalation",
        "definitionVersion": "7.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1c6e92c9-99f0-4e55-9cf2-0c234dc48f99"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "excludedContainers": {
            "value": "[parameters('excludedContainers-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          },
          "excludedImages": {
            "value": "[parameters('excludedImages-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes clusters should not grant CAP_SYS_ADMIN security capabilities",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d2e7ea85-6b44-4317-a0be-1b951587f626"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "excludedNamespaces": {
            "value": "[parameters('excludedNamespaces-1')]"
          },
          "namespaces": {
            "value": "[parameters('namespaces-1')]"
          },
          "warn": {
            "value": "[parameters('warn-1')]"
          },
          "source": {
            "value": "[parameters('source-1')]"
          },
          "labelSelector": {
            "value": "[parameters('labelSelector-1')]"
          }
        },
        "policyDefinitionReferenceId": "Kubernetes clusters should not use the default namespace",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9f061a12-e40d-4183-a00e-171812443373"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Management ports of virtual machines should be protected with just-in-time network access control",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft Antimalware for Azure should be configured to automatically update protection signatures",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c43e4a30-77cb-48ab-a4dd-93f175c63b57"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Microsoft IaaSAntimalware extension should be deployed on Windows servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9b597639-28e4-48eb-b506-56b05d366257"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Virtual machines- Guest Configuration extension should be deployed with system-assigned managed identity",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d26f7642-7545-4e18-9b75-8c9bbdee3a9a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.1.9.C.01"
        ],
        "parameters": {
          "NotAvailableMachineState": {
            "value": "[parameters('NotAvailableMachineState-1')]"
          },
          "IncludeArcMachines": {
            "value": "[parameters('IncludeArcMachines-1')]"
          }
        },
        "policyDefinitionReferenceId": "Windows Defender Exploit Guard should be enabled on your machines",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/bed48b13-6647-468e-aa2f-1af1d3f4dd40"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should have authentication enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/95bccee9-a7f8-4bec-9ee9-62c3473701fc"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should not have CORS configured to allow every resource to access your apps",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5744710e-cc2f-4ee8-8809-3b11e89f4bc9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should only be accessible over HTTPS",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a4af4a39-4135-47fb-b175-47fbdf85311d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should require FTPS only",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should use latest -HTTP Version-",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8c122334-9d20-4eb8-89ea-ac9a705b74ae"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {
          "LinuxJavaVersion": {
            "value": "[parameters('LinuxJavaVersion-1')]"
          }
        },
        "policyDefinitionReferenceId": "App Service apps that use Java should use a specified -Java version-",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/496223c3-ad65-4ecd-878a-bae78737e9ed"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {
          "LinuxPHPVersion": {
            "value": "[parameters('LinuxPHPVersion-1')]"
          }
        },
        "policyDefinitionReferenceId": "App Service apps that use PHP should use a specified -PHP version-",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7261b898-8a84-4db8-9e04-18527132abb3"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {
          "LinuxPythonVersion": {
            "value": "[parameters('LinuxPythonVersion-1')]"
          }
        },
        "policyDefinitionReferenceId": "App Service apps that use Python should use a specified -Python version-",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7008174a-fd10-4ef0-817e-fc820a951d73"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should have authentication enabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should not have CORS configured to allow every resource to access your apps",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0820b7b9-23aa-4725-a1ce-ae4558f718e5"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should only be accessible over HTTPS",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should require FTPS only",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/399b2637-a50f-4f95-96f8-3a145476eb15"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should use latest -HTTP Version-",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e2c1c086-2d84-4019-bff3-c44ccd95113c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {
          "LinuxJavaVersion": {
            "value": "[parameters('LinuxJavaVersion-1')]"
          }
        },
        "policyDefinitionReferenceId": "Function apps that use Java should use a specified -Java version-",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_14.5.8.C.01"
        ],
        "parameters": {
          "LinuxPythonVersion": {
            "value": "[parameters('LinuxPythonVersion-1')]"
          }
        },
        "policyDefinitionReferenceId": "Function apps that use Python should use a specified -Python version-",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7238174a-fd10-4ef0-817e-fc820a951d73"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should use managed identity",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2b9ad585-36bc-4615-b300-fd4435808332"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Database should have Microsoft Entra-only authentication enabled during creation",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/abda6d70-9778-44e7-84a8-06713e6db027"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Cosmos DB database accounts should have local authentication methods disabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5450f5bd-9c72-4390-a9c4-a7aba4edfdd2"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should use managed identity",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0da106f2-4ca3-48e8-bc85-c638fe6aea8f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Service Fabric clusters should only use Azure Active Directory for client authentication",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b54ed75b-3e1a-44ac-a333-05ba39b99ff0"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management calls to API backends should be authenticated",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c15dcc82-b93c-4dcb-9332-fbf121685b54"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage accounts should prevent shared key access",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8c6a50c6-9ffd-4ae7-986f-5fa6111f9a54"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Managed Instance should have Microsoft Entra-only authentication enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0c28c3fb-c244-42d5-a9bf-f35f2999577b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "A Microsoft Entra administrator should be provisioned for MySQL servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/146412e9-005c-472b-9e48-c87b72ac229e"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Synapse Workspaces should use only Microsoft Entra identities for authentication during workspace creation",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2158ddbe-fefa-408e-b43f-d4faef8ff3b8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure MySQL flexible server should have Microsoft Entra Only Authentication enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/40e85574-ef33-47e8-a854-7a65c7500560"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Synapse Workspaces should have Microsoft Entra-only authentication enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6ea81a52-5ca7-4575-9669-eaa910b7edf8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure AI Services resources should have key access disabled (disable local authentication)",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/71ef260a-8f18-47b7-abcb-62d0673d94dc"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Managed Instances should have Microsoft Entra-only authentication enabled during creation",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/78215662-041e-49ed-a9dd-5385911b3a1f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Database should have Microsoft Entra-only authentication enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b3a22bc9-66de-45fb-98fa-00f5df42f41a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "A Microsoft Entra administrator should be provisioned for PostgreSQL servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b4dec045-250a-48c2-b5cc-e0c4eec8b5b4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Machine Learning Computes should have local authentication methods disabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.1.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API endpoints in Azure API Management should be authenticated",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8ac833bd-f505-48d5-887e-c993a1d3eea0"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.3.5.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "A maximum of 3 owners should be designated for your subscription",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4f11b553-d42e-4e3a-89be-32ca364cad4c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Blocked accounts with owner permissions on Azure resources should be removed",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0cfea604-3201-4e14-88fc-fae4c427a6c5"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Blocked accounts with read and write permissions on Azure resources should be removed",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8d7e1fde-fe26-4b5f-8108-f8e432cbc2be"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Guest accounts with owner permissions on Azure resources should be removed",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/339353f6-2387-4a45-abe4-7f529d121046"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Guest accounts with read permissions on Azure resources should be removed",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e9ac8f8e-ce22-4355-8f04-99b911d6be52"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Guest accounts with write permissions on Azure resources should be removed",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/94e1c2ac-cbbe-4cac-a2b5-389c812dee87"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.30.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "There should be more than one owner assigned to your subscription",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/09024ccc-0c5f-475e-9457-b7c0d9ed487b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_16.4.32.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "An Azure Active Directory administrator should be provisioned for SQL servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1f314764-cb73-4fc9-b863-8eca98ac36e9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.1.55.C.03"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management APIs should use only encrypted protocols",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ee7495e7-3ba7-40b6-bfee-c29e22cc75d4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.1.58.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Key Vault keys should have an expiration date",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.1.58.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Key Vault secrets should have an expiration date",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/98728c90-32c7-4049-8429-847dc0f4fe37"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.1.58.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage account keys should not be expired",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/044985bb-afe1-42cd-8a36-9d5d42424537"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.2.19.C.01"
        ],
        "parameters": {
          "minimumRSAKeySize": {
            "value": "[parameters('minimumRSAKeySize-1')]"
          }
        },
        "policyDefinitionReferenceId": "Keys using RSA cryptography should have a specified minimum key size",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/82067dbb-e53b-4e06-b631-546d197452d9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.2.22.C.01"
        ],
        "parameters": {
          "allowedECNames": {
            "value": "[parameters('allowedECNames-1')]"
          }
        },
        "policyDefinitionReferenceId": "Keys using elliptic curve cryptography should have the specified curve names",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ff25f3c8-b739-4538-9d07-3d6d25cfb255"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.2.24.C.01"
        ],
        "parameters": {
          "minimumRSAKeySize": {
            "value": "[parameters('minimumRSAKeySize-1')]"
          }
        },
        "policyDefinitionReferenceId": "Certificates using RSA cryptography should have the specified minimum key size",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cee51871-e572-4576-855c-047c820360f0"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.4.16.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "App Service apps should use the latest TLS version",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.4.16.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Function apps should use the latest TLS version",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f9d614c5-c173-4d56-95a7-b4437057d193"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.4.16.C.01"
        ],
        "parameters": {
          "MinimumTLSVersion": {
            "value": "[parameters('MinimumTLSVersion-1')]"
          },
          "IncludeArcMachines": {
            "value": "[parameters('IncludeArcMachines-1')]"
          }
        },
        "policyDefinitionReferenceId": "Windows machines should be configured to use secure communication protocols",
        "definitionVersion": "4.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5752e6d6-1206-46d8-8ab1-ecc2f71a8112"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.4.16.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure SQL Database should be running TLS version 1.2 or newer",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/32e6bbec-16b6-44c2-be37-c5b672d103cf"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.4.16.C.01"
        ],
        "parameters": {
          "minimumTlsVersion": {
            "value": "[parameters('minimumTlsVersion-2')]"
          }
        },
        "policyDefinitionReferenceId": "Storage accounts should have the specified minimum TLS version",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fe83a0eb-a853-422d-aac2-1bffd182c5d0"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.5.6.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "IP Forwarding on your virtual machine should be disabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/bd352bd5-2853-4985-bf0d-73806b4a5744"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.5.7.C.01"
        ],
        "parameters": {
          "IncludeArcMachines": {
            "value": "[parameters('IncludeArcMachines-1')]"
          }
        },
        "policyDefinitionReferenceId": "Authentication to Linux machines should require SSH keys",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/630c64f9-8b6b-4c64-b511-6544ceff6fd6"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.9.35.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Key Vault should use RBAC permission model",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/12d4fa5e-1f9f-4c21-97a9-b99b3c6611b5"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_17.9.36.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management secret named values should be stored in Azure Key Vault",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f1cc7827-022c-473e-836e-5a51cae0b249"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "All network ports should be restricted on network security groups associated to your virtual machine",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Authorized IP ranges should be defined on Kubernetes Services",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0e246bcf-5f6f-4f87-bc6f-775d4712c7ea"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure AI Services resources should restrict network access",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/037eea7a-bd0a-46c5-9a66-03aea78705d3"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {
          "effect": {
            "value": "[parameters('deny_effect-1')]"
          }
        },
        "policyDefinitionReferenceId": "Azure Cosmos DB accounts should have firewall rules",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {
          "allowedIPAddresses": {
            "value": "[parameters('allowedIPAddresses-1')]"
          },
          "forbiddenIPAddresses": {
            "value": "[parameters('forbiddenIPAddresses-1')]"
          },
          "restrictIPAddresses": {
            "value": "[parameters('restrictIPAddresses-1')]"
          }
        },
        "policyDefinitionReferenceId": "Azure Key Vault should have firewall enabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/55615ac9-af46-4a59-874e-391cc3dfb490"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Container registries should not allow unrestricted network access",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d0793b48-0edc-4296-a390-4c75d1bdfd71"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "CORS should not allow every domain to access your API for FHIR",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0fea8f8a-4169-495d-8307-30ec335f387d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Enforce SSL connection should be enabled for MySQL database servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e802a67a-daf5-4436-9ea6-f6d821dd0c5d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Enforce SSL connection should be enabled for PostgreSQL database servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d158790f-bfb0-486c-8631-2dc6b4e8e6af"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Internet-facing virtual machines should be protected with network security groups",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f6de0be7-9a8a-4b8a-b349-43cf02d22f7c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Non-internet-facing virtual machines should be protected with network security groups",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/bb91dfba-c30d-4263-9add-9c2384e659a6"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Only secure connections to your Azure Cache for Redis should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22bee202-a82f-4305-9a2a-6d7f44d4dedb"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access on Azure SQL Database should be disabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1b8ca024-1d5c-4dec-8995-b1a932b41780"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access should be disabled for MariaDB servers",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fdccbe47-f3e3-4213-ad5d-ea459b2fa077"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access should be disabled for MySQL servers",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d9844e8a-1437-4aeb-a32c-0c992f056095"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Public network access should be disabled for PostgreSQL servers",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b52376f7-9612-48a1-81cd-1ffe4b61032c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Secure transfer to storage accounts should be enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/404c3081-a854-4457-ae30-26a93ef643f9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage accounts should restrict network access",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/34c877ad-507e-4c82-993e-3452a6e0ad3c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.1.13.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Subnets should be associated with a Network Security Group",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e71308d3-144b-4262-b144-efdc3cc90517"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure DDoS Protection should be enabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a7aca53f-2ed4-4466-a25e-0b45ade68efd"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.7.C.02"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Connection throttling should be enabled for PostgreSQL database servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5345bb39-67dc-4960-a1bf-427e16b9a0bd"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "All authorization rules except RootManageSharedAccessKey should be removed from Service Bus namespace",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a1817ec0-a368-432a-8057-8371e17ac6ee"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Web Application Firewall should be enabled for Azure Front Door entry-points",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/055aa869-bc98-4af8-bafc-23f1ab6ffe2c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.8.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Web Application Firewall (WAF) should be enabled for Application Gateway",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/564feb30-bf6a-4854-b4bb-0d2d2d1e6c66"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.8.C.01"
        ],
        "parameters": {
          "modeRequirement": {
            "value": "[parameters('modeRequirement-1')]"
          }
        },
        "policyDefinitionReferenceId": "Web Application Firewall (WAF) should use the specified mode for Application Gateway",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/12430be1-6cc8-4527-a9a8-e3d38f250096"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_18.4.8.C.01"
        ],
        "parameters": {
          "modeRequirement": {
            "value": "[parameters('modeRequirement-1')]"
          }
        },
        "policyDefinitionReferenceId": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/425bea59-a659-4cbb-8d31-34499bd030b8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_22.1.24.C.03"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API endpoints that are unused should be disabled and removed from the Azure API Management service",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c8acafaf-3d23-44d1-9624-978ef0f8652c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_22.1.24.C.04"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Virtual machines and virtual machine scale sets should have encryption at host enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fc4d8e41-e223-45ea-9bf5-eada37891d87"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.10.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management subscriptions should not be scoped to all APIs",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/3aa03346-d8c5-4994-a5bc-7652c2a2aef1"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.10.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management direct management endpoint should not be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b741306c-968e-4b67-b916-5675e5c709f4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.10.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "API Management calls to API backends should not bypass certificate thumbprint or name validation",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/92bb331d-ac71-416a-8c91-02f2cb734ce4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Automation account variables should be encrypted",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/3657f5a0-770e-44a3-b44e-9431ba1e9735"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1f905d99-2ab7-462c-a6b0-f709acca6c8f"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Key Vault Managed HSM should have purge protection enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c39ba22d-4428-4149-b981-70acb31fc383"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Azure Machine Learning workspaces should be encrypted with a customer-managed key",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ba769a63-b8cc-4b2d-abf6-ac33c7204be8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {
          "excludedKinds": {
            "value": "[parameters('excludedKinds-1')]"
          }
        },
        "policyDefinitionReferenceId": "Azure AI Services resources should encrypt data at rest with a customer-managed key (CMK)",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/67121cc7-ff39-4ab8-b7e3-95b84dab487d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Container registries should be encrypted with a customer-managed key",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Disk encryption should be enabled on Azure Data Explorer",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f4b53539-8df9-40e4-86c6-6b607703bd4e"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Key vaults should have deletion protection enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0b60c0b2-2dc2-4e1c-b5c9-abbed971de53"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Key vaults should have soft delete enabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "MySQL servers should use customer-managed keys to encrypt data at rest",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/83cef61d-dbd1-4b20-a4fc-5fbc7da10833"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "PostgreSQL servers should use customer-managed keys to encrypt data at rest",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/18adea5e-f416-4d0f-8aa8-d24321e3e274"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Require encryption on Data Lake Store accounts",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a7ff3161-0087-490a-9ad9-ad6217f4f43a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/617c02be-7f02-4efd-8836-3180d47b6c68"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL managed instances should use customer-managed keys to encrypt data at rest",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ac01ad65-10e5-46df-bdd9-6b0cad13e1d2"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL servers should use customer-managed keys to encrypt data at rest",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0a370ff3-6cab-4e85-8995-295fd854c5b8"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Storage accounts should use customer-managed key for encryption",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6fac406b-40ca-413b-bf8e-0bf964659c25"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.4.9.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Transparent Data Encryption on SQL databases should be enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "App Service apps should have resource logs enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/91a78b24-f231-4a8a-8da9-02c35b2b6510"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Audit usage of custom RBAC roles",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a451c1ef-c6ca-483d-87ed-f49761e3ffb5"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "setting": {
            "value": "[parameters('setting-1')]"
          }
        },
        "policyDefinitionReferenceId": "Auditing on SQL server should be enabled",
        "definitionVersion": "2.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Disconnections should be logged for PostgreSQL database servers.",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e446"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "Log connections should be enabled for PostgreSQL database servers",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/eb6f77b9-bd53-4e35-a23d-7f65d5f0e442"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Azure Data Lake Store should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/057ef27e-665e-4328-8ea3-04b3122bd9fb"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Azure Kubernetes Service should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/245fc9df-fa96-4414-9a0b-3738c2f7341c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Azure Stream Analytics should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f9be5368-9bf5-4b84-9e0a-7850da98bb46"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Batch accounts should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/428256e6-1fac-4f48-a757-df34c2b3336d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Data Lake Analytics should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c95c74d9-38fe-4f0d-af86-0c7d626a315c"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Event Hub should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/83a214f7-d01a-484b-91a9-ed54470c9a6a"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in IoT Hub should be enabled",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/383856f8-de7f-44a2-81fc-e5135b5c2aa4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Key Vault should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cf820ca0-f99e-4f3e-84fb-66e913812d21"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Logic Apps should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/34f95f76-5386-4de7-b824-0d8478470c9d"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Search services should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b4330a05-a843-4bc8-bf9a-cacce50c67f4"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Service Bus should be enabled",
        "definitionVersion": "5.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f8d36e2f-389b-4ee4-898d-21aeb69a0f45"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL servers with auditing to storage account destination should be configured with 90 days retention or higher",
        "definitionVersion": "3.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/89099bee-89e0-4b26-a5f4-165451757743"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {},
        "policyDefinitionReferenceId": "SQL server-targeted autoprovisioning should be enabled for SQL servers on machines plan",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c6283572-73bb-4deb-bf2c-7a2b8f7462cb"
      },
      {
        "groupNames": [
          "New_Zealand_ISM_23.5.11.C.01"
        ],
        "parameters": {
          "requiredRetentionDays": {
            "value": "[parameters('requiredRetentionDays-1')]"
          }
        },
        "policyDefinitionReferenceId": "Resource logs in Azure Machine Learning Workspaces should be enabled",
        "definitionVersion": "1.*.*",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/afe0c3be-ba3b-4544-ba52-0c99672a8ad6"
      }
    ],
    "versions": [
      "1.11.0",
      "1.10.0",
      "1.9.0",
      "1.8.0",
      "1.7.0",
      "1.6.0",
      "1.5.0",
      "1.4.0",
      "1.3.0",
      "1.2.1",
      "1.2.0-PREVIEW",
      "1.1.0-PREVIEW",
      "1.0.0-PREVIEW"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/4f5b1359-4f8e-4d7c-9733-ea47fcde891e",
  "name": "4f5b1359-4f8e-4d7c-9733-ea47fcde891e"
}
Bylaw4f5b1359-4f8e-4d7c-9733-ea47fcde891e.bylaw.ps1 · 2072 lines
# Converted from NewZealand_ISM.json by ConvertTo-Bylaw.
Initiative '4f5b1359-4f8e-4d7c-9733-ea47fcde891e' {

    Properties @{
        DisplayName   = 'New Zealand ISM'
        Description   = 'NZISM v3.8. The New Zealand Information Security Manual (NZISM) details processes and controls essential for the protection of all New Zealand Government information and systems. This initiative includes policies that address a subset of NZISM controls. Additional policies will be added in upcoming releases. For full details on controls, please refer to https://www.nzism.gcsb.govt.nz/ism-document. This policy set includes definitions that have a Deny effect by default.'
        Category      = 'Regulatory Compliance'
        Version       = '1.11.0'
        PolicyVersion = '1.11.0'
    }

    Parameter Namespaces_1 @{
        Type        = 'Array'
        Default     = @()
        DisplayName = 'Namespace inclusions'
        Description = 'List of Kubernetes namespaces to only include in policy evaluation. An empty list means the policy is applied to all resources in all namespaces.'
        JsonName    = 'namespaces-1'
    }
    Parameter EvaluatedSkuNames_2 @{
        Type          = 'Array'
        AllowedValues = @('Standard', 'Enterprise')
        Default       = @('Standard', 'Enterprise')
        DisplayName   = 'Azure Spring Cloud SKU Names'
        Description   = 'List of Azure Spring Cloud SKUs against which this policy will be evaluated.'
        JsonName      = 'evaluatedSkuNames-2'
    }
    Parameter Warn_1 @{
        Type        = 'Boolean'
        Default     = $false
        DisplayName = 'Warn'
        Description = 'Whether or not to return warnings back to the user in the kubectl cli'
        JsonName    = 'warn-1'
    }
    Parameter NotAvailableMachineState_1 @{
        AllowedValues = @('Compliant', 'Non-Compliant')
        Default       = 'Compliant'
        DisplayName   = 'Status if Windows Defender is not available on machine'
        Description   = 'Windows Defender Exploit Guard is only available starting with Windows 10/Windows Server with update 1709. Setting this value to ''Non-Compliant'' shows machines with older versions on which Windows Defender Exploit Guard is not available (such as Windows Server 2012 R2) as non-compliant. Setting this value to ''Compliant'' shows these machines as compliant.'
        JsonName      = 'NotAvailableMachineState-1'
    }
    Parameter Setting_1 @{
        AllowedValues = @('enabled', 'disabled')
        Default       = 'enabled'
        DisplayName   = 'Desired Auditing setting'
        JsonName      = 'setting-1'
    }
    Parameter EvaluatedSkuNames_1 @{
        Type          = 'Array'
        AllowedValues = @('Developer', 'Basic', 'Standard', 'Premium', 'Consumption')
        Default       = @('Developer', 'Premium')
        DisplayName   = 'API Management SKU Names'
        Description   = 'List of API Management SKUs against which this policy will be evaluated.'
        JsonName      = 'evaluatedSkuNames-1'
    }
    Parameter AllowedECNames_1 @{
        Type          = 'Array'
        AllowedValues = @('P-256', 'P-256K', 'P-384', 'P-521')
        Default       = @('P-256', 'P-256K', 'P-384', 'P-521')
        DisplayName   = 'Allowed elliptic curve names'
        Description   = 'The list of allowed curve names for elliptic curve cryptography certificates.'
        JsonName      = 'allowedECNames-1'
    }
    Parameter LinuxPythonVersion_1 @{
        Default     = ''
        DisplayName = 'Linux Python version'
        Description = 'Specify a supported Python version for App Service'
        JsonName    = 'LinuxPythonVersion-1'
    }
    Parameter ForbiddenIPAddresses_1 @{
        Type        = 'Array'
        Default     = @()
        DisplayName = 'Forbidden IP addresses'
        Description = 'Array with forbidden public IP addresses. An empty array is evaluated as there are no forbidden IP addresses.'
        JsonName    = 'forbiddenIPAddresses-1'
    }
    Parameter ExcludedKinds_1 @{
        Type        = 'Array'
        Default     = @('CognitiveServices', 'ContentSafety', 'ImmersiveReader', 'HealthInsights', 'LUIS.Authoring', 'LUIS', 'QnAMaker', 'QnAMaker.V2', 'AIServices', 'MetricsAdvisor', 'SpeechTranslation', 'Internal.AllInOne', 'ConversationalLanguageUnderstanding', 'knowledge', 'TranscriptionIntelligence', 'HealthDecisionSupport')
        DisplayName = 'Excluded Kinds'
        Description = 'The list of excluded API kinds for customer-managed key, default is the list of API kinds that don''t have data stored in Cognitive Services'
        JsonName    = 'excludedKinds-1'
    }
    Parameter ExcludedNamespaces_1 @{
        Type        = 'Array'
        Default     = @('kube-system', 'gatekeeper-system', 'azure-arc', 'azure-extensions-usage-system')
        DisplayName = 'Namespace exclusions'
        Description = 'List of Kubernetes namespaces to exclude from policy evaluation. System namespaces "kube-system", "gatekeeper-system" and "azure-arc" are always excluded by design. "azure-extensions-usage-system" is optional to remove.'
        JsonName    = 'excludedNamespaces-1'
    }
    Parameter EndpointType_1 @{
        AllowedValues = @('Management', 'Git', 'Gateway Configuration')
        Default       = 'Management'
        DisplayName   = 'Public Endpoint Type'
        Description   = 'Public Endpoint Type for which to enforce the access check'
        JsonName      = 'endpointType-1'
    }
    Parameter AllowedIPAddresses_1 @{
        Type        = 'Array'
        Default     = @()
        DisplayName = 'Allowed IP addresses'
        Description = 'Array with allowed public IP addresses. An empty array is evaluated as to allow all IPs.'
        JsonName    = 'allowedIPAddresses-1'
    }
    Parameter MinimumRSAKeySize_1 @{
        Type          = 'Integer'
        AllowedValues = @(2048, 3072, 4096)
        Default       = 2048
        DisplayName   = 'Minimum RSA key size'
        Description   = 'The minimum key size for RSA keys.'
        JsonName      = 'minimumRSAKeySize-1'
    }
    Parameter IncludeArcMachines_1 @{
        AllowedValues = @('true', 'false')
        Default       = 'false'
        DisplayName   = 'Include Arc connected servers'
        Description   = 'By selecting this option, you agree to be charged monthly per Arc connected machine.'
        JsonName      = 'IncludeArcMachines-1'
        Metadata      = [ordered]@{ portalReview = 'true' }
    }
    Parameter RequiredRetentionDays_1 @{
        Default     = '365'
        DisplayName = 'Required retention (days)'
        Description = 'The required resource logs retention in days'
        JsonName    = 'requiredRetentionDays-1'
    }
    Parameter ExcludedContainers_1 @{
        Type        = 'Array'
        Default     = @()
        DisplayName = 'Containers exclusions'
        Description = 'The list of InitContainers and Containers to exclude from policy evaluation. The identify is the name of container. Use an empty list to apply this policy to all containers in all namespaces.'
        JsonName    = 'excludedContainers-1'
    }
    Parameter ModeRequirement_1 @{
        AllowedValues = @('Prevention', 'Detection')
        Default       = 'Detection'
        DisplayName   = 'Mode Requirement'
        Description   = 'Mode required for all WAF policies'
        JsonName      = 'modeRequirement-1'
    }
    Parameter MinimumTLSVersion_1 @{
        AllowedValues = @('1.1', '1.2')
        Default       = '1.2'
        DisplayName   = 'Minimum TLS version'
        Description   = 'The minimum TLS protocol version that should be enabled. Windows machines with lower TLS versions will be marked as non-compliant.'
        JsonName      = 'MinimumTLSVersion-1'
    }
    Parameter ExcludedImages_1 @{
        Type        = 'Array'
        Default     = @()
        DisplayName = 'Image exclusions'
        Description = 'The list of InitContainers and Containers to exclude from policy evaluation. The identifier is the image of container. Prefix-matching can be signified with `*`. For example: `myregistry.azurecr.io/istio:*`. It is recommended that users use the fully-qualified Docker image name (e.g. start with a domain name) in order to avoid unexpectedly exempting images from an untrusted repository.'
        JsonName    = 'excludedImages-1'
        Metadata    = [ordered]@{ portalReview = $true }
    }
    Parameter RestrictIPAddresses_1 @{
        AllowedValues = @('Yes', 'No')
        Default       = 'No'
        DisplayName   = 'Would you like to restrict specific IP addresses?'
        Description   = 'Select (Yes) to allow or forbid a list of IP addresses. If (No), the list of IP addresses won''t have any effect in the policy enforcement'
        JsonName      = 'restrictIPAddresses-1'
    }
    Parameter Source_1 @{
        AllowedValues = @('All', 'Generated', 'Original')
        Default       = 'Original'
        DisplayName   = 'Source'
        Description   = 'The source k8s object for constraint evaluation. ''Original'' means only evaluate against the specific GroupVersionKind specified in the policy definition. ''Generated'' means only evaluate against k8s objects generated by Gatekeeper ExpansionTemplates. ''All'' means evaluate against both the original object and any generated ones.'
        JsonName      = 'source-1'
    }
    Parameter LinuxPHPVersion_1 @{
        Default     = ''
        DisplayName = 'Linux PHP version'
        Description = 'Specify a supported PHP version for App Service'
        JsonName    = 'LinuxPHPVersion-1'
    }
    Parameter LabelSelector_1 @{
        Type        = 'Object'
        Default     = [ordered]@{  }
        DisplayName = 'Kubernetes label selector'
        Description = 'Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources.'
        JsonName    = 'labelSelector-1'
        Schema      = [ordered]@{
            description = 'A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.'
            type = 'object'
            properties = [ordered]@{
                matchLabels = [ordered]@{
                    description = 'matchLabels is a map of {key,value} pairs.'
                    type = 'object'
                    additionalProperties = [ordered]@{ type = 'string' }
                    minProperties = 1
                }
                matchExpressions = [ordered]@{
                    description = 'matchExpressions is a list of values, a key, and an operator.'
                    type = 'array'
                    items = [ordered]@{
                        type = 'object'
                        properties = [ordered]@{
                            key = [ordered]@{
                                description = 'key is the label key that the selector applies to.'
                                type = 'string'
                            }
                            operator = [ordered]@{
                                description = 'operator represents a key''s relationship to a set of values.'
                                type = 'string'
                                enum = @('In', 'NotIn', 'Exists', 'DoesNotExist')
                            }
                            values = [ordered]@{
                                description = 'values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.'
                                type = 'array'
                                items = [ordered]@{ type = 'string' }
                            }
                        }
                        required = @('key', 'operator')
                        additionalProperties = $false
                    }
                    minItems = 1
                }
            }
            additionalProperties = $false
        }
    }
    Parameter MinimumTlsVersion_2 @{
        AllowedValues = @('TLS1_0', 'TLS1_1', 'TLS1_2')
        Default       = 'TLS1_2'
        DisplayName   = 'Minimum TLS Version'
        Description   = 'Minimum version of TLS required to access data in this storage account'
        JsonName      = 'minimumTlsVersion-2'
    }
    Parameter Audit_effect_1 @{
        AllowedValues = @('Audit', 'Disabled')
        Default       = 'Disabled'
        DisplayName   = 'A deprecate audit effect parameter'
        Description   = 'Enable or disable the execution of the policy'
        JsonName      = 'audit_effect-1'
        Metadata      = [ordered]@{ deprecated = $true }
    }
    Parameter Audit_effect_2 @{
        AllowedValues = @('audit', 'Audit', 'deny', 'Deny', 'disabled', 'Disabled')
        Default       = 'Disabled'
        DisplayName   = 'A deprecate audit or deny effect parameter'
        Description   = '''Audit'' allows a non-compliant resource to be created, but flags it as non-compliant. ''Deny'' blocks the resource creation. ''Disable'' turns off the policy.'
        JsonName      = 'audit-effect-2'
        Metadata      = [ordered]@{ portalReview = $true; deprecated = $true }
    }
    Parameter AuditEffectAzureKeyVaultsShouldUsePrivateLink @{
        AllowedValues = @('Audit', 'Disabled')
        Default       = 'Audit'
        DisplayName   = 'Effect for policy: Azure Key Vaults should use private link'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter AuditEffectAzureMachineLearningComputeInstancesShouldBeRecreated @{
        AllowedValues = @('Audit', 'Disabled')
        Default       = 'Audit'
        DisplayName   = 'Effect for policy: Azure Machine Learning compute instances should be recreated to get the latest software updates'
        Description   = 'Enable or disable the execution of the policy'
    }
    Parameter AuditEffectKubernetesClusterShouldNotAllowPrivilegedContainers @{
        AllowedValues = @('audit', 'Audit', 'deny', 'Deny', 'disabled', 'Disabled')
        Default       = 'Audit'
        DisplayName   = 'Effect for policy: Kubernetes cluster should not allow privileged containers'
        Description   = '''Audit'' allows a non-compliant resource to be created, but flags it as non-compliant. ''Deny'' blocks the resource creation. ''Disable'' turns off the policy.'
        Metadata      = [ordered]@{ portalReview = $true }
    }
    Parameter AuditEffectKubernetesClustersShouldBeAccessibleOnlyOverHTTPS @{
        AllowedValues = @('audit', 'Audit', 'deny', 'Deny', 'disabled', 'Disabled')
        Default       = 'Audit'
        DisplayName   = 'Effect for policy: Kubernetes clusters should be accessible only over HTTPS'
        Description   = '''Audit'' allows a non-compliant resource to be created, but flags it as non-compliant. ''Deny'' blocks the resource creation. ''Disable'' turns off the policy.'
        Metadata      = [ordered]@{ portalReview = $true }
    }
    Parameter Deny_effect_1 @{
        AllowedValues = @('Audit', 'Deny', 'Disabled')
        Default       = 'Deny'
        DisplayName   = 'Audit, deny or disable the execution of the policy'
        Description   = 'Audit, deny or disable the execution of the policy'
        JsonName      = 'deny_effect-1'
    }
    Parameter LinuxJavaVersion_1 @{
        Default     = ''
        DisplayName = 'Linux Java version'
        Description = 'Specify a supported Java version for App Service'
        JsonName    = 'LinuxJavaVersion-1'
    }

    DefinitionGroup 'New_Zealand_ISM_06.2.5.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.2.5.C.01'
        Category             = '06. Information security monitoring'
        Description          = 'Agencies SHOULD conduct vulnerability assessments in order to establish a baseline. This SHOULD be done: before a system is first used; after any significant incident; after a significant change to the system; after changes to standards, policies and guidelines; when specified by an ITSM or system owner.'
    }
    DefinitionGroup 'New_Zealand_ISM_06.2.6.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.2.6.C.01'
        Category             = '06. Information security monitoring'
        Description          = 'Agencies SHOULD analyse and treat all vulnerabilities and subsequent security risks to their systems identified during a vulnerability assessment.'
    }
    DefinitionGroup 'New_Zealand_ISM_06.4.5.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_06.4.5.C.01'
        Category             = '06. Information security monitoring'
        Description          = 'Agencies MUST determine availability and recovery requirements for their systems and implement measures consistent with the agency''s SRMP to support them.'
    }
    DefinitionGroup 'New_Zealand_ISM_07.1.7.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_07.1.7.C.02'
        Category             = '07. Information Security Incidents'
        Description          = 'Agencies SHOULD develop, implement and maintain tools and procedures covering the detection of potential information security incidents, incorporating: user awareness and training; counter-measures against malicious code, known attack methods and types; intrusion detection strategies; data egress monitoring & control; access control anomalies; audit analysis; system integrity checking; and vulnerability assessments.'
    }
    DefinitionGroup 'New_Zealand_ISM_07.2.22.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_07.2.22.C.01'
        Category             = '07. Information Security Incidents'
        Description          = 'Agencies that outsource their information technology services and functions MUST ensure that the service provider advises and consults with the agency when an information security incident occurs.'
    }
    DefinitionGroup 'New_Zealand_ISM_10.8.35.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_10.8.35.C.01'
        Category             = '10. Infrastructure'
        Description          = 'Security architectures MUST apply the principles of separation and segregation.'
    }
    DefinitionGroup 'New_Zealand_ISM_12.4.4.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_12.4.4.C.02'
        Category             = '12. Product Security'
        Description          = 'Agencies MUST implement a patch management strategy, including an evaluation or testing process.'
    }
    DefinitionGroup 'New_Zealand_ISM_14.1.8.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.1.8.C.01'
        Category             = '14. Software security'
        Description          = 'Agencies SHOULD develop a hardened SOE for workstations and servers, covering several requirements detailed here https://www.nzism.gcsb.govt.nz/ism-document#SubSection-15020'
    }
    DefinitionGroup 'New_Zealand_ISM_14.1.9.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.1.9.C.01'
        Category             = '14. Software security'
        Description          = 'Agencies MUST ensure that for all servers and workstations: a technical specification is agreed for each platform with specified controls; a standard configuration created and updated for each operating system type and version; system users do not have the ability to install or disable software without approval; and installed software and operating system patching is up to date.'
    }
    DefinitionGroup 'New_Zealand_ISM_14.2.4.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.2.4.C.01'
        Category             = '14. Software security'
        Description          = 'Agencies SHOULD implement application allow listing as part of the SOE for workstations, servers and any other network device.'
    }
    DefinitionGroup 'New_Zealand_ISM_14.5.8.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_14.5.8.C.01'
        Category             = '14. Software security'
        Description          = 'Agencies SHOULD follow the documentation provided in the Open Web Application Security Project guide to building secure Web applications and Web services.'
    }
    DefinitionGroup 'New_Zealand_ISM_16.1.32.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.1.32.C.01'
        Category             = '16. Access Control and Passwords'
        Description          = 'Agencies MUST ensure that all system users are: uniquely identifiable; and authenticated on each occasion that access is granted to a system.'
    }
    DefinitionGroup 'New_Zealand_ISM_16.3.5.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.3.5.C.02'
        Category             = '16. Access Control and Passwords'
        Description          = 'Agencies SHOULD: ensure strong change management practices are implemented; ensure that the use of privileged accounts is controlled and accountable; ensure that system administrators are assigned an individual account for the performance of their administration tasks; keep privileged accounts to a minimum; and allow the use of privileged accounts for  administrative work only.'
    }
    DefinitionGroup 'New_Zealand_ISM_16.4.30.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.4.30.C.01'
        Category             = '16. Access Control and Passwords'
        Description          = 'Agencies MUST establish a Privileged Access Management (PAM) policy.'
    }
    DefinitionGroup 'New_Zealand_ISM_16.4.32.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_16.4.32.C.01'
        Category             = '16. Access Control and Passwords'
        Description          = 'As part of a Privileged Access Management (PAM) policy, agencies MUST establish and implement a strong approval and authorisation process before any privileged access credentials are issued.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.1.55.C.03' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.1.55.C.03'
        Category             = '17. Cryptography'
        Description          = 'Agencies MUST encrypt aggregated agency data using an approved algorithm and protocol over insecure or unprotected networks such as the Internet, public infrastructure or non-agency controlled networks when the compromise of the aggregated data would present a significant impact to the agency.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.1.58.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.1.58.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies SHOULD establish cryptoperiods for all keys and cryptographic implementations in their systems and operations.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.2.19.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.19.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies using DH, for the approved use of agreeing on encryption session keys, MUST use a modulus of at least 3072 bits.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.2.22.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.22.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies using ECDH, for the approved use of agreeing on encryption session keys, MUST implement the curve P-384 (prime moduli).'
    }
    DefinitionGroup 'New_Zealand_ISM_17.2.24.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.2.24.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies using RSA, for the approved use of digital signatures and passing encryption session keys or similar keys, MUST use a modulus of at least 3072 bits.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.4.16.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.4.16.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies SHOULD use the current version of TLS (version 1.3).'
    }
    DefinitionGroup 'New_Zealand_ISM_17.5.6.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.5.6.C.01'
        Category             = '17. Cryptography'
        Description          = 'The settings that SHOULD be implemented when using SSH areoutlined on the NCSC website for this control https://www.nzism.gcsb.govt.nz/ism-document#SubSection-15978'
    }
    DefinitionGroup 'New_Zealand_ISM_17.5.7.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.5.7.C.01'
        Category             = '17. Cryptography'
        Description          = 'Agencies SHOULD use public key-based authentication before using password-based authentication.'
    }
    DefinitionGroup 'New_Zealand_ISM_17.9.35.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.9.35.C.01'
        Category             = '17. Cryptography'
        Description          = 'Before personnel are granted cryptographic system administrator access, agencies MUST ensure the requirements for access are met.  For a full list see the control published here https://www.nzism.gcsb.govt.nz/ism-document#SubSection-16122'
    }
    DefinitionGroup 'New_Zealand_ISM_17.9.36.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_17.9.36.C.02'
        Category             = '17. Cryptography'
        Description          = 'Areas in which cryptographic system material is used SHOULD be separated from other areas and designated as a controlled cryptography area.'
    }
    DefinitionGroup 'New_Zealand_ISM_18.1.10.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.1.10.C.01'
        Category             = '18. Network security'
        Description          = 'Agencies SHOULD keep the network configuration under the control of a network management authority.'
    }
    DefinitionGroup 'New_Zealand_ISM_18.1.13.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.1.13.C.02'
        Category             = '18. Network security'
        Description          = 'Agencies SHOULD implement network access controls on all networks.'
    }
    DefinitionGroup 'New_Zealand_ISM_18.4.7.C.02' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.4.7.C.02'
        Category             = '18. Network security'
        Description          = 'Agencies SHOULD develop, implement and maintain an intrusion detection strategy that includes: appropriate intrusion detection mechanisms, including network-based IDS/IPSs and host-based IDS/IPSs as necessary; the audit analysis of event logs, including IDS/IPS logs; a periodic audit of intrusion detection procedures; information security awareness and training programs; and a documented IRP.'
    }
    DefinitionGroup 'New_Zealand_ISM_18.4.8.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_18.4.8.C.01'
        Category             = '18. Network security'
        Description          = 'Agencies SHOULD deploy IDS/IPSs in all gateways between the agency�s networks and unsecure public networks or BYOD wireless networks.'
    }
    DefinitionGroup 'New_Zealand_ISM_22.1.24.C.03' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_22.1.24.C.03'
        Category             = '22. Enterprise systems security'
        Description          = 'Agencies intending to adopt cloud technologies or services SHOULD apply controls to detect and prevent unauthorised data transfers and multiple or large scale data transfers to offshore locations and entities.'
    }
    DefinitionGroup 'New_Zealand_ISM_22.1.24.C.04' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_22.1.24.C.04'
        Category             = '22. Enterprise systems security'
        Description          = 'Agencies intending to adopt cloud technologies or services SHOULD consider the use of encryption for data in transit and at rest.'
    }
    DefinitionGroup 'New_Zealand_ISM_23.3.19.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.3.19.C.01'
        Category             = '23. Public Cloud Security'
        Description          = 'Where administration interfaces or portals are accessible from the internet, privileged accounts MUST be configured to use multiple factors of authentication.'
    }
    DefinitionGroup 'New_Zealand_ISM_23.4.10.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.4.10.C.01'
        Category             = '23. Public Cloud Security'
        Description          = 'Agencies MUST apply the principle of least privilege and configure service endpoints to restrict access to authorised parties.'
    }
    DefinitionGroup 'New_Zealand_ISM_23.4.9.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.4.9.C.01'
        Category             = '23. Public Cloud Security'
        Description          = 'For each cloud service, agencies MUST ensure that the mechanisms used to protect data meet agency requirements.'
    }
    DefinitionGroup 'New_Zealand_ISM_23.5.11.C.01' @{
        AdditionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/New_Zealand_ISM_23.5.11.C.01'
        Category             = '23. Public Cloud Security'
        Description          = 'Agencies MUST ensure that logs associated with public cloud services are collected, protected, and that their integrity can be confirmed in accordance with the agency�s documented logging requirements.'
    }

    PolicyDefinition @{
        Id          = '501541f7-f7e7-4cd6-868c-4190fdad3ac9'
        ReferenceId = 'A vulnerability assessment solution should be enabled on your virtual machines'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_06.2.5.C.01'
    }

    PolicyDefinition @{
        Id          = '1b7aa243-30e4-4c9e-bca8-d0d3022b634a'
        ReferenceId = 'Vulnerability assessment should be enabled on SQL Managed Instance'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.5.C.01'
    }

    PolicyDefinition @{
        Id          = 'ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9'
        ReferenceId = 'Vulnerability assessment should be enabled on your SQL servers'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_06.2.5.C.01'
    }

    PolicyDefinition @{
        Id          = 'feedbf84-6b99-488c-acc2-71c829aa5ffc'
        ReferenceId = 'SQL databases should have vulnerability findings resolved'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = '6ba6d016-e7c3-4842-b8f2-4992ebc0d72d'
        ReferenceId = 'SQL servers on machines should have vulnerability findings resolved'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = '3ac7c827-eea2-4bde-acc7-9568cd320efa'
        ReferenceId = 'Machines should have secret findings resolved'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = '090c7b07-b4ed-4561-ad20-e9075f3ccaff'
        ReferenceId = 'Azure registry container images should have vulnerabilities resolved (powered by Microsoft Defender Vulnerability Management)'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = '17f4b1cc-c55c-4d94-b1f9-2978f6ac2957'
        ReferenceId = 'Azure running container images should have vulnerabilities resolved (powered by Microsoft Defender Vulnerability Management)'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = 'c9ddb292-b203-4738-aead-18e2716e858f'
        ReferenceId = 'Configure Microsoft Defender for Containers to be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.2.6.C.01'
    }

    PolicyDefinition @{
        Id          = '0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56'
        ReferenceId = 'Audit virtual machines without disaster recovery configured'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_06.4.5.C.01'
    }

    PolicyDefinition @{
        Id          = '2913021d-f2fd-4f3d-b958-22354e2bdbcb'
        ReferenceId = 'Azure Defender for App Service should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '7fe3b40f-802b-4cdd-8bd4-fd799c948cc2'
        ReferenceId = 'Azure Defender for Azure SQL Database servers should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '0e6763cc-5078-4e64-889d-ff4d9a839047'
        ReferenceId = 'Azure Defender for Key Vault should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '0a9fbe0d-c5c4-4da8-87d8-f4fd77338835'
        ReferenceId = 'Azure Defender for open-source relational databases should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'c3d20c29-b36d-48fe-808b-99a87530ad99'
        ReferenceId = 'Azure Defender for Resource Manager should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '4da35fc9-c9e7-4960-aec9-797fe7d9051d'
        ReferenceId = 'Azure Defender for servers should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '6581d072-105e-4418-827f-bd446d56421b'
        ReferenceId = 'Azure Defender for SQL servers on machines should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9'
        ReferenceId = 'Azure Defender for SQL should be enabled for unprotected Azure SQL servers'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9'
        ReferenceId = 'Azure Defender for SQL should be enabled for unprotected SQL Managed Instances'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'a1840de2-8088-4ea8-b153-b4c723e9cb01'
        ReferenceId = 'Azure Kubernetes Service clusters should have Defender profile enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '1c988dd6-ade4-430f-a608-2a3e5b0a6d38'
        ReferenceId = 'Microsoft Defender for Containers should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '640d2586-54d2-465f-877f-9ffc1d2109f4'
        ReferenceId = 'Microsoft Defender for Storage should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '7926a6d1-b268-4586-8197-e8ae90c877d7'
        ReferenceId = 'Microsoft Defender for APIs should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'adbe85b5-83e6-4350-ab58-bf3a4f736e5e'
        ReferenceId = 'Microsoft Defender for Azure Cosmos DB should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'd31e5c31-63b2-4f12-887b-e49456834fa1'
        ReferenceId = 'Microsoft Defender for SQL should be enabled for unprotected Synapse workspaces'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'd38668f5-d155-42c7-ab3d-9b57b50f8fbf'
        ReferenceId = 'Azure Defender for SQL should be enabled for unprotected PostgreSQL flexible servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.1.7.C.02'
    }

    PolicyDefinition @{
        Id          = '6e2593d9-add6-4083-9c9b-4b7d2188c899'
        ReferenceId = 'Email notification for high severity alerts should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.2.22.C.01'
    }

    PolicyDefinition @{
        Id          = '0b15565f-aa9e-48ba-8619-45960f2c314d'
        ReferenceId = 'Email notification to subscription owner for high severity alerts should be enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_07.2.22.C.01'
    }

    PolicyDefinition @{
        Id          = '4f4f78b8-e367-4b10-a341-d9a4ad5cf1c7'
        ReferenceId = 'Subscriptions should have a contact email address for security issues'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_07.2.22.C.01'
    }

    PolicyDefinition @{
        Id          = 'ef619a2c-cc4d-4d03-b2ba-8c94a834d85b'
        ReferenceId = 'API Management services should use a virtual network'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
        Parameters  = @{
            evaluatedSkuNames = (Param EvaluatedSkuNames_1)
        }
    }

    PolicyDefinition @{
        Id          = 'ca610c1d-041c-4332-9d88-7ed3094967c7'
        ReferenceId = 'App Configuration should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '1ee56206-5dd1-42ab-b02d-8aae8b1634ce'
        ReferenceId = 'Azure API for FHIR should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '7803067c-7d34-46e3-8c79-0ca68fc4036d'
        ReferenceId = 'Azure Cache for Redis should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '9830b652-8523-49cc-b1b3-e17dce1127ca'
        ReferenceId = 'Azure Event Grid domains should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '4b90e17e-8448-49db-875e-bd83fb6f804f'
        ReferenceId = 'Azure Event Grid topics should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'a6abeaec-4d90-4a02-805f-6b26c4d3fbe9'
        ReferenceId = 'Azure Key Vaults should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
        Parameters  = @{
            audit_effect = (Param AuditEffectAzureKeyVaultsShouldUsePrivateLink)
        }
    }

    PolicyDefinition @{
        Id          = '45e05259-1eb5-4f70-9574-baf73e9d219b'
        ReferenceId = 'Azure Machine Learning workspaces should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '2393d2cf-a342-44cd-a2e2-fe0188fd1234'
        ReferenceId = 'Azure SignalR Service should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'af35e2a4-ef96-44e7-a9ae-853dd97032c4'
        ReferenceId = 'Azure Spring Cloud should use network injection'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
        Parameters  = @{
            evaluatedSkuNames = (Param EvaluatedSkuNames_2)
        }
    }

    PolicyDefinition @{
        Id          = 'e8eef0a8-67cf-4eb4-9386-14b0e78733d4'
        ReferenceId = 'Container registries should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '7698e800-9299-47a6-b3b6-5a0fee576eed'
        ReferenceId = 'Private endpoint connections on Azure SQL Database should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '009a0c92-f5b4-4776-9b66-4ed2b4775563'
        ReferenceId = 'Private endpoint connections on Batch accounts should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '0a1302fb-a631-4106-9753-f3d494733990'
        ReferenceId = 'Private endpoint should be enabled for MariaDB servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '7595c971-233d-4bcf-bd18-596129188c49'
        ReferenceId = 'Private endpoint should be enabled for MySQL servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '0564d078-92f5-4f97-8398-b9f58a51f70b'
        ReferenceId = 'Private endpoint should be enabled for PostgreSQL servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'c9299215-ae47-4f50-9c54-8a392f68a052'
        ReferenceId = 'Public network access should be disabled for MySQL flexible servers'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '5e1de0e3-42cb-4ebc-a86d-61d0c619ca48'
        ReferenceId = 'Public network access should be disabled for PostgreSQL flexible servers'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '2a1a9cdf-e04d-429a-8416-3bfb72a1b26f'
        ReferenceId = 'Storage accounts should restrict network access using virtual network rules'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '6edd7eda-6dd8-40f7-810d-67160c639cd9'
        ReferenceId = 'Storage accounts should use private link'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '2154edb9-244f-4741-9970-660785bccdaa'
        ReferenceId = 'VM Image Builder templates should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '51c1490f-3319-459c-bbbc-7f391bbed753'
        ReferenceId = 'Azure Databricks Clusters should disable public IP'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '0e7849de-b939-4c50-ab48-fc6b0f5eeba2'
        ReferenceId = 'Azure Databricks Workspaces should disable public network access'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '258823f2-4595-4b52-b333-cc96192710d8'
        ReferenceId = 'Azure Databricks Workspaces should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '438c38d2-3772-465a-a9cc-7a6666a275ce'
        ReferenceId = 'Azure Machine Learning Workspaces should disable public network access'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '797b37f7-06b8-444c-b1ad-fc62867f335a'
        ReferenceId = 'Azure Cosmos DB should disable public network access'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '9c25c9e4-ee12-4882-afd2-11fb9d87893f'
        ReferenceId = 'Azure Databricks Workspaces should be in a virtual network'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '9dfea752-dd46-4766-aed1-c355fa93fb91'
        ReferenceId = 'Azure SQL Managed Instances should disable public network access'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'df73bd95-24da-4a4f-96b9-4e8b94b402bd'
        ReferenceId = 'API Management should disable public network access to the service configuration endpoints'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
        Parameters  = @{
            endpointType = (Param EndpointType_1)
        }
    }

    PolicyDefinition @{
        Id          = '58440f8a-10c5-4151-bdce-dfbaad4a20b7'
        ReferenceId = 'CosmosDB accounts should use private link'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = '7804b5c7-01dc-4723-969b-ae300cc07ff1'
        ReferenceId = 'Azure Machine Learning Computes should be in a virtual network'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_10.8.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'bd876905-5b84-4f73-ab2d-2e7a7c4568d9'
        ReferenceId = 'Machines should be configured to periodically check for missing system updates'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_12.4.4.C.02'
    }

    PolicyDefinition @{
        Id          = 'f110a506-2dcb-422e-bcea-d533fc8c35e2'
        ReferenceId = 'Azure Machine Learning compute instances should be recreated to get the latest software updates'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_12.4.4.C.02'
        Parameters  = @{
            effects = (Param AuditEffectAzureMachineLearningComputeInstancesShouldBeRecreated)
        }
    }

    PolicyDefinition @{
        Id          = 'cb510bfd-1cba-4d9f-a230-cb0976f4bb71'
        ReferenceId = 'App Service apps should have remote debugging turned off'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.1.8.C.01'
    }

    PolicyDefinition @{
        Id          = '0e60b895-3786-45da-8377-9c6b4b6ac5f9'
        ReferenceId = 'Function apps should have remote debugging turned off'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.1.8.C.01'
    }

    PolicyDefinition @{
        Id          = '22730e10-96f6-4aac-ad84-9383d35b5917'
        ReferenceId = 'Management ports should be closed on your virtual machines'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.1.8.C.01'
    }

    PolicyDefinition @{
        Id          = '0a15ec92-a229-4763-bb14-0ea34a568f8d'
        ReferenceId = 'Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'ac4a19c2-fa67-49b4-8ae5-0b2e78c49457'
        ReferenceId = 'Role-Based Access Control (RBAC) should be used on Kubernetes Services'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'ae89ebca-1c92-4898-ac2c-9f63decb045c'
        ReferenceId = 'Guest Configuration extension should be installed on your machines'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = '47a1ee2f-2a2a-4576-bf2a-e0e36709c2b8'
        ReferenceId = 'Kubernetes cluster containers should not share host process ID or host IPC namespace'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            source             = (Param Source_1)
            warn               = (Param Warn_1)
            labelSelector      = (Param LabelSelector_1)
            excludedImages     = (Param ExcludedImages_1)
            namespaces         = (Param Namespaces_1)
        }
    }

    PolicyDefinition @{
        Id          = 'df49d893-a74c-421d-bc95-c663042e5b80'
        ReferenceId = 'Kubernetes cluster containers should run with a read only root file system'
        Version     = '6.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            source             = (Param Source_1)
            warn               = (Param Warn_1)
            labelSelector      = (Param LabelSelector_1)
            excludedContainers = (Param ExcludedContainers_1)
            excludedImages     = (Param ExcludedImages_1)
            namespaces         = (Param Namespaces_1)
        }
    }

    PolicyDefinition @{
        Id          = '95edb821-ddaf-4404-9732-666045e056b4'
        ReferenceId = 'Kubernetes cluster should not allow privileged containers'
        Version     = '9.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            source             = (Param Source_1)
            warn               = (Param Warn_1)
            labelSelector      = (Param LabelSelector_1)
            excludedContainers = (Param ExcludedContainers_1)
            excludedImages     = (Param ExcludedImages_1)
            namespaces         = (Param Namespaces_1)
            effect             = (Param AuditEffectKubernetesClusterShouldNotAllowPrivilegedContainers)
        }
    }

    PolicyDefinition @{
        Id          = '1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d'
        ReferenceId = 'Kubernetes clusters should be accessible only over HTTPS'
        Version     = '8.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            namespaces         = (Param Namespaces_1)
            warn               = (Param Warn_1)
            source             = (Param Source_1)
            labelSelector      = (Param LabelSelector_1)
            effect             = (Param AuditEffectKubernetesClustersShouldBeAccessibleOnlyOverHTTPS)
        }
    }

    PolicyDefinition @{
        Id          = '423dd1ba-798e-40e4-9c4d-b6902674b423'
        ReferenceId = 'Kubernetes clusters should disable automounting API credentials'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            source             = (Param Source_1)
            warn               = (Param Warn_1)
            labelSelector      = (Param LabelSelector_1)
            excludedImages     = (Param ExcludedImages_1)
            namespaces         = (Param Namespaces_1)
        }
    }

    PolicyDefinition @{
        Id          = '1c6e92c9-99f0-4e55-9cf2-0c234dc48f99'
        ReferenceId = 'Kubernetes clusters should not allow container privilege escalation'
        Version     = '7.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            source             = (Param Source_1)
            warn               = (Param Warn_1)
            labelSelector      = (Param LabelSelector_1)
            excludedContainers = (Param ExcludedContainers_1)
            excludedImages     = (Param ExcludedImages_1)
            namespaces         = (Param Namespaces_1)
        }
    }

    PolicyDefinition @{
        Id          = 'd2e7ea85-6b44-4317-a0be-1b951587f626'
        ReferenceId = 'Kubernetes clusters should not grant CAP_SYS_ADMIN security capabilities'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            excludedContainers = (Param ExcludedContainers_1)
            namespaces         = (Param Namespaces_1)
            excludedImages     = (Param ExcludedImages_1)
            labelSelector      = (Param LabelSelector_1)
        }
    }

    PolicyDefinition @{
        Id          = '9f061a12-e40d-4183-a00e-171812443373'
        ReferenceId = 'Kubernetes clusters should not use the default namespace'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            excludedNamespaces = (Param ExcludedNamespaces_1)
            namespaces         = (Param Namespaces_1)
            warn               = (Param Warn_1)
            source             = (Param Source_1)
            labelSelector      = (Param LabelSelector_1)
        }
    }

    PolicyDefinition @{
        Id          = 'b0f33259-77d7-4c9e-aac6-3aabcfae693c'
        ReferenceId = 'Management ports of virtual machines should be protected with just-in-time network access control'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'c43e4a30-77cb-48ab-a4dd-93f175c63b57'
        ReferenceId = 'Microsoft Antimalware for Azure should be configured to automatically update protection signatures'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = '9b597639-28e4-48eb-b506-56b05d366257'
        ReferenceId = 'Microsoft IaaSAntimalware extension should be deployed on Windows servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'd26f7642-7545-4e18-9b75-8c9bbdee3a9a'
        ReferenceId = 'Virtual machines- Guest Configuration extension should be deployed with system-assigned managed identity'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'bed48b13-6647-468e-aa2f-1af1d3f4dd40'
        ReferenceId = 'Windows Defender Exploit Guard should be enabled on your machines'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.1.9.C.01'
        Parameters  = [ordered]@{
            NotAvailableMachineState = (Param NotAvailableMachineState_1)
            IncludeArcMachines       = (Param IncludeArcMachines_1)
        }
    }

    PolicyDefinition @{
        Id          = '95bccee9-a7f8-4bec-9ee9-62c3473701fc'
        ReferenceId = 'App Service apps should have authentication enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '5744710e-cc2f-4ee8-8809-3b11e89f4bc9'
        ReferenceId = 'App Service apps should not have CORS configured to allow every resource to access your apps'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = 'a4af4a39-4135-47fb-b175-47fbdf85311d'
        ReferenceId = 'App Service apps should only be accessible over HTTPS'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '4d24b6d4-5e53-4a4f-a7f4-618fa573ee4b'
        ReferenceId = 'App Service apps should require FTPS only'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '8c122334-9d20-4eb8-89ea-ac9a705b74ae'
        ReferenceId = 'App Service apps should use latest -HTTP Version-'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '496223c3-ad65-4ecd-878a-bae78737e9ed'
        ReferenceId = 'App Service apps that use Java should use a specified -Java version-'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
        Parameters  = @{
            LinuxJavaVersion = (Param LinuxJavaVersion_1)
        }
    }

    PolicyDefinition @{
        Id          = '7261b898-8a84-4db8-9e04-18527132abb3'
        ReferenceId = 'App Service apps that use PHP should use a specified -PHP version-'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
        Parameters  = @{
            LinuxPHPVersion = (Param LinuxPHPVersion_1)
        }
    }

    PolicyDefinition @{
        Id          = '7008174a-fd10-4ef0-817e-fc820a951d73'
        ReferenceId = 'App Service apps that use Python should use a specified -Python version-'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
        Parameters  = @{
            LinuxPythonVersion = (Param LinuxPythonVersion_1)
        }
    }

    PolicyDefinition @{
        Id          = 'c75248c1-ea1d-4a9c-8fc9-29a6aabd5da8'
        ReferenceId = 'Function apps should have authentication enabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '0820b7b9-23aa-4725-a1ce-ae4558f718e5'
        ReferenceId = 'Function apps should not have CORS configured to allow every resource to access your apps'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab'
        ReferenceId = 'Function apps should only be accessible over HTTPS'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '399b2637-a50f-4f95-96f8-3a145476eb15'
        ReferenceId = 'Function apps should require FTPS only'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = 'e2c1c086-2d84-4019-bff3-c44ccd95113c'
        ReferenceId = 'Function apps should use latest -HTTP Version-'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
    }

    PolicyDefinition @{
        Id          = '9d0b6ea4-93e2-4578-bf2f-6bb17d22b4bc'
        ReferenceId = 'Function apps that use Java should use a specified -Java version-'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
        Parameters  = @{
            LinuxJavaVersion = (Param LinuxJavaVersion_1)
        }
    }

    PolicyDefinition @{
        Id          = '7238174a-fd10-4ef0-817e-fc820a951d73'
        ReferenceId = 'Function apps that use Python should use a specified -Python version-'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_14.5.8.C.01'
        Parameters  = @{
            LinuxPythonVersion = (Param LinuxPythonVersion_1)
        }
    }

    PolicyDefinition @{
        Id          = '2b9ad585-36bc-4615-b300-fd4435808332'
        ReferenceId = 'App Service apps should use managed identity'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'abda6d70-9778-44e7-84a8-06713e6db027'
        ReferenceId = 'Azure SQL Database should have Microsoft Entra-only authentication enabled during creation'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '5450f5bd-9c72-4390-a9c4-a7aba4edfdd2'
        ReferenceId = 'Cosmos DB database accounts should have local authentication methods disabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '0da106f2-4ca3-48e8-bc85-c638fe6aea8f'
        ReferenceId = 'Function apps should use managed identity'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'b54ed75b-3e1a-44ac-a333-05ba39b99ff0'
        ReferenceId = 'Service Fabric clusters should only use Azure Active Directory for client authentication'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'c15dcc82-b93c-4dcb-9332-fbf121685b54'
        ReferenceId = 'API Management calls to API backends should be authenticated'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '8c6a50c6-9ffd-4ae7-986f-5fa6111f9a54'
        ReferenceId = 'Storage accounts should prevent shared key access'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '0c28c3fb-c244-42d5-a9bf-f35f2999577b'
        ReferenceId = 'Azure SQL Managed Instance should have Microsoft Entra-only authentication enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '146412e9-005c-472b-9e48-c87b72ac229e'
        ReferenceId = 'A Microsoft Entra administrator should be provisioned for MySQL servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '2158ddbe-fefa-408e-b43f-d4faef8ff3b8'
        ReferenceId = 'Synapse Workspaces should use only Microsoft Entra identities for authentication during workspace creation'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '40e85574-ef33-47e8-a854-7a65c7500560'
        ReferenceId = 'Azure MySQL flexible server should have Microsoft Entra Only Authentication enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '6ea81a52-5ca7-4575-9669-eaa910b7edf8'
        ReferenceId = 'Synapse Workspaces should have Microsoft Entra-only authentication enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '71ef260a-8f18-47b7-abcb-62d0673d94dc'
        ReferenceId = 'Azure AI Services resources should have key access disabled (disable local authentication)'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '78215662-041e-49ed-a9dd-5385911b3a1f'
        ReferenceId = 'Azure SQL Managed Instances should have Microsoft Entra-only authentication enabled during creation'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'b3a22bc9-66de-45fb-98fa-00f5df42f41a'
        ReferenceId = 'Azure SQL Database should have Microsoft Entra-only authentication enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'b4dec045-250a-48c2-b5cc-e0c4eec8b5b4'
        ReferenceId = 'A Microsoft Entra administrator should be provisioned for PostgreSQL servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'e96a9a5f-07ca-471b-9bc5-6a0f33cbd68f'
        ReferenceId = 'Azure Machine Learning Computes should have local authentication methods disabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '8ac833bd-f505-48d5-887e-c993a1d3eea0'
        ReferenceId = 'API endpoints in Azure API Management should be authenticated'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.1.32.C.01'
    }

    PolicyDefinition @{
        Id          = '4f11b553-d42e-4e3a-89be-32ca364cad4c'
        ReferenceId = 'A maximum of 3 owners should be designated for your subscription'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_16.3.5.C.02'
    }

    PolicyDefinition @{
        Id          = '0cfea604-3201-4e14-88fc-fae4c427a6c5'
        ReferenceId = 'Blocked accounts with owner permissions on Azure resources should be removed'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = '8d7e1fde-fe26-4b5f-8108-f8e432cbc2be'
        ReferenceId = 'Blocked accounts with read and write permissions on Azure resources should be removed'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = '339353f6-2387-4a45-abe4-7f529d121046'
        ReferenceId = 'Guest accounts with owner permissions on Azure resources should be removed'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = 'e9ac8f8e-ce22-4355-8f04-99b911d6be52'
        ReferenceId = 'Guest accounts with read permissions on Azure resources should be removed'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = '94e1c2ac-cbbe-4cac-a2b5-389c812dee87'
        ReferenceId = 'Guest accounts with write permissions on Azure resources should be removed'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = '09024ccc-0c5f-475e-9457-b7c0d9ed487b'
        ReferenceId = 'There should be more than one owner assigned to your subscription'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_16.4.30.C.01'
    }

    PolicyDefinition @{
        Id          = '1f314764-cb73-4fc9-b863-8eca98ac36e9'
        ReferenceId = 'An Azure Active Directory administrator should be provisioned for SQL servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_16.4.32.C.01'
    }

    PolicyDefinition @{
        Id          = 'ee7495e7-3ba7-40b6-bfee-c29e22cc75d4'
        ReferenceId = 'API Management APIs should use only encrypted protocols'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_17.1.55.C.03'
    }

    PolicyDefinition @{
        Id          = '152b15f7-8e1f-4c1f-ab71-8c010ba5dbc0'
        ReferenceId = 'Key Vault keys should have an expiration date'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.1.58.C.01'
    }

    PolicyDefinition @{
        Id          = '98728c90-32c7-4049-8429-847dc0f4fe37'
        ReferenceId = 'Key Vault secrets should have an expiration date'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.1.58.C.01'
    }

    PolicyDefinition @{
        Id          = '044985bb-afe1-42cd-8a36-9d5d42424537'
        ReferenceId = 'Storage account keys should not be expired'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_17.1.58.C.01'
    }

    PolicyDefinition @{
        Id          = '82067dbb-e53b-4e06-b631-546d197452d9'
        ReferenceId = 'Keys using RSA cryptography should have a specified minimum key size'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.2.19.C.01'
        Parameters  = @{
            minimumRSAKeySize = (Param MinimumRSAKeySize_1)
        }
    }

    PolicyDefinition @{
        Id          = 'ff25f3c8-b739-4538-9d07-3d6d25cfb255'
        ReferenceId = 'Keys using elliptic curve cryptography should have the specified curve names'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.2.22.C.01'
        Parameters  = @{
            allowedECNames = (Param AllowedECNames_1)
        }
    }

    PolicyDefinition @{
        Id          = 'cee51871-e572-4576-855c-047c820360f0'
        ReferenceId = 'Certificates using RSA cryptography should have the specified minimum key size'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_17.2.24.C.01'
        Parameters  = @{
            minimumRSAKeySize = (Param MinimumRSAKeySize_1)
        }
    }

    PolicyDefinition @{
        Id          = 'f0e6e85b-9b9f-4a4b-b67b-f730d42f1b0b'
        ReferenceId = 'App Service apps should use the latest TLS version'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_17.4.16.C.01'
    }

    PolicyDefinition @{
        Id          = 'f9d614c5-c173-4d56-95a7-b4437057d193'
        ReferenceId = 'Function apps should use the latest TLS version'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_17.4.16.C.01'
    }

    PolicyDefinition @{
        Id          = '5752e6d6-1206-46d8-8ab1-ecc2f71a8112'
        ReferenceId = 'Windows machines should be configured to use secure communication protocols'
        Version     = '4.*.*'
        Group       = 'New_Zealand_ISM_17.4.16.C.01'
        Parameters  = [ordered]@{
            MinimumTLSVersion  = (Param MinimumTLSVersion_1)
            IncludeArcMachines = (Param IncludeArcMachines_1)
        }
    }

    PolicyDefinition @{
        Id          = '32e6bbec-16b6-44c2-be37-c5b672d103cf'
        ReferenceId = 'Azure SQL Database should be running TLS version 1.2 or newer'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_17.4.16.C.01'
    }

    PolicyDefinition @{
        Id          = 'fe83a0eb-a853-422d-aac2-1bffd182c5d0'
        ReferenceId = 'Storage accounts should have the specified minimum TLS version'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.4.16.C.01'
        Parameters  = @{
            minimumTlsVersion = (Param MinimumTlsVersion_2)
        }
    }

    PolicyDefinition @{
        Id          = 'bd352bd5-2853-4985-bf0d-73806b4a5744'
        ReferenceId = 'IP Forwarding on your virtual machine should be disabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_17.5.6.C.01'
    }

    PolicyDefinition @{
        Id          = '630c64f9-8b6b-4c64-b511-6544ceff6fd6'
        ReferenceId = 'Authentication to Linux machines should require SSH keys'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_17.5.7.C.01'
        Parameters  = @{
            IncludeArcMachines = (Param IncludeArcMachines_1)
        }
    }

    PolicyDefinition @{
        Id          = '12d4fa5e-1f9f-4c21-97a9-b99b3c6611b5'
        ReferenceId = 'Azure Key Vault should use RBAC permission model'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.9.35.C.01'
    }

    PolicyDefinition @{
        Id          = 'f1cc7827-022c-473e-836e-5a51cae0b249'
        ReferenceId = 'API Management secret named values should be stored in Azure Key Vault'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_17.9.36.C.02'
    }

    PolicyDefinition @{
        Id          = '9daedab3-fb2d-461e-b861-71790eead4f6'
        ReferenceId = 'All network ports should be restricted on network security groups associated to your virtual machine'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '0e246bcf-5f6f-4f87-bc6f-775d4712c7ea'
        ReferenceId = 'Authorized IP ranges should be defined on Kubernetes Services'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '037eea7a-bd0a-46c5-9a66-03aea78705d3'
        ReferenceId = 'Azure AI Services resources should restrict network access'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '862e97cf-49fc-4a5c-9de4-40d4e2e7c8eb'
        ReferenceId = 'Azure Cosmos DB accounts should have firewall rules'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
        Parameters  = @{
            effect = (Param Deny_effect_1)
        }
    }

    PolicyDefinition @{
        Id          = '55615ac9-af46-4a59-874e-391cc3dfb490'
        ReferenceId = 'Azure Key Vault should have firewall enabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
        Parameters  = [ordered]@{
            allowedIPAddresses   = (Param AllowedIPAddresses_1)
            forbiddenIPAddresses = (Param ForbiddenIPAddresses_1)
            restrictIPAddresses  = (Param RestrictIPAddresses_1)
        }
    }

    PolicyDefinition @{
        Id          = 'd0793b48-0edc-4296-a390-4c75d1bdfd71'
        ReferenceId = 'Container registries should not allow unrestricted network access'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '0fea8f8a-4169-495d-8307-30ec335f387d'
        ReferenceId = 'CORS should not allow every domain to access your API for FHIR'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'e802a67a-daf5-4436-9ea6-f6d821dd0c5d'
        ReferenceId = 'Enforce SSL connection should be enabled for MySQL database servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'd158790f-bfb0-486c-8631-2dc6b4e8e6af'
        ReferenceId = 'Enforce SSL connection should be enabled for PostgreSQL database servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'f6de0be7-9a8a-4b8a-b349-43cf02d22f7c'
        ReferenceId = 'Internet-facing virtual machines should be protected with network security groups'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'bb91dfba-c30d-4263-9add-9c2384e659a6'
        ReferenceId = 'Non-internet-facing virtual machines should be protected with network security groups'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '22bee202-a82f-4305-9a2a-6d7f44d4dedb'
        ReferenceId = 'Only secure connections to your Azure Cache for Redis should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '1b8ca024-1d5c-4dec-8995-b1a932b41780'
        ReferenceId = 'Public network access on Azure SQL Database should be disabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'fdccbe47-f3e3-4213-ad5d-ea459b2fa077'
        ReferenceId = 'Public network access should be disabled for MariaDB servers'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'd9844e8a-1437-4aeb-a32c-0c992f056095'
        ReferenceId = 'Public network access should be disabled for MySQL servers'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'b52376f7-9612-48a1-81cd-1ffe4b61032c'
        ReferenceId = 'Public network access should be disabled for PostgreSQL servers'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '404c3081-a854-4457-ae30-26a93ef643f9'
        ReferenceId = 'Secure transfer to storage accounts should be enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = '34c877ad-507e-4c82-993e-3452a6e0ad3c'
        ReferenceId = 'Storage accounts should restrict network access'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'e71308d3-144b-4262-b144-efdc3cc90517'
        ReferenceId = 'Subnets should be associated with a Network Security Group'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.1.13.C.02'
    }

    PolicyDefinition @{
        Id          = 'a7aca53f-2ed4-4466-a25e-0b45ade68efd'
        ReferenceId = 'Azure DDoS Protection should be enabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_18.4.7.C.02'
    }

    PolicyDefinition @{
        Id          = '5345bb39-67dc-4960-a1bf-427e16b9a0bd'
        ReferenceId = 'Connection throttling should be enabled for PostgreSQL database servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.4.7.C.02'
    }

    PolicyDefinition @{
        Id          = 'a1817ec0-a368-432a-8057-8371e17ac6ee'
        ReferenceId = 'All authorization rules except RootManageSharedAccessKey should be removed from Service Bus namespace'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.4.8.C.01'
    }

    PolicyDefinition @{
        Id          = '055aa869-bc98-4af8-bafc-23f1ab6ffe2c'
        ReferenceId = 'Azure Web Application Firewall should be enabled for Azure Front Door entry-points'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.4.8.C.01'
    }

    PolicyDefinition @{
        Id          = '564feb30-bf6a-4854-b4bb-0d2d2d1e6c66'
        ReferenceId = 'Web Application Firewall (WAF) should be enabled for Application Gateway'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_18.4.8.C.01'
    }

    PolicyDefinition @{
        Id          = '12430be1-6cc8-4527-a9a8-e3d38f250096'
        ReferenceId = 'Web Application Firewall (WAF) should use the specified mode for Application Gateway'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.4.8.C.01'
        Parameters  = @{
            modeRequirement = (Param ModeRequirement_1)
        }
    }

    PolicyDefinition @{
        Id          = '425bea59-a659-4cbb-8d31-34499bd030b8'
        ReferenceId = 'Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_18.4.8.C.01'
        Parameters  = @{
            modeRequirement = (Param ModeRequirement_1)
        }
    }

    PolicyDefinition @{
        Id          = 'c8acafaf-3d23-44d1-9624-978ef0f8652c'
        ReferenceId = 'API endpoints that are unused should be disabled and removed from the Azure API Management service'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_22.1.24.C.03'
    }

    PolicyDefinition @{
        Id          = 'fc4d8e41-e223-45ea-9bf5-eada37891d87'
        ReferenceId = 'Virtual machines and virtual machine scale sets should have encryption at host enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_22.1.24.C.04'
    }

    PolicyDefinition @{
        Id          = '3aa03346-d8c5-4994-a5bc-7652c2a2aef1'
        ReferenceId = 'API Management subscriptions should not be scoped to all APIs'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.10.C.01'
    }

    PolicyDefinition @{
        Id          = 'b741306c-968e-4b67-b916-5675e5c709f4'
        ReferenceId = 'API Management direct management endpoint should not be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.10.C.01'
    }

    PolicyDefinition @{
        Id          = '92bb331d-ac71-416a-8c91-02f2cb734ce4'
        ReferenceId = 'API Management calls to API backends should not bypass certificate thumbprint or name validation'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.10.C.01'
    }

    PolicyDefinition @{
        Id          = '3657f5a0-770e-44a3-b44e-9431ba1e9735'
        ReferenceId = 'Automation account variables should be encrypted'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '1f905d99-2ab7-462c-a6b0-f709acca6c8f'
        ReferenceId = 'Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'c39ba22d-4428-4149-b981-70acb31fc383'
        ReferenceId = 'Azure Key Vault Managed HSM should have purge protection enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'ba769a63-b8cc-4b2d-abf6-ac33c7204be8'
        ReferenceId = 'Azure Machine Learning workspaces should be encrypted with a customer-managed key'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '67121cc7-ff39-4ab8-b7e3-95b84dab487d'
        ReferenceId = 'Azure AI Services resources should encrypt data at rest with a customer-managed key (CMK)'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
        Parameters  = @{
            excludedKinds = (Param ExcludedKinds_1)
        }
    }

    PolicyDefinition @{
        Id          = '5b9159ae-1701-4a6f-9a7a-aa9c8ddd0580'
        ReferenceId = 'Container registries should be encrypted with a customer-managed key'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'f4b53539-8df9-40e4-86c6-6b607703bd4e'
        ReferenceId = 'Disk encryption should be enabled on Azure Data Explorer'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '0b60c0b2-2dc2-4e1c-b5c9-abbed971de53'
        ReferenceId = 'Key vaults should have deletion protection enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '1e66c121-a66a-4b1f-9b83-0fd99bf0fc2d'
        ReferenceId = 'Key vaults should have soft delete enabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '83cef61d-dbd1-4b20-a4fc-5fbc7da10833'
        ReferenceId = 'MySQL servers should use customer-managed keys to encrypt data at rest'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '18adea5e-f416-4d0f-8aa8-d24321e3e274'
        ReferenceId = 'PostgreSQL servers should use customer-managed keys to encrypt data at rest'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'a7ff3161-0087-490a-9ad9-ad6217f4f43a'
        ReferenceId = 'Require encryption on Data Lake Store accounts'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '617c02be-7f02-4efd-8836-3180d47b6c68'
        ReferenceId = 'Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = 'ac01ad65-10e5-46df-bdd9-6b0cad13e1d2'
        ReferenceId = 'SQL managed instances should use customer-managed keys to encrypt data at rest'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '0a370ff3-6cab-4e85-8995-295fd854c5b8'
        ReferenceId = 'SQL servers should use customer-managed keys to encrypt data at rest'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '6fac406b-40ca-413b-bf8e-0bf964659c25'
        ReferenceId = 'Storage accounts should use customer-managed key for encryption'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12'
        ReferenceId = 'Transparent Data Encryption on SQL databases should be enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.4.9.C.01'
    }

    PolicyDefinition @{
        Id          = '91a78b24-f231-4a8a-8da9-02c35b2b6510'
        ReferenceId = 'App Service apps should have resource logs enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'a451c1ef-c6ca-483d-87ed-f49761e3ffb5'
        ReferenceId = 'Audit usage of custom RBAC roles'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
    }

    PolicyDefinition @{
        Id          = 'a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9'
        ReferenceId = 'Auditing on SQL server should be enabled'
        Version     = '2.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            setting = (Param Setting_1)
        }
    }

    PolicyDefinition @{
        Id          = 'eb6f77b9-bd53-4e35-a23d-7f65d5f0e446'
        ReferenceId = 'Disconnections should be logged for PostgreSQL database servers.'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
    }

    PolicyDefinition @{
        Id          = 'eb6f77b9-bd53-4e35-a23d-7f65d5f0e442'
        ReferenceId = 'Log connections should be enabled for PostgreSQL database servers'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
    }

    PolicyDefinition @{
        Id          = '057ef27e-665e-4328-8ea3-04b3122bd9fb'
        ReferenceId = 'Resource logs in Azure Data Lake Store should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '245fc9df-fa96-4414-9a0b-3738c2f7341c'
        ReferenceId = 'Resource logs in Azure Kubernetes Service should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'f9be5368-9bf5-4b84-9e0a-7850da98bb46'
        ReferenceId = 'Resource logs in Azure Stream Analytics should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '428256e6-1fac-4f48-a757-df34c2b3336d'
        ReferenceId = 'Resource logs in Batch accounts should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'c95c74d9-38fe-4f0d-af86-0c7d626a315c'
        ReferenceId = 'Resource logs in Data Lake Analytics should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '83a214f7-d01a-484b-91a9-ed54470c9a6a'
        ReferenceId = 'Resource logs in Event Hub should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '383856f8-de7f-44a2-81fc-e5135b5c2aa4'
        ReferenceId = 'Resource logs in IoT Hub should be enabled'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'cf820ca0-f99e-4f3e-84fb-66e913812d21'
        ReferenceId = 'Resource logs in Key Vault should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '34f95f76-5386-4de7-b824-0d8478470c9d'
        ReferenceId = 'Resource logs in Logic Apps should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'b4330a05-a843-4bc8-bf9a-cacce50c67f4'
        ReferenceId = 'Resource logs in Search services should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = 'f8d36e2f-389b-4ee4-898d-21aeb69a0f45'
        ReferenceId = 'Resource logs in Service Bus should be enabled'
        Version     = '5.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }

    PolicyDefinition @{
        Id          = '89099bee-89e0-4b26-a5f4-165451757743'
        ReferenceId = 'SQL servers with auditing to storage account destination should be configured with 90 days retention or higher'
        Version     = '3.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
    }

    PolicyDefinition @{
        Id          = 'c6283572-73bb-4deb-bf2c-7a2b8f7462cb'
        ReferenceId = 'SQL server-targeted autoprovisioning should be enabled for SQL servers on machines plan'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
    }

    PolicyDefinition @{
        Id          = 'afe0c3be-ba3b-4544-ba52-0c99672a8ad6'
        ReferenceId = 'Resource logs in Azure Machine Learning Workspaces should be enabled'
        Version     = '1.*.*'
        Group       = 'New_Zealand_ISM_23.5.11.C.01'
        Parameters  = @{
            requiredRetentionDays = (Param RequiredRetentionDays_1)
        }
    }
}

Members (205)

Source: built-in-policies/policySetDefinitions/Regulatory Compliance/NewZealand_ISM.json in Azure/azure-policy, under the MIT licence.