When trying to connect my VM Network Adapter to my Logical Switch I get this error.
Failed while applying switch port settings 'Ethernet Switch Port Security Settings' on switch 'Logical Switch': One or more arguments are invalid (0x80070057). Unknown error (0x8005)
I have deleted and rebuilt the entire Logical Switch, Port Profile and then deleted and re-created the switch on each of the Hyper-V hosts with no resolve. This same message appears when trying to directly connect the VM using Hyper-V Manager.
Hope that someone here might have an idea as to what is causing it.