{
    "properties": {
        "displayName": "Audit Windows VMs on which the Log Analytics agent is not connected as expected",
        "policyType": "BuiltIn",
        "description": "This initiative deploys the policy requirements and audits Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. 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": {
            "WorkspaceId": {
                "type": "string",
                "metadata": {
                    "displayName": "Connected workspace IDs",
                    "description": "A semicolon-separated list of the workspace IDs that the Log Analytics agent should be connected to"
                }
            }
        },
        "policyDefinitions": [
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/68511db2-bd02-41c4-ae6b-1900a012968a",
                "policyDefinitionReferenceId": "Deploy_WindowsLogAnalyticsAgentConnection",
                "parameters": {
                    "WorkspaceId": {
                        "value": "[parameters('WorkspaceId')]"
                    }
                }
            },
            {
                "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a030a57e-4639-4e8f-ade9-a92f33afe7ee",
                "policyDefinitionReferenceId": "Audit_WindowsLogAnalyticsAgentConnection"
            }
        ]
    },
    "id": "/providers/Microsoft.Authorization/policySetDefinitions/06c5e415-a662-463a-bb85-ede14286b979",
    "name": "06c5e415-a662-463a-bb85-ede14286b979"
}