azure.mgmt.web resources¶
azure.appserviceplan¶
Application Service Plan
- example
policies:
- name: basic-tier-plans
resource: azure.appserviceplan
filters:
- type: value
key: sku.tier
op: eq
value: Basic
Actions¶
resize-plan¶
Resize App Service Plans
policies:
- name: azure-resize-plan
resource: azure.appserviceplan
actions:
- type: resize-plan
size: F1
count: 1
properties:
count:
type: integer
size:
enum:
- F1
- B1
- B2
- B3
- D1
- S1
- S2
- S3
- P1
- P2
- P3
- P1V2
- P2V2
- P3v2
- PC2
- PC3
- PC4
type: string
type:
enum:
- resize-plan
required:
- type
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