Using VMHostVDSwitchMigration DSC Resource to migrate a standard switch portgroup to a vdswitch fails to transfer the tagged vlan if the portgroup doesn't exist on the destination vdswitch.
As an example, a standard switch portgroup created using the following
When migrated, will no longer have the vlan tag associated with it.
If the vdSwitch portgroup already exists and has a vlan specified on it, the migrated portgroup uses that setting, so this is purely and issue for newly created vdSwitch portgroups.
VMHostVDSwitchMigration DSC Resource was extended to create distributed port groups with VLAN ID with PR #299 and its now available in the latest version of the VMware.vSphereDSC module.
Using VMHostVDSwitchMigration DSC Resource to migrate a standard switch portgroup to a vdswitch fails to transfer the tagged vlan if the portgroup doesn't exist on the destination vdswitch.
As an example, a standard switch portgroup created using the following
VMHostVssPortGroup "VMHostVssPortGroup_123" { Server = $vmhost Credential = $Credential VMHostName = $vmhost Name = 'vlan123' VssName = 'vSwitch' Ensure = 'Present' VLanId = 123 }
When migrated, will no longer have the vlan tag associated with it.
If the vdSwitch portgroup already exists and has a vlan specified on it, the migrated portgroup uses that setting, so this is purely and issue for newly created vdSwitch portgroups.