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

Azure Policy definition

[Preview]: vTPM should be enabled on supported virtual machines

Name [Preview]: vTPM should be enabled on supported virtual machines
Azure Portal
Id 1c30f9cd-b84c-49cc-aa2c-9288447cc3b3
Version 1.0.0-preview
details on versioning
Category Security Center
Microsoft docs
Description Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.
Mode Indexed
Type BuiltIn
Preview True
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-05-04 14:34:06 add 1c30f9cd-b84c-49cc-aa2c-9288447cc3b3
Used in Initiatives none
JSON
{
  "properties": {
  "displayName": "[Preview]: vTPM should be enabled on supported virtual machines",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.",
    "metadata": {
      "category": "Security Center",
      "version": "1.0.0-preview",
      "preview": true
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Compute/virtualMachines"
          },
          {
            "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
            "exists": "true"
          },
          {
            "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
            "notequals": "true"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/1c30f9cd-b84c-49cc-aa2c-9288447cc3b3",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3"
}