Whenever the commission on human rights has a reasonable cause to believe that any person has engaged in, or is engaging in, any violation of a county ordinance that prohibits discrimination due to race, color, religion, sex, pregnancy, childbirth or related medical conditions, national origin, military status, age, marital status, sexual orientation, gender identity, or disability, and, after making a good faith effort to obtain the data, information, and attendance of witnesses necessary to determine whether such violation has occurred, is unable to obtain such data, information, or attendance, it may request the county attorney to petition the judge of the general district court for its jurisdiction for a subpoena against any such person refusing to produce such data and information or refusing to appear as a witness, and the judge of such court may, upon good cause shown, cause the subpoena to be issued. Any witness subpoena issued under this section shall include a statement that any statements made will be under oath and that the respondent or other witness is entitled to be represented by an attorney. Any person failing to comply with a subpoena issued under this section shall be subject to punishment for contempt by the court issuing the subpoena. Any person so subpoenaed may apply to the judge who issued a subpoena to quash it.
Va. Code § 15.2-854