azure-aml-workspace-located-in-rg

explicit azure emits LocatedIn

match (record)

{ "field": "id", "resource_type": "Microsoft.MachineLearningServices/workspaces" }

emit

source typeAnalyticsService
target typeResourceGroup
source<AML workspace node>
target<resource group containing the workspace>

Narrative

AML workspace {workspace.name} is located in resource group {rg.name}.

Raw rule rules/explicit/azure-machinelearning.yaml

id: azure-aml-workspace-located-in-rg
emits: LocatedIn
applies_to:
- azure
match_record:
  resource_type: Microsoft.MachineLearningServices/workspaces
  field: id
emit:
  source_type: AnalyticsService
  target_type: ResourceGroup
  source: <AML workspace node>
  target: <resource group containing the workspace>
  api_source: GET /subscriptions/{sub}/providers/Microsoft.MachineLearningServices/workspaces
  evidence_field: id (parse resource group from ARM resource ID)
  narrative: AML workspace {workspace.name} is located in resource group {rg.name}.
move · open · esc close