Bug: The first time New-NetLbfoTeam is used by Desired State Configuration it creates a misnamed interface
The first time New-NetLbfoTeam is used by Desired State Configuration it creates a misnamed interface.
This is on Server 2019 Build 17763.557 with the following updates applied:
KB4483452
KB4470788
KB4503308
KB4504369
KB4503327
Powershell shows:
Name Value
PSVersion 5.1.17763.503
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.503
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
For example:
New-NetLbfoTeam -Name "Team1" -TeamMembers "NIC1" -TeamNicName "Team1" -LoadBalancingAlgorithm Dynamic -TeamingMode SwitchIndependent -Confirm:$False
Will create an interface called "Ethernet" (Visible through Get-NetAdapter).
If you delete the team and recreate in the same DSC, it'll work correctly.
i.e. this works and creates an interface called "Team1"
$team1 = Get-NetLbfoTeam -Name "Team1" -ErrorAction SilentlyContinue;
$teamExists = [bool]($team1);
if(!($teamExists)) {
New-NetLbfoTeam -Name "Team1" -TeamMembers "NIC1" -TeamNicName "Team1" -LoadBalancingAlgorithm Dynamic -TeamingMode SwitchIndependent -Confirm:$False;
Remove-NetLbfoTeam -Name "Team1" -Confirm:$False;
New-NetLbfoTeam -Name "Team1" -TeamMembers "NIC1" -TeamNicName "Team1" -LoadBalancingAlgorithm Dynamic -TeamingMode SwitchIndependent -Confirm:$False;
}
