Why it matters
An idle load balancer does nothing but cost money, and it is easy to miss because it has no compute of its own.How nOps finds it
nOps reads your Azure Load Balancer billing. A load balancer is flagged when its rule hours were billed on all of the last 14 days and it processed no data at all in that time. The saving is everything the load balancer cost in the last 7 days, net of discounts and scaled to a month, and must be at least $5 a month. Load balancers in accounts where credits cover almost all of the cost are left out.Before you start
Permission to delete load balancers in the subscription (for example Network Contributor).How to implement
- In the Azure portal, open Load balancers and select the load balancer.
- Check Backend pools, Frontend IP configuration and any DNS records or routes that point at it, and confirm nothing depends on it.
- Delete the load balancer, or run
az network lb delete --resource-group MY_RG --name MY_LB. - Delete its public IP address too if nothing else uses it, since public IPs are billed separately.
- If the load balancer is defined in Terraform, Bicep or ARM templates, remove it there as well.
Risks and considerations
- A load balancer used only for failover can carry no traffic for weeks. Check before deleting.
- Load balancers created by AKS or other managed services are recreated by that service. Change the service instead.
- A deleted load balancer cannot be restored. You would recreate it with a new frontend unless you keep its public IP.
FAQs
What if I only want to keep the public IP address?
What if I only want to keep the public IP address?
Keep the public IP resource and delete only the load balancer. You can attach the IP to a new load balancer later.