Web Applications¶
Filters¶
- Standard Value Filter (see Generic Filters)
Model: Site
- ARM Resource Filters (see Generic Filters)
Metric Filter - Filter on metrics from Azure Monitor - (see Web App 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
Actions¶
ARM Resource Actions (see Generic Actions)
Example Policies¶
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
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