def _find_id_row(table_as_list: list):
    """
    Finds Id row in the first section of the 'casadm -P' output.
    """
    for line in table_as_list:
        if "Id" in line:
            return line
    raise Exception("Cannot find Id row in the 'casadm -P' output")