Configuring Real-Time events

Configuring Real-Time Events

Guardrails uses Azure Monitor events to keep up with Azure resources as they are created, destroyed, and modified. This allows policy enforcement in real time. Below are two ways to capture these events.

Event Pollers or Event Handlers

Turbot Supports recommends using Azure Pollers in all circumstances.

It is possible to configure both polling and event handlers, they should never be enabled at the same time.

Event Poller

Guardrails Azure Event Pollers are a pull-based mechanism. They are enabled by default. The pollers query Audit Logs (Azure Monitor) at regular intervals (every minute by default) for events inside the polling window (defaults to events in the last 10 minutes).

Event Handlers

Guardrails Azure Event Handlers use push-based mechanism and are responsible for sending Azure events back to Guardrails for processing.

The basic flow is as follows: