{
    "properties": {
        "displayName": "Audit encryption of Automation account variables",
        "mode": "All",
        "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data",
        "metadata": {
            "category": "Automation"
        },
        "policyRule": {
            "if": {
                "allOf": [
                {
                  "field": "type",
                  "equals": "Microsoft.Automation/automationAccounts/variables"
                },
                {
                  "field": "Microsoft.Automation/automationAccounts/variables/isEncrypted",
                  "notEquals": "true"
            }
          ]
        },
        "then": {
          "effect": "Audit"
        }
      }
    }
}
