Import of azurerm_mysql_flexible_server
triggers replace when subscription changes
#25165
Open
1 task done
Labels
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.91.0
Affected Resource(s)/Data Source(s)
azurerm_mysql_flexible_server
Terraform Configuration Files
I wasn't able to reproduce the issue yet, but will try to come up with a working example.
Debug Output/Panic Output
Expected Behaviour
We have moved an
azurerm_mysql_flexible_server
instance between two subscriptions. As theazurerm
provider cannot keep track of resources between subscriptions, we opted to remove the original resource from state and then import the moved resource. There are no other configuration changes on the flexible server during the move.This report is mainly to find out if there are known issues with the import of
azurerm_mysql_flexible_server
resources (looking through the GitHub issues was not conclusive).I expect the flexible server to be imported without any changes shown in the Terraform Cloud UI after moving it between subscriptions.
Actual Behaviour
The moved flexible server can only be imported with multiple values being
Known after apply
(e.g.fqdn
),Removed
(e.g.private_dns_zone_id
) orCreated
(e.g.create_mode
). None of these values should have any changes (afaict).Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: