Control: Network Load Balancer with Missing Backend
Description
Load balancer rules without associated backend pools are ineffective and waste resources. These rules should be removed to optimize costs.
Usage
Run the control in your terminal:
powerpipe control run azure_thrifty.control.network_load_balancer_with_missing_backend
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_thrifty.control.network_load_balancer_with_missing_backend --share
Steampipe Tables
SQL
select r.id as resource, case when r.backend_address_pool_id is null then 'alarm' else 'ok' end as status, case when r.backend_address_pool_id is null then r.name || ' in load balancer ' || r.load_balancer_name || ' has no backend pool configured.' else r.name || ' has backend pool configured.' end as reason , r.resource_group , display_name as subscriptionfrom azure_lb_rule as r, azure_subscription as subwhere sub.subscription_id = r.subscription_id;