Load Balancer¶
Filters¶
- Standard Value Filter (see Generic Filters)
Model: LoadBalancer
- ARM Resource Filters (see Generic Filters)
Metric Filter - Filter on metrics from Azure Monitor - (see Load Balancer Supported Metrics)
Tag Filter - Filter on tag presence and/or values
Marked-For-Op Filter - Filter on tag that indicates a scheduled operation for a resource
frontend-public-ip
Filters load balancers by the frontend public IPproperties: default: type: object key: type: string op: enum: - eq - equal - ne - not-equal - gt - greater-than - ge - gte - le - lte - lt - less-than - glob - regex - regex-case - in - ni - not-in - contains - difference - intersect type: enum: - frontend-public-ip value: oneOf: - type: array - type: string - type: boolean - type: number - type: 'null' value_from: additionalProperties: 'False' properties: expr: oneOf: - type: integer - type: string format: enum: - csv - json - txt - csv2dict url: type: string required: - url type: object value_regex: type: string value_type: enum: - age - integer - expiration - normalize - size - cidr - cidr_size - swap - resource_count - expr - unique_size - date required: - type
Actions¶
ARM Resource Actions (see Generic Actions)
Example Policies¶
This policy will filter load balancers with an ipv6 frontend public IP
policies:
- name: loadbalancer-with-ipv6-frontend
resource: azure.loadbalancer
filters:
- type: frontend-public-ip
key: properties.publicIPAddressVersion
op: in
value_type: normalize
value: "ipv6"
This policy will find all load balancers with 1000 or less transmitted packets over the last 72 hours
policies:
- name: notify-inactive-loadbalancer
resource: azure.loadbalancer
filters:
- type: metric
metric: PacketCount
op: le
aggregation: total
threshold: 1000
timeframe: 72