azure-evg-rg-contains-domain

explicit azure emits Contains

match (record)

{ "field": "id", "resource_type": "Microsoft.EventGrid/domains" }

emit

source typeAdministrativeBoundary
target type*
source<resource group from id>
target<Event Grid domain>

Narrative

{rg.name} contains Event Grid domain {domain.name}.

Raw rule rules/explicit/azure-eventgrid.yaml

id: azure-evg-rg-contains-domain
emits: Contains
applies_to:
- azure
match_record:
  resource_type: Microsoft.EventGrid/domains
  field: id
emit:
  source_type: AdministrativeBoundary
  target_type: '*'
  source: <resource group from id>
  target: <Event Grid domain>
  api_source: GET /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.EventGrid/domains
  evidence_field: id
  narrative: '{rg.name} contains Event Grid domain {domain.name}.'
move · open · esc close