paraameterising the looad balancer for backend pool in the azure

Diptesh Kumar 101 Reputation points
2024-05-19T07:00:04.4666667+00:00

We have load balancer

Need to Add an option called -updateLoadBalancer which can be used to add or remove servers from the load balancer backend pool

the command line

-updateLoadBalancer remove -serverType PPWeb - serverSet Primary

should add a step to the plan that would remove the primary servers from the pp web load balancer.

if that command line is run with the -apply command, then the plan would be executed and the servers would be removed from the load balancer.

the command line

-updateLoadBalancer add -serverType PayerpathWeb - serverSet Primary

should add a step to the plan that would add the primary servers to the pp web load balancer.

if that command line is run with the -apply command, then the plan would be executed and the servers would be added to the load balancer.

-updateLoadBalancer remove -serverType PPWeb - serverSet Primary

-updateLoadBalancer add -serverType PPWeb - serverSet Primary

load balancer details is dynamic, it can be from ppweb ,ppdb based on the parameters

Please suggest how we can achieve this. Thank you.

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
412 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,418 questions
{count} votes