The virtual switch lacks external connectivity when configuring nic teaming on Hyper-v VM

By default nic teaming needs to be enabled on hyper-v. To solve this error you will need to perform the following actions On PowerShell: Get-vm "VMNAME" | set-vmnetworkadapter -allowteaming on on the Hyper-v machine network properties ( mandatory to do it on all of the network adapters)