azure.image

Virtual Machine Image

example:

Returns all virtual machine images named my-test-vm-image

policies:
  - name: get-vm-image
    resource: azure.image
    filters:
      - type: value
        key: name
        op: eq
        value: my-test-vm-image

Filters

advisor-recommendation

Filter resources by Azure Advisor Recommendations

Select all categories with ‘all’

example:

policies:
  - name: disks-with-cost-recommendations
    resource: azure.disk
    filters:
      - type: advisor-recommendation
        category: Cost
        key: '[].properties.recommendationTypeId'
        op: contains
        value: '48eda464-1485-4dcf-a674-d0905df5054a'

Actions