azure.webapp¶
Web Applications Resource
- example:
This policy will find all web apps with 10 or less requests over the last 72 hours
policies:
- name: webapp-dropping-messages
resource: azure.webapp
filters:
- type: metric
metric: Requests
op: le
aggregation: total
threshold: 10
timeframe: 72
actions:
- type: mark-for-op
op: delete
days: 7
- example:
This policy will find all web apps with 1000 or more server errors over the last 72 hours
policies:
- name: webapp-high-error-count
resource: azure.webapp
filters:
- type: metric
metric: Http5xxx
op: ge
aggregation: total
threshold: 1000
timeframe: 72
- example:
This policy will find all web apps with minimum TLS encryption version not equal to 1.2
policies:
- name: webapp-min-tls-enforcement
resource: azure.webapp
filters:
- type: configuration
key: minTlsVersion
value: '1.2'
op: ne