def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("operationName", default="").startswith(
                        "MICROSOFT.KUBERNETES/CONNECTEDCLUSTERS/BATCH"
                    ),
                    event.deep_get("operationName", default="").startswith(
                        "MICROSOFT.CONTAINERSERVICE/MANAGEDCLUSTERS/BATCH"
                    ),
                ]
            ),
            any(
                [
                    event.deep_get("operationName", default="").endswith("/CRONJOBS/WRITE"),
                    event.deep_get("operationName", default="").endswith("/JOBS/WRITE"),
                ]
            ),
        ]
    ):
        return True
    return False
