You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
β·
β Error: parsing "/subscriptions/<ID>/resourceGroups/commonHoboRG143/providers/Microsoft.Network/VirtualNetworks/<ID>/subnets/mlci-cg-scus-ai-poc-dev": parsing segment "virtualNetworks": parsing the Subnet ID: the segment at position 6 didn't matchββ Expected a Subnet ID that matched:ββ > /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/virtualNetworks/virtualNetworksValue/subnets/subnetValue ββ However this value was provided:ββ > /subscriptions/<ID>/resourceGroups/commonHoboRG143/providers/Microsoft.Network/VirtualNetworks/<ID>/subnets/mlci-cg-scus-ai-poc-devββ The parsed Resource ID was missing a value for the segment at position 6β (which should be the literal value "virtualNetworks").ββββ with module.azurerm_machine_learning_compute_instance.module.azurerm_machine_learning_compute_instance["mlci-cg-scus-ai-poc-dev"].azurerm_machine_learning_compute_instance.this, β on ..\..\..\Modules\Base\terraform-azurerm_machine_learning_compute_instance\main.tf line 39, in resource "azurerm_machine_learning_compute_instance" "this":β 39: subnet_resource_id = try(var.subnet_resource_id, null)β
Expected Behaviour
The provider should accept virtualNetwork on the generated resource id.
Actual Behaviour
Terraform used the selected providers to generate the following execution plan. Resource
actions are indicated with the following symbols:-/+ destroy and then create replacement
Terraform will perform the following actions:# module.azurerm_machine_learning_compute_instance.module.azurerm_machine_learning_compute_instance["mlci-cg-scus-ai-poc-dev"].azurerm_machine_learning_compute_instance.this must be replaced-/+resource"azurerm_machine_learning_compute_instance""this" {
~ id="/subscriptions/<ID>/resourceGroups/rgCGscus-AI-POC-Workload/providers/Microsoft.MachineLearningServices/workspaces/MLW-CG-SCUS-AI-POC-DEV/computes/mlci-cg-scus-ai-poc-dev"-> (known after apply)
name="mlci-cg-scus-ai-poc-dev"-subnet_resource_id="/subscriptions/<ID>/resourceGroups/commonHoboRG143/providers/Microsoft.Network/VirtualNetworks/<ID>/subnets/mlci-cg-scus-ai-poc-dev"->null# forces replacement -tags={} ->null# (5 unchanged attributes hidden)
~ identity {
-identity_ids=[] ->null
~ principal_id="<ID>"-> (known after apply)
~ tenant_id="<ID>"-> (known after apply)
# (1 unchanged attribute hidden)
}
}
Plan:1 to add, 0 to change, 1 to destroy.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
hjivani
changed the title
The parsed Resource ID was missing a value for the segment at position 6 β (which should be the literal value "virtualNetworks") #33982
The parsed Resource ID was missing a value for the segment at position 6 β (which should be the literal value "virtualNetworks")
Oct 5, 2023
Is there an existing issue for this?
Community Note
Terraform Version
1.6.0
AzureRM Provider Version
3.73.0
Affected Resource(s)/Data Source(s)
azurerm_machine_learning_compute_instance
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The provider should accept virtualNetwork on the generated resource id.
Actual Behaviour
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: