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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I created a basic load balancer with two frontend IP configurations
Then, I ran the cmdlet to remove one of the config, and it returns json showing only one frontend remanining
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:
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