How to migrate the vmk0 from vSwitch0 to DVS

Hello,

we have trouble to move / migrate the vmk0 (vSwitch0) to a DVS. terraform start and hang after try to configure the vSwitch0 Swtich:

“vsphere_compute_cluster.compute_cluster: Modifying… [id=domain-c171]
vsphere_distributed_port_group.mgmt: Modifying… [id=dvportgroup-197]
vsphere_host_virtual_switch.switch: Modifying… [id=tf-HostVirtualSwitch:host-7904:vSwitch0]
vsphere_distributed_port_group.mgmt: Modifications complete after 0s [id=dvportgroup-197]
vsphere_compute_cluster.compute_cluster: Modifications complete after 0s [id=domain-c171]
vsphere_host_virtual_switch.switch: Still modifying… [id=tf-HostVirtualSwitch:host-7904:vSwitch0, 10s elapsed]
vsphere_host_virtual_switch.switch: Still modifying… [id=tf-HostVirtualSwitch:host-7904:vSwitch0, 20s elapsed]
vsphere_host_virtual_switch.switch: Still modifying… [id=tf-HostVirtualSwitch:host-7904:vSwitch0, 30s elapsed]”

after that, the host (host-7904) not accessable and i’ve to remove it from vCenter and re-add the Host.

It is possible to migrate the management (vmk0) to a DVS with terraform?

Thanks & best regards
Fabian