To pass multiple tagged VLANs through to a VM, you need to change the port to be a trunk from a PowerShell command line.
Further, when working with multiple NICs, it is a good idea to name the NICs as they are configured on the VM – as by default all NICs are named “Network Adapter” and this will make it difficult to change settings on just one NIC.
To change a NIC’s name you can use the command:
Rename-VMNetworkAdapter -VMName VM-Name -Name "Network Adapter" -NewName Trunk
To change this now named NIC to be a trunk you can use the command:
Set-VMNetworkAdapterVlan -VMName VM-Name -NativeVlanId 1 -VMNetworkAdapterName "Trunk" -Trunk -AllowedVlanIdList 1-4094