def rule(event):
    if event.deep_get("properties", "message", default="") in [
        "Add delegated permission grant",
        "Add app role assignment to service principal",
    ]:
        return True
    return False
