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 supports moved block which allows moving between two resources of different types. By supporting the new protocol, the resources from azurerm provider could be moved to azapi provider.
@ms-henglu does the end result behavior differ much from a removed and import block? Curious to see how this behaviors works across layers of modules as well.
The major difference is the moved block could be used inside a module(it could also work across layers of modules), so for the module users, the migration could be transparent and without breaking changes.
The plan output is different:
The removed + import output: One resource will be imported and one resource will be no longer managed by Terraform.
The moved output: The azurerm resource has been moved to azapi resource.
Terraform supports
moved
block which allows moving between two resources of different types. By supporting the new protocol, the resources fromazurerm
provider could be moved toazapi
provider.Here's an example:
The text was updated successfully, but these errors were encountered: