If deemed appropriate the court may (i) require the local department of social services or any other agency or person to investigate the allegations in the petition and file a report of that investigation with the court, (ii) appoint counsel for the minor's parents or guardian, or (iii) make any other orders regarding the matter which the court deems appropriate. In any case pursuant to this article the court shall appoint counsel for the minor to serve as guardian ad litem.
Va. Code § 16.1-332