azure.loadbalancer¶
Load Balancer Resource
- example
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"
- example
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
Filters¶
frontend-public-ip¶
Filters load balancers by frontend public ip.
- example
Find all load balancers with a ipv6 public front end.
policies:
- name: loadbalancer-with-ipv6-frontend
resource: azure.loadbalancer
filters:
- type: frontend-public-ip
key: properties.publicIPAddressVersion
op: in
value_type: normalize
value: "ipv6"
properties:
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
- version
required:
- type