Search code examples
azure-vm-scale-setazure-load-balancer

Azure forcing to create Standard LB while Basic LB is sufficient


I have referred to this link but that solution does not work. Basic Load Balancer with scale set "Virtual Machine Scale Set cannot use a basic SKU load balancer when singlePlacementGroup property is false (lar)."

Issue: Azure forcing to create a Standard LB instead of Basic LB. I created a VMSS with SinglePlacement Group = Enable However while creating Basic Load Balancer, Azure does not allow me to add this VMSS to the backendpool and forces me to Create a STANDARD Load balancer and says “Single Placement Group is set to False” on the VMSS. While it is not true, see attached below screenshots.

Thanks Venkat

https://i.sstatic.net/lRSsF.jpg
https://i.sstatic.net/HEV24.jpg
https://i.sstatic.net/iV0sQ.jpg

Solution

  • I tried to reproduce the same in my environment I am getting the same error as below:

    enter image description here

    To resolve this issue, try to recreate a virtual machine scale set in advance -> click fixed spreading and uncheck the Enable scaling beyond 100 instances

    enter image description here

    And networking tab check whether you have provided correct virtual network from your resources as below. I have created load balancer -> vmss -> networking tab select load balancer created backend pool

    enter image description here

    Created virtual machine scale set:

    enter image description here

    After unchecking Enable scaling beyond 100 instances -> networking -> add load balancing -> use existing -> save

    enter image description here

    My load balancing has been successfully added in virtual machine scale set in Basic SKU

    enter image description here


    Additional details, I have created separate load balancer as basic and added to virtual machine scale set and check whether you have given correct frontend Ip as public, backend pool, health probes

    enter image description here

    Make sure to create load balancing rules as below:

    enter image description here

    Reference: Virtual machine scale sets and placement groups - | Microsoft Docs