Open splunker1337 opened 1 month ago
Hi, I got this error as well:
2024-07-18T01:31:07.2401030Z │ Error: parsing VMID "/subscriptions/123abc/resourceGroups/test-env-aks-rg-ressources/providers/Microsoft.Compute/virtualMachineScaleSets/aks-minion-xxx-vmss/virtualMachines/aks-minion-xxx-vmss_2" for disk attachment: parsing "/subscriptions/123abc/resourceGroups/test-env-aks-rg-ressources/providers/Microsoft.Compute/virtualMachineScaleSets/aks-minion-12761558-vmss/virtualMachines/aks-minion-12761558-vmss_2": parsing segment "staticVirtualMachines": parsing the VirtualMachine ID: the segment at position 6 didn't match`
2024-07-18T01:31:07.2405934Z │ Expected a VirtualMachine ID that matched:
2024-07-18T01:31:07.2408454Z │ > /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Compute/virtualMachines/virtualMachineValue
2024-07-18T01:31:07.2432393Z │ However this value was provided:
2024-07-18T01:31:07.2434483Z │ > /subscriptions/123abc/resourceGroups/test-env-aks-rg-ressources/providers/Microsoft.Compute/virtualMachineScaleSets/aks-minion-xxx-vmss/virtualMachines/aks-minion-xxx-vmss_2
2024-07-18T01:31:07.2436612Z │ The parsed Resource ID was missing a value for the segment at position 6
2024-07-18T01:31:07.2437517Z │ (which should be the literal value "virtualMachines").
I get the same error when trying to increase the size of a disk used as a statically provisioned volume in AKS.
terraform version = 1.6.3 hashicorp/azurerm version = 3.93.0
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.0.0
Affected Resource(s)/Data Source(s)
azurerm_managed_disk
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Disk size would increase and terraform apply would finish successfully
Actual Behaviour
Terraform apply fails, because it is expecting a virtual machine instead of a virtual machine scale set virtual machine
Steps to Reproduce
No response
Important Factoids
No response
References
No response