Remove-AzLoadBalancerFrontendIpConfig doesn't work

Yasmin, Fitri 266 Reputation points
2023-06-01T07:56:40.3266667+00:00

I created a basic load balancer with two frontend IP configurations User's image

Then, I ran the cmdlet to remove one of the config, and it returns json showing only one frontend remanining

User's image

However when I check in the portal, the first front end still exists. I also checked with the Get-AzLoadbalancer command, the first frontend is still showing:

User's image

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
422 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,300 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yasmin, Fitri 266 Reputation points
    2023-06-01T08:05:57.0633333+00:00

    Solved it, just need to pipe it to the Set-AzLoadBalancer. This wasn't mentioned in the docs

    Remove-AzLoadBalancerFrontendIpConfig -Name "myFrontend1" -LoadBalancer $BasicLB | Set-AzLoadBalancer

    1 person found this answer helpful.