Share via

Can't add vmss to azure load balancer backend pool

Anirudh Mounasamy 101 Reputation points
Feb 20, 2023, 4:43 AM

Hi,

I'm facing an issue with azure load balancer that when I try to add a vmss into the backend pool it's not getting added.azueree2

I'm seeing that under resource name there is no instances but just now I have added a vmss into it.

I'm not sure about the message above

{Backend pool <BEpoolname> was added to Virtual machine scale set <VMSS_name> Upgrade all the instances of <VMSS_name> for this change to work}

Can anyone tell me what does this mean or what do I need to do?

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
463 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
423 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 26,421 Reputation points
    Feb 20, 2023, 5:55 AM

    Hello Anirudh Mounasamy

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    The message you see the Azure Portal indicates that the backend pool was successfully added to the Azure load balancer, but for the change to take effect, you need to upgrade all the instances of the virtual machine scale set (VMSS) that you added to the backend pool.

    When you add a VMSS to a backend pool, the load balancer needs to know the IP addresses of the instances in the VMSS to route traffic to them. However, these IP addresses are not available until the VMSS instances are created or updated. When you upgrade the VMSS, new instances are created or existing ones are updated with new IP addresses, which allows the load balancer to route traffic to them.

    Refer below articles, for configuring a Virtual Machine Scale Set with an existing Azure Load Balancer,

    Azure PowerShell: https://learn.microsoft.com/en-us/azure/load-balancer/configure-vm-scale-set-powershell

    Azure CLI: https://learn.microsoft.com/en-us/azure/load-balancer/configure-vm-scale-set-cli

    Azure Portal: https://learn.microsoft.com/en-us/azure/load-balancer/configure-vm-scale-set-portal

    To upgrade the VMSS and add the instances to the backend pool from Azure Portal, you can follow these steps:

    1. Navigate to the Azure portal and select the VMSS that you want to add to the backend pool.
    2. Select "Update" from the top menu and then select "Upgrade".
    3. Choose the appropriate upgrade policy and configure any other settings as needed.
    4. Review and validate the upgrade, then click "OK" to initiate the upgrade.

    Once the upgrade is complete, the instances in the VMSS should have IP addresses that the load balancer can use to route traffic to them, and the backend pool should be fully functional.

    Hope this helps.

    If you need further help on this, tag me in a comment.

    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


1 additional answer

Sort by: Most helpful
  1. Noble Kyeremateng 0 Reputation points
    Apr 9, 2023, 12:09 AM

    When creating the VMSS, select "uniform" as the orchestration mode. This will enable you to update the instances when they are added to the LB backend pool. Choosing flexible mode does support an upgrade.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.