azure-evg-systemtopic-located-in-region
match (record)
{
"field": "location",
"resource_type": "Microsoft.EventGrid/systemTopics"
}
emit
| source type | * |
|---|---|
| target type | AdministrativeBoundary |
| source | <Event Grid system topic> |
| target | <Azure region> |
Narrative
{systemTopic.name} is located in Azure region {region.name}.
Raw rule rules/explicit/azure-eventgrid.yaml
id: azure-evg-systemtopic-located-in-region
emits: LocatedIn
applies_to:
- azure
match_record:
resource_type: Microsoft.EventGrid/systemTopics
field: location
emit:
source_type: '*'
target_type: AdministrativeBoundary
source: <Event Grid system topic>
target: <Azure region>
api_source: GET /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.EventGrid/systemTopics
evidence_field: location
narrative: '{systemTopic.name} is located in Azure region {region.name}.'