I refer to the new feature of sticky session on this article here where you are able to set 2-tuple or 3-tuple affinity in addition to the previous version of endpoint load balancer on azure.

After following the Azure cmdlet on the above blogpost, I’ve stumbled upon the error in the image/title whenever I try to add in new endpoints on the manage.windowsazure.com or portal.azure.com portal.
error-crop

The error can be reproduced with either of the below scenarios

`

  • VM1 and VM2 are in the same Availability Set and Cloud Service. Using the commandGet-AzureVM -ServiceName $csname -Name $vm1name | Add-AzureEndpoint -Name $nameofEndpoint -Protocol "tcp" -PublicPort $publicport -LocalPort $localport -DefaultProbe -LBSetname $nameofLBEndpoint –LoadBalancerDistribution "sourceIPProtocol" | Update-AzureVMGet-AzureVM -ServiceName $csname -Name $vm2name | Add-AzureEndpoint -Name $nameofEndpoint -Protocol "tcp" -PublicPort $publicport -LocalPort $localport -DefaultProbe -LBSetname $nameofLBEndpoint –LoadBalancerDistribution "sourceIPProtocol" | Update-AzureVM
  • Using the commandSet-AzureLoadBalancedEndpoint -ServiceName $csname -LBSetName $portname -Protocol tcp -LocalPort $portnumber -ProbeProtocolTCP -ProbePort $probeport –LoadBalancerDistribution "sourceIPProtocol"
  • `

    What’s the fix for now?
    As the PowerShell team usually works faster to release new features for Azure, the portal is working to catchup with this new functionality. They are aware of this issue and working on a fix now.``