How do I explicitly specify Gen1 or Gen2 for azurerm_linux_virtual_machine?

I have the requirement to create VMs both on Hyper-V Gen1 and Gen2 for testing purposes. From what I can tell the azurerm provider automatically supports Gen2 but I can’t find any way to explicitly specify the version?

How do I explicitly specify Gen1 or Gen2 ?