In System Center Virtual Machine Manager 2012 SP1, if you create a Teamed Nic with a single adapter and then later want to add an additional adapter through the GUI, you end up with the following error:
An UplinkPortProfileSet was not set on the host network adapter (HP NC362i Integrated DP Gigabit Server Adapter) nor was one supplied with logical switch (SwitchName)
The fix for this is simple. Click through the GUI one more time, but this time, don't click OK, but instead click on "View Script". Next copy the code and modify it, to set the Uplink Profile on the Network adapters:
$JobGroupId1 = [Guid]::NewGuid().ToString()
$SCUplinkPortProfileSet = Get-SCUplinkPortProfile YourUplinkProfilename
$vmHost = Get-SCVMHost -ID "5346547f-8ceb-4889-903f-8a2842794a2b"
$networkAdapter = @()
$oneAdapter0 = Get-SCVMHostNetworkAdapter -Name "HP NC362i Integrated DP Gigabit Server Adapter #2" -VMHost $vmHost
Set-SCVMHostNetworkAdapter -VMHostNetworkAdapter $oneAdapter0 -UplinkPortProfileSet $SCUplinkPortProfileSet -JobGroup $JobGroupId1
$networkAdapter += $oneAdapter0
$oneAdapter1 = Get-SCVMHostNetworkAdapter -Name "HP NC362i Integrated DP Gigabit Server Adapter" -VMHost $vmHost
Set-SCVMHostNetworkAdapter -VMHostNetworkAdapter $oneAdapter1 -UplinkPortProfileSet $SCUplinkPortProfileSet -JobGroup$JobGroupId1
$networkAdapter += $oneAdapter1
$virtualSwitch = Get-SCVirtualNetwork -Name "TeamedNetwork" -VMHost $vmHost
$logicalSwitch = Get-SCLogicalSwitch -Name "TeamedNetwork" -ID "ba4036cb-052f-494c-a4e9-2fac9f49544d"
Set-SCVirtualNetwork -VirtualNetwork $virtualSwitch -VMHostNetworkAdapters $networkAdapter -LogicalSwitch $logicalSwitch -JobGroup $JobGroupId1
Set-SCVMHost -VMHost $vmHost -JobGroup $JobGroupId1 -RunAsynchronously
Now click the powershell window in the VMM Console and copy paste this code. Go to the Jobs pane and verify that your command has executed successfully.