{
    "properties": {
        "displayName": "Audit Windows VMs on which the specified services are not installed and 'Running'",
        "policyType": "BuiltIn",
        "description": "This initiative deploys the policy requirements and audits Windows virtual machines on which the specified services are not installed and 'Running'. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
        "metadata": {
            "version": "1.0.0-deprecated",
            "category": "Guest Configuration",
            "deprecated": true
        },
        "parameters": {
            "ServiceName": {
                "type": "string",
                "metadata": {
                    "displayName": "Service names (supports wildcards)",
                    "description": "A semicolon-separated list of the names of the services that should be installed and 'Running'. e.g. 'WinRm;Wi*'"
                }
            }
        },
        "policyDefinitions": [
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/32b1e4d4-6cd5-47b4-a935-169da8a5c262",
                "policyDefinitionReferenceId": "Deploy_WindowsServiceStatus",
                "parameters": {
                    "ServiceName": {
                        "value": "[parameters('ServiceName')]"
                    }
                }
            },
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a",
                "policyDefinitionReferenceId": "Audit_WindowsServiceStatus"
            }
        ]
    },
    "id": "/providers/Microsoft.Authorization/policySetDefinitions/8eeec860-e2fa-4f89-a669-84942c57225f",
    "name": "8eeec860-e2fa-4f89-a669-84942c57225f"
}