How to update Load Balancer Backend pool Nic in batch

Shijun Lv 86 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.
2,280 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
421 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 40,256 Reputation points Microsoft Employee
    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