azure-aml-workspace-located-in-rg
match (record)
{
"field": "id",
"resource_type": "Microsoft.MachineLearningServices/workspaces"
}
emit
| source type | AnalyticsService |
|---|---|
| target type | ResourceGroup |
| 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}.