Cost Management Exports for current subscription (doesn’t include Resource Group scopes)
Returns all cost exports for current subscription scope
policies: - name: get-cost-management-exports resource: azure.cost-management-export
Find Cost Management Exports with last execution more than X days ago.
Returns all cost exports that didn’t run in last 30 days.
policies: - name: find-stale-management-exports resource: azure.cost-management-export filters: - type: last-execution age: 30
properties: age: minimum: 0 type: integer type: enum: - last-execution required: - age - type
Trigger Cost Management Export execution
If you see an error
Error: (400) A valid email claim is required. Email claim is missing in the request header.
please ensure used Service Principal has proper email configured.
Find all exports that have not been executed in the last 30 days and then trigger a manual export.
policies: - name: execute-stale-management-exports resource: azure.cost-management-export filters: - type: last-execution age: 30 actions: - type: execute
properties: type: enum: - execute required: - type