When attornment void

Va. Code Ann. § 55.1-1609, under Chapter 16. Leases..

Va. Code Ann. § 55.1-1609

The attornment of a tenant to any stranger is void, unless it is with the consent of the landlord of such tenant or pursuant to or in consequence of the judgment or order of a court.