I am able to add vmk0 with below command, but when i using similar command for Vmotion vmkernal i am getting error message
working command for management vmkernal
Get-VMHost esxi.lab.com | Get-VMHostNetworkAdapter -VMKernel -Name vmk0 | Set-VMHostNetworkAdapter -PortGroup "management-new "
not working for vmotion vmkernal adapter
Get-VMHost esxi.lab.com | Get-VMHostNetworkAdapter -VMKernel -Name vmk1 | Set-VMHostNetworkAdapter -PortGroup "vmotion-new"
Set-VMHostNetworkAdapter : 5/4/2022 11:11:35 PM Set-VMHostNetworkAdapter Could not find DistributedPortGroup with name 'vmotion-new'.
At line:1 char:86
+ ... Name vmk1 | Set-VMHostNetworkAdapter -PortGroup "vmotion-new...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (vmotion-new:String) [Set-VMHostNetworkAdapter], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostNetworkAdapter
Set-VMHostNetworkAdapter : 5/4/2022 11:11:35 PM Set-VMHostNetworkAdapter Value cannot be found for the mandatory parameter PortGroup
At line:1 char:86
+ ... Name vmk1 | Set-VMHostNetworkAdapter -PortGroup "vmotion-new ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-VMHostNetworkAdapter], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostNetworkAdapter
vmotion-new is on new vDS. could you please help further.