Skip to content
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

Terraform destroy cause deletion of Express Route Circuit ConflictError #8

Open
albertyckwok opened this issue Mar 2, 2024 · 0 comments

Comments

@albertyckwok
Copy link

albertyckwok commented Mar 2, 2024

There seems to be timing issue when destroying the resource. The deletion of Express Route Circuit on the Azure side need to wait for the deletion of FastConnect (FC) on the OCI side. It seem to take a few minute for Azure to see that the FC is deleted on OCI. Therefore, it will failed on the first run of terraform destroy. You just need to wait for a few minutes then run terraform destroy again to delete the last resource Express Route Circuit that failed from the previous run. I am wondering if there is a way to pause for a few minutes before delete Express Route Circuit after deletion of FC. The following is the error that I am getting on the firest terraform destroy command:

│ Error: waiting for the deletion of Express Route Circuit: (Name "azure_express_circuit" / Resource Group "azure_oci_test_resources"): Code="ConflictError" Message="The specified dedicated circuit is not in Deprovisioned state. Please initiate the deprovisioning process with your service provider." Details=[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant