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
$ terraform import azurerm_resource_group.xxxxx /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxx-xxx-xxx-xxxxxx/providers/Microsoft.Storage/storageAccounts/xxxxxxxxxxxxxxxx
Error: Error parsing Resource ID "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxx-xxx-xxx-xxxxxx/providers/Microsoft.Storage/storageAccounts/xxxxxxxxxxxxxxxx": ID contained more segments than required: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxx-xxx-xxx-xxxxxx/providers/Microsoft.Storage/storageAccounts/xxxxxxxxxxxxxxxx"
Apparently this should've been fixed since version 2.1.0 of the provider as per #5998 however appears to be not! Please help.
EDIT: Also not working for provider "azurerm" (hashicorp/azurerm) 2.1.0 - so must be unrelated.
The text was updated successfully, but these errors were encountered:
Terraform requires that you use the Resource ID for the specific Resource that's being imported - in this instance, the Resource ID of an Resource Group - whereas it appears that the Resource ID for a Storage Account is being used, which is why Terraform is returning this error.
Instead you should be able to use the ID of the Resource Group, namely:
Rather than the ID of the Storage Account and this import should work - would you be able to take a look? Since this should be fixed by updating the Resource ID being used, I'm going to close this issue for the moment.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Jun 19, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Apparently this should've been fixed since version 2.1.0 of the provider as per #5998 however appears to be not! Please help.
EDIT: Also not working for provider "azurerm" (hashicorp/azurerm) 2.1.0 - so must be unrelated.
The text was updated successfully, but these errors were encountered: