-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
BUG > azurerm_subscription resource forces recreation on existing statefiles #12219
Comments
@katbyte any update on this? Tagging subscription is finally supported in 2.88.0, but as soon as I bump up azurerm version to 2.63.0 or newer, the subscription has to be force recreated. terraform-provider-azurerm/internal/services/subscription/subscription_resource.go Line 82 in 661037e
|
@henryxuteck I came up with two workarounds in my case:
|
@yann-soubeyrand |
Thanks for opening this issue. This was a problem in the 2.x version of the provider which is no longer actively maintained. |
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. |
Community Note
Terraform (and AzureRM Provider) Version
v1.0.0
v2.63.0
Affected Resource(s)
azurerm_subscription
Terraform Configuration Files
Debug Output
terraform plan
statefile
Panic Output
Expected Behaviour
azurerm_subscription
resources are not recreatedActual Behaviour
azurerm_subscription
resources are being recreatednull
as the workload in the statefileazurerm_subscription
- fix ability to specifyDevTest
asworkload
#12066 is now storing a non-null value as the workload in the statefileworkload
is set toForceNew: true
Steps to Reproduce
terraform plan
Important Factoids
azurerm_subscription
resources managed in terraform, recreation would not be possible.References
azurerm_subscription
- fix ability to specifyDevTest
asworkload
#12066The text was updated successfully, but these errors were encountered: