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
Running terraform destroy on a management group containing a subscription will error. The REST call is malformed for disassociating the child subscriptions from the management group being deleted.
Example REST call from TF_LOG=debug stderr output:
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
locked and limited conversation to collaborators
Jul 5, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running
terraform destroy
on a management group containing a subscription will error. The REST call is malformed for disassociating the child subscriptions from the management group being deleted.Example REST call from TF_LOG=debug stderr output:
It should be:
My Go is poor, but I think that line 234 of azurerm\resource_arm_management_group.go should change from:
to
as it needs to set it to the subscription GUID rather than the full ID.
Community Note
Terraform (and AzureRM Provider) Version
terraform -v
:Affected Resource(s)
azurerm_management_group
Terraform Configuration Files
Debug Output
https://gist.github.com/richeney/8be7107dffd90b14f1fc0c650b4f431e
Note that
CTRL
+C
was pressed after 30 seconds or so.Panic Output
Expected Behavior
Subscription moved to Tenant Root Group.
Actual Behavior
REST call errors, terraform destroy times out.
Steps to Reproduce
terraform apply -auto-approve
TF_LOG=debug terraform destroy -auto-approve 2>debug
Important Factoids
References
The text was updated successfully, but these errors were encountered: