How to update Load Balancer Backend pool Nic in batch

Shijun Lv 126 Reputation points Microsoft Employee
2024-07-11T05:21:05.4133333+00:00

Our service has case that need add multiple Nic into Load balancer backend pool.

However, it seems current api https://learn.microsoft.com/en-us/rest/api/load-balancer/load-balancer-backend-address-pools/create-or-update?view=rest-load-balancer-2024-01-01&tabs=HTTP#code-try-0

Cannot support update load Balancer backend pool Nics.

if will return

{

"error": {

"code": "ModificationOfNICIpConfigBackendPoolNotSupported",

"message": "Operation on backend pool /subscriptions/0c530e83-2bf4-40f0-902f-f897f0e2cd7e/resourceGroups/hongluchen-doa-test-rg/providers/Microsoft.Network/loadBalancers/lb-honglu-doa-test-1/backendAddressPools/be-pool-01 not allowed since it adds/modifies/deletes backend address pool members that are specified with a network interface IP configuration.",

"details": []

}

}

May I know how to add Nic in batch into the backend pool?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
0 comments No comments
{count} votes

Answer accepted by question author
  1. KapilAnanth 49,846 Reputation points Moderator
    2024-07-11T07:44:04.0966667+00:00

    Shijun Lv ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    As the error message states, It appears is no support for NIC Based BackendPool using LoadBalancer REST API.

    • I shall check this internally and get back to you soon.
    • Meanwhile, you can use the NIC's REST API to achieve this.

    Cheers,

    Kapil


0 additional answers

Sort by: Most helpful

Your answer

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