Hyperv - Vswitch Trunk

Set guest NIC “Network Adapter” to be trunk allowing VLAN tags 1-4094 and set the native untagged VLAN to be 10:

Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "1-4094" -VMName "test" -VMNetworkAdapterName "Network Adapter" -NativeVlanId 10

Verify configuration:

Get-VMNetworkAdapterVlan