{
    "properties": {
        "displayName": "Audit Windows Server VMs on which Windows Serial Console is not enabled",
        "policyType": "BuiltIn",
        "description": "This initiative deploys the policy requirements and audits Windows Server virtual machines on which Windows Serial Console is not enabled. 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": {
            "EMSPortNumber": {
                "type": "string",
                "metadata": {
                    "displayName": "EMS Port Number",
                    "description": "An integer indicating the COM port to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                },
                "allowedValues": [
                    "1",
                    "2",
                    "3",
                    "4"
                ],
                "defaultValue": "1"
            },
            "EMSBaudRate": {
                "type": "string",
                "metadata": {
                    "displayName": "EMS Baud Rate",
                    "description": "An integer indicating the baud rate to be used for the Emergency Management Services (EMS) console redirection. For more information on EMS settings, please visit https://aka.ms/gcpolwsc"
                },
                "allowedValues": [
                    "9600",
                    "19200",
                    "38400",
                    "57600",
                    "115200"
                ],
                "defaultValue": "115200"
            }
        },
        "policyDefinitions": [
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7a031c68-d6ab-406e-a506-697a19c634b0",
                "policyDefinitionReferenceId": "Deploy_WindowsSerialConsole",
                "parameters": {
                    "EMSPortNumber": {
                        "value": "[parameters('EMSPortNumber')]"
                    },
                    "EMSBaudRate": {
                        "value": "[parameters('EMSBaudRate')]"
                    }
                }
            },
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d7ccd0ca-8d78-42af-a43d-6b7f928accbc",
                "policyDefinitionReferenceId": "Audit_WindowsSerialConsole"
            }
        ]
    },
    "id": "/providers/Microsoft.Authorization/policySetDefinitions/acb6cd8e-45f5-466f-b3cb-ff6fce525f71",
    "name": "acb6cd8e-45f5-466f-b3cb-ff6fce525f71"
}