Skip to content

Azure Machine Learning Deployment Fails in Unrestricted Workspace Due to Workspace ID Parsing Error #4746

@rahulhanumantchavan

Description

@rahulhanumantchavan

Describe the bug
When deploying an Azure Machine Learning workspace in an unrestricted workspace using UI, The deployment fails with a Workspace ID parsing error.

Note:

  1. Same steps works successfully in restricted workspace / base workspace.
  2. Tried both with expose externally enabled and disabled
  3. Same results for eastus2 and switzerlandnorth region.

The parsed Resource ID was missing a value for the segment at position 7
(which should be the user specified value for this workspace [for example "workspaceValue"]).

Error: parsing "/subscriptions/*******/resourceGroups/rg-tre-ws/providers/Microsoft.OperationalInsights/workspaces/": parsing the Workspace ID: the segment at position 7 didn't match

Expected a Workspace ID that matched:

/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.OperationalInsights/workspaces/workspaceValue

However this value was provided:

/subscriptions/*******/resourceGroups/rg-tre-ws/providers/Microsoft.OperationalInsights/workspaces/

The parsed Resource ID was missing a value for the segment at position 7
(which should be the user specified value for this workspace [for example "workspaceValue"]).

with azurerm_application_insights.ai,
on main.tf line 94, in resource "azurerm_application_insights" "ai":
94: workspace_id = data.azurerm_log_analytics_workspace.ws.id

Steps to reproduce

  1. Create Azure Machine Learning Workspace Services in Unrestricted Workspace
  2. Deployment fails with error "workspace-service is updating_failed"

Error: parsing "/subscriptions/<subscription_id>/resourceGroups/rg-tre/providers/Microsoft.OperationalInsights/workspaces/": parsing the Workspace ID: the segment at position 7 didn't match
Expected a Workspace ID that matched:

/subscriptions/<example_subscription_id>/resourceGroups/example-resource-group/providers/Microsoft.OperationalInsights/workspaces/workspaceValue
However this value was provided:
/subscriptions/<subscription_id>/resourceGroups/rg-tre/providers/Microsoft.OperationalInsights/workspaces/
The parsed Resource ID was missing a value for the segment at position 7 (which should be the user-specified value for this workspace [for example "workspaceValue"]).
with azurerm_application_insights.ai, on main.tf line 94, in resource "azurerm_application_insights" "ai":
94: workspace_id = data.azurerm_log_analytics_workspace.ws.id

Azure TRE release version (main):

Azure TRE
UI Version:
0.8.15
API Version:
0.24.5

Deployed Azure TRE components - click the (i) in the UI:
Restricted Workspace
Base Workspace
Airlock Import Review Workspace

Restricted Workspace workspace services deployed:
Azure Machine Learning
Apache Guacamole - Virtual Desktop Service

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions