azure-evg-topic-located-in-region

explicit azure emits LocatedIn

match (record)

{ "field": "location", "resource_type": "Microsoft.EventGrid/topics" }

emit

source type*
target typeAdministrativeBoundary
source<Event Grid topic>
target<Azure region>

Narrative

{topic.name} is located in Azure region {region.name}.

Raw rule rules/explicit/azure-eventgrid.yaml

id: azure-evg-topic-located-in-region
emits: LocatedIn
applies_to:
- azure
match_record:
  resource_type: Microsoft.EventGrid/topics
  field: location
emit:
  source_type: '*'
  target_type: AdministrativeBoundary
  source: <Event Grid topic>
  target: <Azure region>
  api_source: GET /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.EventGrid/topics
  evidence_field: location
  narrative: '{topic.name} is located in Azure region {region.name}.'
move · open · esc close