Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.MachineLearningServices │ The parsed Resource ID was missing a value for the segment at position 5 | parsing segment "staticMicrosoftDatabricks": expected the segment "Microsoft.Databricks" #22818

Closed
1 task done
mmohamednazeer opened this issue Aug 4, 2023 · 3 comments · Fixed by #22865

Comments

@mmohamednazeer
Copy link

mmohamednazeer commented Aug 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

We are creating an databricks workspace through terraform, while creating databricks workspace we are adding aml workspace id as part custom parameters.

But earlier it was worked as expected not from today its throwing the parse error.

Its weird why they expecting "Microsoft.Databricks" as a provider for aml workspace id.

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.4.2

AzureRM Provider Version

3.68.0

Affected Resource(s)/Data Source(s)

azurerm_databricks_workspace

Terraform Configuration Files

resource "azurerm_databricks_workspace" "databricks_ws" {
  name                = "mydatabrics_ws_name"
  resource_group_name = var.resource_group_name
  location            = var.location
  sku                 = "premium"  

  custom_parameters {
    no_public_ip        = false
    public_subnet_name  = azurerm_subnet.databricks_public_subnet.name
    private_subnet_name = azurerm_subnet.databricks_private_subnet.name
    virtual_network_id  = var.virtual_network_id

    public_subnet_network_security_group_association_id  = azurerm_subnet_network_security_group_association.public.id
    private_subnet_network_security_group_association_id = azurerm_subnet_network_security_group_association.private.id

    machine_learning_workspace_id = var.machine_learning_workspace_id
  }

  tags = var.tags
}

Debug Output/Panic Output

│ Error: parsing "/subscriptions/<!-- my subscription>/resourceGroups/<!-- my resource group name>/providers/Microsoft.MachineLearningServices/workspaces/<!-- my aml workspace name>": parsing segment "staticMicrosoftDatabricks": parsing the Workspace ID: the segment at position 5 didn't match

│ Expected a Workspace ID that matched:

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


│ However this value was provided:

│ > /subscriptions/<!-- my subscription>/resourceGroups/<!-- my resource group name>/providers/Microsoft.MachineLearningServices/workspaces/<!-- my aml workspace name>

│ The parsed Resource ID was missing a value for the segment at position 5
│ (which should be the name of the Resource Provider [for example 'Microsoft.Databricks']).



│   with module.databricksws.azurerm_databricks_workspace.databricks_ws,
│   on ../../modules/databricks/databricks_ws.tf line 82, in resource "azurerm_databricks_workspace" "databricks_ws":
│   82:     machine_learning_workspace_id = var.machine_learning_workspace_id


##[error]Terraform command 'apply' failed with exit code '1'.
##[error]╷
│ Error: parsing "/subscriptions/<!-- my subscription>/resourceGroups/<!-- my resource group name>/providers/Microsoft.MachineLearningServices/workspaces/<!-- my aml workspace name>": parsing segment "staticMicrosoftDatabricks": parsing the Workspace ID: the segment at position 5 didn't match
│ 
│ Expected a Workspace ID that matched:
│ 
│ > /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Databricks/workspaces/workspaceValue
│ 
│ However this value was provided:
│ 
│ > /subscriptions/<!-- my subscription>/resourceGroups/<!-- my resource group name>/providers/Microsoft.MachineLearningServices/workspaces/<!-- my aml workspace name>
│ 
│ The parsed Resource ID was missing a value for the segment at position 5
│ (which should be the name of the Resource Provider [for example 'Microsoft.Databricks']).
│ 
│ 
│ 
│   with module.databricksws.azurerm_databricks_workspace.databricks_ws,
│   on ../../modules/databricks/databricks_ws.tf line 82, in resource "azurerm_databricks_workspace" "databricks_ws":
│   82:     machine_learning_workspace_id = var.machine_learning_workspace_id
│ 
╵

Expected Behaviour

Data bricks workspace should be created with azure machine learning workspace as custom parameter.

Actual Behaviour

parsing "/subscriptions/bcb49ec5-052d-46ed-837d-a1e1959fe22a/resourceGroups/rg-mf-dev-it4it9/providers/Microsoft.MachineLearningServices/workspaces/amlws-mf-dev-it4it9": parsing segment "staticMicrosoftDatabricks": parsing the Workspace ID: the segment at position 5 didn't match

Expected a Workspace ID that matched:

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

However this value was provided:

/subscriptions/<!--mysubscriptionid>/resourceGroups/<!--myresourcegroup>/providers/Microsoft.MachineLearningServices/workspaces/<!--myamlworkspacename>

The parsed Resource ID was missing a value for the segment at position 5
(which should be the name of the Resource Provider [for example 'Microsoft.Databricks']).

Steps to Reproduce

terraform apply

Important Factoids

no

References

No response

@WodansSon
Copy link
Collaborator

Hi @mmohamednazeer, thank you for opening this issue. I will look in to it and see if anything has changed recently. 🚀

@mmohamednazeer
Copy link
Author

mmohamednazeer commented Aug 9, 2023

Thanks for fixing the issue!

Copy link

github-actions bot commented May 8, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants