Policy assignments

Filters

Actions

Example Policies

This policy will find all policy assignments named ‘test-assignment’ and delete them.

policies:
  - name: remove-test-assignments
    resource: azure.policyassignments
    filters:
      - type: value
        key: properties.displayName
        value_type: normalize
        op: eq
        value: 'test-assignment'
    actions:
      - type: delete