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

Migrating to a renamed resource #5561

Closed
arestarh opened this issue Jan 30, 2020 · 2 comments
Closed

Migrating to a renamed resource #5561

arestarh opened this issue Jan 30, 2020 · 2 comments

Comments

@arestarh
Copy link
Contributor

Hi.

Recently several resource types related to Azure Backup were renamed and marked as deprecated - see #5170.

According to suggestions in documentation https://www.terraform.io/docs/providers/azurerm/r/recovery_services_protected_vm.html I've used instructions from https://www.terraform.io/docs/providers/azurerm/guides/migrating-between-renamed-resources.html and tried to rename several resource types, e.g.

terraform state mv azurerm_recovery_services_protection_policy_vm.example azurerm_backup_policy_vm.example

but encountered next error with message:
Cannot move azurerm_recovery_services_protection_policy_vm.example
to azurerm_backup_policy_vm.example: resource types don't match.

Seems like it's limitation of terraform itself - see https://github.com/hashicorp/terraform/blob/93e29b71a4312649f6daebe4f39353aed5aa67d5/command/state_mv.go#L462. But I'm not sure.

Could you please tell me if I was doing something wrong or maybe article a bit outdated https://www.terraform.io/docs/providers/azurerm/guides/migrating-between-renamed-resources.html ?

@arestarh
Copy link
Contributor Author

@ghost
Copy link

ghost commented Mar 30, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant