{
    "properties": {
        "displayName": "Virtual machines should encrypt temp disks, caches, and data flows between Compute and Storage resources",
        "policyType": "BuiltIn",
        "mode": "All",
        "description": "Virtual machines without an enabled disk encryption will be monitored by Azure Security Center as recommendations.",
        "metadata": {
            "version": "2.0.1",
            "category": "Security Center"
        },
        "parameters": {
            "effect": {
                "type": "string",
                "defaultValue": "AuditIfNotExists",
                "allowedValues": [
                    "AuditIfNotExists",
                    "Disabled"
                ],
                "metadata": {
                    "displayName": "Effect",
                    "description": "Enable or disable the execution of the policy"
                }
            }
        },
        "policyRule": {
            "if": {
                "field": "type",
                "in": [
                    "Microsoft.ClassicCompute/virtualMachines",
                    "Microsoft.Compute/virtualMachines"
                ]
              },
            "then": {
                "effect": "[parameters('effect')]",
                "details": {
                    "type": "Microsoft.Security/assessments",
                    "name": "d57a4221-a804-52ca-3dea-768284f06bb7",
                    "existenceCondition": {
                        "field": "Microsoft.Security/assessments/status.code",
                        "in": [
                            "NotApplicable",
                            "Healthy"
                        ]
                    }
                }
            }
        }
    },
    "id": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d",
    "name": "0961003e-5a0a-4549-abde-af6a37f2724d"
}