Set-VDUplinkTeamingPolicy has problems with the Failback option

Time for the next PowerCLI bug. The Set-VDUplinkTeamingPolicy CMDlet has problems with the “failback” option.

It is possible to switch “Failback” from true to false, but not from false to true. The CMDlet does not throw an error. The setting just stays the same. With the vSphere Client i’m able to change the failback option in both directions.

$dvSwitch = Get-VDSwitch -Name dvswitch1
Portgroup = Get-VDPortgroup -Name “NFS” -VDSwitch $dvSwitch
$Portgroup | Get-VDUplinkTeamingPolicy | Set-VDUplinkTeamingPolicy -FailBack:$true

The CMDlet works as expected, because after this change the failback option is enabled.

$dvSwitch = Get-VDSwitch -Name dvswitch1
Portgroup = Get-VDPortgroup -Name “NFS” -VDSwitch $dvSwitch
$Portgroup | Get-VDUplinkTeamingPolicy | Set-VDUplinkTeamingPolicy -FailBack:$false

The failback option is still enabled and the CMDlet does not throw an error.

Currently i have no workaround for it, but also for this bug a VMware SR is open.

The VMware versions in my development environment.

PowerCLI Version
—————-
VMware vSphere PowerCLI 5.5 Release 2 Patch 1 build 1931983
—————
Snapin Versions
—————
VMWare AutoDeploy PowerCLI Component 5.5 build 1890764
VMWare ImageBuilder PowerCLI Component 5.5 build 1890764
VMware vCloud Director PowerCLI Component 5.5 build 1649227
VMware License PowerCLI Component 5.5 build 1265954
VMware VDS PowerCLI Component 5.5 build 1926677
VMware vSphere PowerCLI Component 5.5 Patch 1 build 1926677
VMware vSphere Update Manager PowerCLI 5.5 build 1302474
—————
vSphere Versions
—————
vCenter 5.5 1891313
ESX 5.5 1331820