It's strange how we cannot remove a network adapter of a VM in powered on state using Remove-NetworkAdapter cmdlet.
It needs VM to be powered off state if we want to use Remove-NetworkAdapter cmdlet.
Can someone help me with a way to remove network adapter from a powered on VM using PowerCLI. I don't want to just disconnect the adapter but completely delete it from the VM.
I do see someone directed to certain articles in this Any way to remove a NetworkAdapter from a running VM? : r/powercli (reddit.com) but unfortunately VMware to Broadcom movement has made those articles dead.