Open therealjsie opened 8 months ago
Quick update: Adding create_mode
and administrator_password
to the lifecycle
-> ignore changes
actually resolves the issue. After adding these two fields to the ignore list, no other changes are shown and the database can (supposedly) be imported. I haven't run the apply yet, but it looks good in the plan.
Thank you for taking the time to open this issue. Please subscribe to PR #25179 created by @neil-yechenwei for this issue.
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
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