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: Failed to import /subscriptions/aaaa-bbbb-cccc/resourceGroups/rg-test/providers/Microsoft.Compute/virtualMachines/vm-test as azurerm_windows_virtual_machine.vm-test: exit status 1
Error: flattening `os_disk`: parsing "/subscriptions/aaaa-bbbb-cccc/resourcegroups/rg-test/providers/Microsoft.Compute/disks/vm-test_OsDisk": parsing segment "staticResourceGroups": parsing the ManagedDisk ID: the segment at position 2 didn't match
Expected a ManagedDisk ID that matched:
> /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Compute/disks/diskValue
However this value was provided:
> /subscriptions/aaaa-bbbb-cccc/resourcegroups/rg-test/providers/Microsoft.Compute/disks/vm-test_OsDisk
The parsed Resource ID was missing a value for the segment at position 2
(which should be the literal value "resourceGroups").
The text was updated successfully, but these errors were encountered:
@DinnyMN The provider has a strict requirement for the resource id casings. Presumably your resource is created in an old provider version, or even not via Terraform. If that is the case, I'll suggest to use tools like Azure CLI to make a PUT request to the VM, with all the payload unchanged, except the resourcegroup, changed into resourceGroup, for the properties.storageProfile.osDisk.managedDisk.id.
When exporting a VM I get an 'Failed to import' error. The os disk fails to import due to casing of resourceGroup.
Is this an issue here or on an upstream provider?
/subscriptions/12345678-1234/resourceGroups/example-resource-group/providers/Microsoft.Compute/disks/diskValue
/subscriptions/aaaa-bbbb-cccc/resourcegroups/rg-test/providers/Microsoft.Compute/disks/vm-test_OsDisk
The text was updated successfully, but these errors were encountered: