azure-storage-account-contains-fileshare

explicit azure emits Contains

match (record)

{ "field": "id", "resource_type": "Microsoft.Storage/storageAccounts/fileServices/shares" }

emit

source typeObjectStorage
target typeFileStorage
source<storageAccount node>
target<fileShare node>

Narrative

{account.name} contains file share {share.name}.

Raw rule rules/explicit/azure-storage.yaml

id: azure-storage-account-contains-fileshare
emits: Contains
applies_to:
- azure
match_record:
  resource_type: Microsoft.Storage/storageAccounts/fileServices/shares
  field: id
emit:
  source_type: ObjectStorage
  target_type: FileStorage
  source: <storageAccount node>
  target: <fileShare node>
  api_source: Microsoft.Storage/storageAccounts/fileServices/shares GET
  evidence_field: id
  narrative: '{account.name} contains file share {share.name}.'
move · open · esc close